Initial Commit
Initial Commit [v1.01]
This commit is contained in:
51
_module/nss/tr_bow_h_sx.nss
Normal file
51
_module/nss/tr_bow_h_sx.nss
Normal 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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user