#include "tr_items_inc" #include "nw_i0_tool" #include "craft_inc" void main() { int nSkillTest, nItemsBits = 0; int nSmeltingSkillNumber; object oPC = GetLastUsedBy(); if(HasItem(oPC, "Mithral")) nItemsBits++; if(HasItem(oPC, "Mithralore")) nItemsBits++; if(HasItem(oPC, "Mithralchain")) nItemsBits++; ////////////////////////////////////////////////////////// if(nItemsBits == 3){ DestroyObject(GetItemPossessedBy(oPC, "Mithral")); DestroyObject(GetItemPossessedBy(oPC, "Mithralore")); DestroyObject(GetItemPossessedBy(oPC, "Mithralchain")); nSmeltingSkillNumber = GetCampaignInt(GZ_AMON_CRAFT, "GZ_DB_SMELTING!", oPC); AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_GET_MID, 3.0, 3.0)); //debug msg //FloatingTextStringOnCreature(IntToString(nSkillTest = (nWoodSkillNumber+nRoll100x2)), oPC); if(nSkillTest = (nSmeltingSkillNumber+nRoll100) >= MITHRAL_SHEET){ FloatingTextStringOnCreature("*You create some mithral sheeting*", oPC); //AmonCraftSmithing(oPC, nSmithingSkillNumber = (nSmithingSkillNumber+nRoll6)); CreateItemOnObject("Mithralsheet", oPC); } else{ AmonCraftSmelting(oPC, nSmeltingSkillNumber=nSmeltingSkillNumber+nRoll2); FloatingTextStringOnCreature("*You do not have any mithral*", oPC); } } }