#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, "Mithralchain")) nItemsBits++; if(HasItem(oPC, "Resin")) nItemsBits++; if(HasItem(oPC, "Mithral")) nItemsBits++; if(HasItem(oPC, "Amanbraknulhelmofhealing")) nItemsBits++; ////////////////////////////////////////////////////////// if(nItemsBits == 4){ DestroyObject(GetItemPossessedBy(oPC, "Resin")); DestroyObject(GetItemPossessedBy(oPC, "Mithralchain")); DestroyObject(GetItemPossessedBy(oPC, "Mithral")); DestroyObject(GetItemPossessedBy(oPC, "Amanbraknulhelmofhealing")); nSmithingSkillNumber = GetCampaignInt(GZ_AMON_CRAFT, "GZ_DB_SMITHING!", oPC); AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_GET_MID, 3.0, 3.0)); if(nSkillTest = (nSmithingSkillNumber+nRoll100) >= AMA_HELM6){ FloatingTextStringOnCreature("*You create a good and fine helmet*", oPC); CreateItemOnObject("amanbraknulhe001", oPC); } else{ AmonCraftSmithing(oPC, nSmithingSkillNumber=nSmithingSkillNumber+nRoll2); } } else FloatingTextStringOnCreature("*You do not have mithral, resin, mithral chain or a helm of healing*", oPC); }