The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
respawn a spawn via trigger script?
Author Message
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #1
respawn a spawn via trigger script?
im trying to make the spawn respawn on a timer...

Code:
ONTRIGGER=TIMER
IF (<TYPE>==34) && (<LINK><04fffffff)//if spawn and a LINKED to guildstone spawn
IF (<TIMER>==0)
//
  IF <LINK.LINK>=04000e326//AoG   if townstones link = guildowner
   //SAY <LINK.LINK>
   STOP
   COLOR=835
   MORE={04166 1 04167 1 04168 1 04169 1 0416a 1}
   UPDATE
   START
   RETURN 0
  ENDIF
//
ENDIF
ENDIF

STOP and START do not work in 51a, i also tried DCLICK... nothing

im trying to respawn the spawn after the changes are made... ideas?

a forced DCLICK might work, but TRIGGER DCLICK just forces the trigger not the actual negating of the spawn


http://www.frawley.net/UO/sphere/admin_m...here_2.htm

cant get RESPAWN or RESTOCK to work either

woa! this works... BUT! the timers take too long to respawn everything in that sector

Code:
ONTRIGGER=TIMER
IF (<TYPE>==34) && (<LINK><04fffffff)//if spawn and is a spawn LINKED to townstone (spawn is linked to townstone, townstone is linked to guild UID)
IF (<TIMER>==0)
//
  IF <LINK.LINK>=04000e326//AoG   if townstones link = guildowner
   SAY Respawning...//<LINK.LINK>
   //TRIGGER DCLICK
   //NAME=<LINK.NAME> Spawnbit//sets name of spawn
   COLOR=835
   MORE={04166 1 04167 1 04168 1 04169 1 0416a 1}
   UPDATE
   SECTOR.RESTOCK
   RETURN 0
  ENDIF
//
ENDIF
ENDIF

if only i could just restock that one spawn!

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 02-03-2018 02:50 AM by x77x.)
02-03-2018 01:41 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)