Changed folder name.
Changed folder name.
This commit is contained in:
29
_module/nss/ac_arthxbow.nss
Normal file
29
_module/nss/ac_arthxbow.nss
Normal file
@@ -0,0 +1,29 @@
|
||||
#include "x2_inc_switches"
|
||||
void main()
|
||||
{
|
||||
// Check if we have the correct event firing the script
|
||||
if (GetUserDefinedItemEventNumber() != X2_ITEM_EVENT_ACTIVATE) return;
|
||||
|
||||
object oPC;
|
||||
oPC = GetItemActivator();
|
||||
|
||||
//If not level 40, STOP!
|
||||
if(GetHitDice(oPC)<40)return;
|
||||
|
||||
if (GetGold(oPC) >= 10000)
|
||||
{
|
||||
oPC = GetItemActivatedTarget();
|
||||
|
||||
CreateItemOnObject("artbolts1", oPC, 999);
|
||||
|
||||
AssignCommand(oPC, TakeGoldFromCreature(10000, oPC, TRUE));
|
||||
|
||||
FloatingTextStringOnCreature("Some gold disentigrated when you used this item.", oPC);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
FloatingTextStringOnCreature("You do not have enough gold to create the bolts!", oPC);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user