/* This script goes in the onSpawn handler for the ghost merchant. It creates the shop based on the tag given in the boss' death script. Then assigns a custom token for the open store dialog. It is also set to destroy itself after 4 minutes. */ //:////////////////////////////// //:/ Created By : SoulFlame //:/ Date : Jan 21, 2005 //:////////////////////////////// //const int TOKEN_40SHOP = 68555; void main() { object oSelf = OBJECT_SELF, oShop; string sBossName = GetLocalString(oSelf, "40Boss"); location lSelf = GetLocation(oSelf); /* string sTokenMsg = "For decades my Soul has been bound to that foul beast. " + "For releasing me from the prison within " + sBossName + " you may browse my ancient goods."; SetCustomToken(TOKEN_40SHOP, sTokenMsg); */ DelayCommand(240.0, DestroyObject(oSelf)); // Execute default OnSpawn script. ExecuteScript("nw_c2_default9", OBJECT_SELF); }