Initial Commit

Initial Commit [v1.01]
This commit is contained in:
Jaysyn904
2025-04-03 19:00:46 -04:00
parent 9c53be196a
commit c5cffc37af
15285 changed files with 13371551 additions and 2 deletions

View File

@@ -0,0 +1,51 @@
#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, "HardWoodStaff"))
nItemsBits++;
if(HasItem(oPC, "String"))
nItemsBits++;
if(HasItem(oPC, "Copper"))
nItemsBits++;
if(HasItem(oPC, "Handgrip"))
nItemsBits++;
//////////////////////////////////////////////////////////
if(nItemsBits == 4){
DestroyObject(GetItemPossessedBy(oPC, "HardWoodStaff"));
DestroyObject(GetItemPossessedBy(oPC, "String"));
DestroyObject(GetItemPossessedBy(oPC, "Copper"));
DestroyObject(GetItemPossessedBy(oPC, "Handgrip"));
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) >= HARD_SMALL_CROSSBOW){
FloatingTextStringOnCreature("*You create a Light Hardwood Crossbow*", oPC);
//AmonCraftWood(oPC, nWoodSkillNumber = (nWoodSkillNumber+nRoll6));
CreateItemOnObject("HardwoodLightCrossbow", oPC);
}
else{
AmonCraftWood(oPC, nWoodSkillNumber=nWoodSkillNumber+nRoll2);
}
}
else
FloatingTextStringOnCreature("*You may not have an handgrip, hardwood staff, string or maybe copper*", oPC);
//debug msg
//FloatingTextStringOnCreature("Your Baking skill is " + IntToString(nWoodSkillNumber),oPC);
}