#include "tr_items_inc" #include "nw_i0_tool" #include "craft_inc" void main() { int nSkillTest, nItemsBits = 0; int nSmithingSkillNumber; object oPC = GetLastUsedBy(); if(HasItem(oPC, "CopperNails")) nItemsBits++; if(HasItem(oPC, "Leatherstraps")) nItemsBits++; if(HasItem(oPC, "Copper")) nItemsBits++; ////////////////////////////////////////////////////////// if(nItemsBits == 3){ DestroyObject(GetItemPossessedBy(oPC, "Leatherstraps")); DestroyObject(GetItemPossessedBy(oPC, "CopperNails")); DestroyObject(GetItemPossessedBy(oPC, "Copper")); nSmithingSkillNumber = GetCampaignInt(GZ_AMON_CRAFT, "GZ_DB_SMITHING!", oPC); AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_GET_MID, 3.0, 3.0)); //debug msg //FloatingTextStringOnCreature(IntToString(nSkillTest = (nWoodSkillNumber+nRoll100x2)), oPC); if(nSkillTest = (nSmithingSkillNumber+nRoll100) >= AMA_SSP1){ FloatingTextStringOnCreature("*You create a usable Small shield*", oPC); //AmonCraftSmithing(oPC, nSmithingSkillNumber = (nSmithingSkillNumber+nRoll6)); CreateItemOnObject("NW_ASHMSW002", oPC); } else{ AmonCraftSmithing(oPC, nSmithingSkillNumber=nSmithingSkillNumber+nRoll2); } } else FloatingTextStringOnCreature("*You do not have copper, leatherstraps or copper nails*", oPC); //debug msg //FloatingTextStringOnCreature("Your Baking skill is " + IntToString(nWoodSkillNumber),oPC); }