Initial upload
Initial upload
This commit is contained in:
28
_module/nss/ac_shortbowofrui.nss
Normal file
28
_module/nss/ac_shortbowofrui.nss
Normal file
@@ -0,0 +1,28 @@
|
||||
//This is the default header for most items converted to the new
|
||||
//tagbased system.
|
||||
//Remember to create 2 scripts, one using the template, and name this
|
||||
//script ac_"tagnameofitemgoeshere" (without the "")
|
||||
|
||||
#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("ruinarrows44", oPC, nStackSize);
|
||||
|
||||
}
|
Reference in New Issue
Block a user