52 lines
1.6 KiB
Plaintext
52 lines
1.6 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, "IronwoodStaff"))
|
||
|
nItemsBits++;
|
||
|
if(HasItem(oPC, "String"))
|
||
|
nItemsBits++;
|
||
|
if(HasItem(oPC, "Iron"))
|
||
|
nItemsBits++;
|
||
|
if(HasItem(oPC, "Balancingrod"))
|
||
|
nItemsBits++;
|
||
|
|
||
|
//////////////////////////////////////////////////////////
|
||
|
if(nItemsBits == 4){
|
||
|
DestroyObject(GetItemPossessedBy(oPC, "IronwoodStaff"));
|
||
|
DestroyObject(GetItemPossessedBy(oPC, "String"));
|
||
|
DestroyObject(GetItemPossessedBy(oPC, "Iron"));
|
||
|
DestroyObject(GetItemPossessedBy(oPC, "Balancingrod"));
|
||
|
nWoodSkillNumber = GetCampaignInt(GZ_AMON_CRAFT, "GZ_BD_WOODCRAFT!", oPC);
|
||
|
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_GET_MID, 3.0, 3.0));
|
||
|
//debug msg
|
||
|
//FloatingTextStringOnCreature(IntToString(nSkillTest = (nWoodSkillNumber+nRoll100x2)), oPC);
|
||
|
|
||
|
if(nSkillTest = (nWoodSkillNumber+nRoll100) >= IRON_SMALL_CROSSBOW){
|
||
|
FloatingTextStringOnCreature("*You create a Light Ironwood Crossbow*", oPC);
|
||
|
//AmonCraftWood(oPC, nWoodSkillNumber = (nWoodSkillNumber+nRoll6));
|
||
|
CreateItemOnObject("Ironwoodlcrossbow", oPC);
|
||
|
|
||
|
}
|
||
|
else{
|
||
|
AmonCraftWood(oPC, nWoodSkillNumber=nWoodSkillNumber+nRoll2);
|
||
|
|
||
|
}
|
||
|
}
|
||
|
else
|
||
|
FloatingTextStringOnCreature("*You may not have an Balancing rod, ironwood staff, string or maybe iron*", oPC);
|
||
|
|
||
|
//debug msg
|
||
|
//FloatingTextStringOnCreature("Your Baking skill is " + IntToString(nWoodSkillNumber),oPC);
|
||
|
}
|
||
|
|
||
|
|