50 lines
1.6 KiB
Plaintext
50 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, "Mithraltippedstaff"))
|
|
nItemsBits++;
|
|
if(HasItem(oPC, "String"))
|
|
nItemsBits++;
|
|
if(HasItem(oPC, "Mithral"))
|
|
nItemsBits++;
|
|
if(HasItem(oPC, "Enhancementplans"))
|
|
nItemsBits++;
|
|
|
|
//////////////////////////////////////////////////////////
|
|
if(nItemsBits == 4){
|
|
DestroyObject(GetItemPossessedBy(oPC, "Mithraltippedstaff"));
|
|
DestroyObject(GetItemPossessedBy(oPC, "String"));
|
|
DestroyObject(GetItemPossessedBy(oPC, "Mithral"));
|
|
DestroyObject(GetItemPossessedBy(oPC, "Enhancementplans"));
|
|
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) >= MITH_LONGBOW){
|
|
FloatingTextStringOnCreature("*You create mithral Longbow*", oPC);
|
|
//AmonCraftWood(oPC, nWoodSkillNumber = (nWoodSkillNumber+nRoll6));
|
|
CreateItemOnObject("mithraltippedlb", oPC);
|
|
|
|
}
|
|
else{
|
|
AmonCraftWood(oPC, nWoodSkillNumber=nWoodSkillNumber+nRoll2);
|
|
|
|
}
|
|
}
|
|
else
|
|
FloatingTextStringOnCreature("*You may not have an Enhancement plans, mithral staff, string or maybe mithral*", oPC);
|
|
|
|
//debug msg
|
|
//FloatingTextStringOnCreature("Your Baking skill is " + IntToString(nWoodSkillNumber),oPC);
|
|
}
|
|
|
|
|