Changed folder name.

Changed folder name.
This commit is contained in:
Jaysyn904
2022-10-07 21:08:37 -04:00
parent 1c33c2843e
commit 8d97886c3f
7060 changed files with 0 additions and 0 deletions

View 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);
}
}