WizardryEE/Module/nss/spawnbanner.nss
Jaysyn904 103f315feb Fixed corrupted module
Fixed corrupted module.  Added doors.  Checked dungeon / teleporter continuity.  Replaced Message #02 with a magical sending from Werdna.  Removed trash / test areas.
2023-04-23 22:07:17 -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);
}