46 lines
1.3 KiB
Plaintext
46 lines
1.3 KiB
Plaintext
|
#include "tr_items_inc"
|
||
|
#include "nw_i0_tool"
|
||
|
#include "craft_inc"
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
int nSkillTest, nItemsBits = 0;
|
||
|
int nWoodSkillNumber;
|
||
|
object oPC = GetLastUsedBy();
|
||
|
|
||
|
if(HasItem(oPC, "Hardlog"))
|
||
|
nItemsBits++;
|
||
|
nItemsBits++;
|
||
|
if(HasItem(oPC, "String"))
|
||
|
nItemsBits++;
|
||
|
if(HasItem(oPC, "Mithral"))
|
||
|
nItemsBits++;
|
||
|
if(HasItem(oPC, "IronwoodStaff"))
|
||
|
nItemsBits++;
|
||
|
|
||
|
//////////////////////////////////////////////////////////
|
||
|
if(nItemsBits == 4){
|
||
|
DestroyObject(GetItemPossessedBy(oPC, "IronwoodStaff"));
|
||
|
DestroyObject(GetItemPossessedBy(oPC, "Hardlog"));
|
||
|
DestroyObject(GetItemPossessedBy(oPC, "String"));
|
||
|
DestroyObject(GetItemPossessedBy(oPC, "Mithral"));
|
||
|
nWoodSkillNumber = GetCampaignInt(GZ_AMON_CRAFT, "GZ_BD_WOODCRAFT!", oPC);
|
||
|
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_GET_MID, 3.0, 3.0));
|
||
|
|
||
|
if(nSkillTest = (nWoodSkillNumber+nRoll100) >= MITH_STAFF){
|
||
|
FloatingTextStringOnCreature("*You carve a Mithral tipped Staff*", oPC);
|
||
|
CreateItemOnObject("Mithraltippedstaff", oPC);
|
||
|
|
||
|
}
|
||
|
else{
|
||
|
AmonCraftWood(oPC, nWoodSkillNumber=nWoodSkillNumber+nRoll2);
|
||
|
|
||
|
}
|
||
|
}
|
||
|
else
|
||
|
FloatingTextStringOnCreature("*You do not have a hardwood log, string or mithral*", oPC);
|
||
|
|
||
|
|
||
|
}
|
||
|
|