Amon_PRC8/_module/nss/tr_sm_m.nss

28 lines
837 B
Plaintext
Raw Normal View History

2025-04-03 19:00:46 -04:00
#include "tr_items_inc"
#include "nw_i0_tool"
#include "craft_inc"
void main()
{
int nSkillTest;
int nSmeltingSkillNumber;
object oPC = GetLastUsedBy();
if(HasItem(GetPCSpeaker(), "Mithralore")){
DestroyObject(GetItemPossessedBy(oPC, "Mithralore"));
nSmeltingSkillNumber = GetCampaignInt(GZ_AMON_CRAFT, "GZ_DB_SMELTING!", oPC);
if(nSkillTest = (nSmeltingSkillNumber+nRoll100) >= MITHRAL){
FloatingTextStringOnCreature("*You smelt some mithral*", oPC);
//AmonCraftSmelting(oPC, nSmeltingSkillNumber = (nSmeltingSkillNumber+nRoll6));
CreateItemOnObject("mithral", oPC);
}
else{
AmonCraftSmelting(oPC, nSmeltingSkillNumber=nSmeltingSkillNumber+nRoll2);
}
}
FloatingTextStringOnCreature("You do not have any mithral ore", oPC);
}