#include "tr_items_inc" #include "nw_i0_tool" #include "craft_inc" void main() { int nSkillTest, nItemsBits = 0; int nBakingSkillNumber; object oPC = GetLastUsedBy(); if(HasItem(oPC, "Sourdough")) nItemsBits++; if(HasItem(oPC, "Honey")) nItemsBits++; if(HasItem(oPC, "BlackSeeds")) nItemsBits++; ////////////////////////////////////////////////////////// if(nItemsBits == 3){ DestroyObject(GetItemPossessedBy(oPC, "Sourdough")); DestroyObject(GetItemPossessedBy(oPC, "Honey")); DestroyObject(GetItemPossessedBy(oPC, "BlackSeeds")); nBakingSkillNumber = GetCampaignInt(GZ_AMON_CRAFT, "GZ_DB_BAKING!", oPC); AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_GET_MID, 3.0, 3.0)); //debug msg //FloatingTextStringOnCreature(IntToString(nSkillTest = (nWoodSkillNumber+nRoll100x2)), oPC); if(nSkillTest = (nBakingSkillNumber+nRoll100) >= BLACK_BREAD){ FloatingTextStringOnCreature("*You create some Black bread*", oPC); //AmonCraftWood(oPC, nWoodSkillNumber = (nWoodSkillNumber+nRoll6)); CreateItemOnObject("Blackbread", oPC); } else{ AmonCraftBaking(oPC, nBakingSkillNumber=nBakingSkillNumber+nRoll2); } } else FloatingTextStringOnCreature("*You may not have dough, honey or black seeds*", oPC); //debug msg //FloatingTextStringOnCreature("Your Baking skill is " + IntToString(nWoodSkillNumber),oPC); }