#include "tr_items_inc" #include "nw_i0_tool" #include "craft_inc" void main() { int nSkillTest; int nTailorSkillNumber; object oPC = GetLastUsedBy(); ////////////////////////////////////////////////////////// if((HasItem(GetPCSpeaker(), "tr_forrestboarskin"))){ DestroyObject(GetItemPossessedBy(GetPCSpeaker(), "tr_forrestboarskin")); nTailorSkillNumber = GetCampaignInt(GZ_AMON_CRAFT, "GZ_BD_TAILOR!", oPC); AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_GET_MID, 3.0, 3.0)); if(nSkillTest = (nTailorSkillNumber+nRoll100) >= LEATHER_HIDE){ FloatingTextStringOnCreature("*You cure some leather*", oPC); CreateItemOnObject("tr_leather", oPC); } else{ AmonCraftTailor(oPC, nTailorSkillNumber=nTailorSkillNumber+nRoll2); } } else FloatingTextStringOnCreature("*You do not have a forrest boar skin*", oPC); }