#include "tr_items_inc" #include "nw_i0_tool" #include "craft_inc" void main() { int nSkillTest, nItemsBits = 0; int nWoodSkillNumber; object oPC = GetLastUsedBy(); if(HasItem(oPC, "AshWoodStaff")) nItemsBits++; if(HasItem(oPC, "String")) nItemsBits++; if(HasItem(oPC, "Copper")) nItemsBits++; ////////////////////////////////////////////////////////// if(nItemsBits == 3){ DestroyObject(GetItemPossessedBy(oPC, "AshWoodStaff")); DestroyObject(GetItemPossessedBy(oPC, "String")); DestroyObject(GetItemPossessedBy(oPC, "Copper")); nWoodSkillNumber = GetCampaignInt(GZ_AMON_CRAFT, "GZ_BD_WOODCRAFT!", oPC); AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_GET_MID, 3.0, 3.0)); if(nSkillTest = (nWoodSkillNumber+nRoll100) >= ASH_SMALL_CROSSBOW){ FloatingTextStringOnCreature("*You create a small Ash Crossbow*", oPC); CreateItemOnObject("SmallAshCrossbow", oPC); } else{ AmonCraftWood(oPC, nWoodSkillNumber=nWoodSkillNumber+nRoll2); } } else FloatingTextStringOnCreature("*You may not have an ash staff, string or maybe copper*", oPC); }