Initial upload
Initial upload
This commit is contained in:
24
_module/nss/ac_dangerbow44.nss
Normal file
24
_module/nss/ac_dangerbow44.nss
Normal file
@@ -0,0 +1,24 @@
|
||||
#include "x2_inc_switches"
|
||||
void main()
|
||||
{
|
||||
// Check if we have the correct event firing the script
|
||||
if (GetUserDefinedItemEventNumber() != X2_ITEM_EVENT_ACTIVATE) return;
|
||||
|
||||
//Define Variables
|
||||
|
||||
|
||||
object oPC;
|
||||
int nStackSize = 99;
|
||||
|
||||
if (!GetIsPC(GetItemActivatedTarget()))
|
||||
{
|
||||
|
||||
SendMessageToPC(GetItemActivator(), "Improper use of item!");
|
||||
return;
|
||||
}
|
||||
|
||||
oPC = GetItemActivatedTarget();
|
||||
|
||||
CreateItemOnObject("dangerarrows44", oPC, nStackSize);
|
||||
|
||||
}
|
Reference in New Issue
Block a user