28 lines
837 B
Plaintext
28 lines
837 B
Plaintext
#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);
|
|
}
|
|
|