38 lines
1.3 KiB
Plaintext
38 lines
1.3 KiB
Plaintext
#include "tr_items_inc"
|
|
#include "nw_i0_tool"
|
|
#include "craft_inc"
|
|
|
|
void main()
|
|
{
|
|
int nSkillTest, nItemsBits = 0;
|
|
int nTailoringSkillNumber;
|
|
object oPC = GetLastUsedBy();
|
|
|
|
if(HasItem(oPC, "Enhancementplans"))
|
|
nItemsBits++;
|
|
if(HasItem(oPC, "tr_silkcloth"))
|
|
nItemsBits++;
|
|
if(HasItem(oPC, "tr_t_sr_p3"))
|
|
nItemsBits++;
|
|
|
|
//////////////////////////////////////////////////////////
|
|
if(nItemsBits == 3){
|
|
DestroyObject(GetItemPossessedBy(oPC, "Enhancementplans"));
|
|
DestroyObject(GetItemPossessedBy(oPC, "tr_silkcloth"));
|
|
DestroyObject(GetItemPossessedBy(oPC, "tr_t_sr_p3"));
|
|
nTailoringSkillNumber = GetCampaignInt(GZ_AMON_CRAFT, "GZ_BD_TAILOR!", oPC);
|
|
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_GET_MID, 3.0, 3.0));
|
|
|
|
if(nSkillTest = (nTailoringSkillNumber+nRoll100) >= SAL_RP4){
|
|
FloatingTextStringOnCreature("*You create an enhanced suit of armour*", oPC);
|
|
CreateItemOnObject("tr_t_sr_p4", oPC);
|
|
|
|
}
|
|
else{
|
|
AmonCraftTailor(oPC, nTailoringSkillNumber=nTailoringSkillNumber+nRoll2);
|
|
}
|
|
}
|
|
else
|
|
FloatingTextStringOnCreature("*You do not have enhancement plans, silk cloth or proceeding +3*", oPC);
|
|
}
|