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

40 lines
1.3 KiB
Plaintext

#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, "Mithralsheet"))
nItemsBits++;
if(HasItem(oPC, "Armamp2"))
nItemsBits++;
if(HasItem(oPC, "Enhancementplans"))
nItemsBits++;
//////////////////////////////////////////////////////////
if(nItemsBits == 3){
DestroyObject(GetItemPossessedBy(oPC, "Mithralsheet"));
DestroyObject(GetItemPossessedBy(oPC, "Armamp2"));
DestroyObject(GetItemPossessedBy(oPC, "Enhancementplans"));
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_PLATE3){
FloatingTextStringOnCreature("*You create an good enhanced suit of armour*", oPC);
CreateItemOnObject("Armamp3", oPC);
}
else{
AmonCraftSmithing(oPC, nSmithingSkillNumber=nSmithingSkillNumber+nRoll2);
}
}
else
FloatingTextStringOnCreature("*You do not have enhancement plans, mithral sheet or the previous version of this armour*", oPC);
}