#include "tr_items_inc" #include "nw_i0_tool" #include "craft_inc" void main() { int nSkillTest; int nTailorSkillNumber; object oPC = GetLastUsedBy(); ////////////////////////////////////////////////////////// if((HasItem(GetPCSpeaker(), "tr_leather"))){ DestroyObject(GetItemPossessedBy(GetPCSpeaker(), "tr_leather")); 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_STRAPS){ FloatingTextStringOnCreature("*You make two leather straps*", oPC); CreateItemOnObject("leatherstraps", oPC); } else{ AmonCraftTailor(oPC, nTailorSkillNumber=nTailorSkillNumber+nRoll2); } } else FloatingTextStringOnCreature("*You do not have a tanned hides*", oPC); }