Amon_PRC8/_module/nss/tr_sm_m_sheet.nss
Jaysyn904 c5cffc37af Initial Commit
Initial Commit [v1.01]
2025-04-03 19:00:46 -04:00

42 lines
1.4 KiB
Plaintext

#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);
}
}
}