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

30 lines
959 B
Plaintext

#include "tr_items_inc"
#include "nw_i0_tool"
#include "craft_inc"
void main()
{
int nSkillTest;
int nTailorSkillNumber;
object oPC = GetLastUsedBy();
//////////////////////////////////////////////////////////
if((HasItem(GetPCSpeaker(), "tr_forrestboarskin"))){
DestroyObject(GetItemPossessedBy(GetPCSpeaker(), "tr_forrestboarskin"));
nTailorSkillNumber = GetCampaignInt(GZ_AMON_CRAFT, "GZ_BD_TAILOR!", oPC);
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_GET_MID, 3.0, 3.0));
if(nSkillTest = (nTailorSkillNumber+nRoll100) >= LEATHER_HIDE){
FloatingTextStringOnCreature("*You cure some leather*", oPC);
CreateItemOnObject("tr_leather", oPC);
}
else{
AmonCraftTailor(oPC, nTailorSkillNumber=nTailorSkillNumber+nRoll2);
}
}
else
FloatingTextStringOnCreature("*You do not have a forrest boar skin*", oPC);
}