Aantioch_Infernum/_module/nss/spawnbanner.nss
Jaysyn904 15c0c0da79 Installed NESS 4.1.9
Installed NESS 4.1.9.  Tweaked main city.  Full compile.
2023-08-09 07:17:50 -04:00

21 lines
527 B
Plaintext

//
// SpawnBanner : Sample OnActivateItem Script
//
#include "x2_inc_switches"
#include "spawnb_main"
void main()
{
int nResult = X2_EXECUTE_SCRIPT_END;
if ( GetUserDefinedItemEventNumber() == X2_ITEM_EVENT_ACTIVATE )
{
object oPC = GetItemActivator();
object oItem = GetItemActivated();
object oTarget = GetItemActivatedTarget();
location lTarget = GetItemActivatedTargetLocation();
SpawnBanner(oPC, oItem, oTarget, lTarget);
}
SetExecutedScriptReturnValue(nResult);
}