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-nmm7 (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-nmm7 (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-nmm7 (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
monster spawns
Author Message
Rattlehead
Master
**

Posts: 290
Likes Given: 3
Likes Received: 8 in 6 posts
Joined: Jun 2012
Reputation: 8



Post: #1
monster spawns
hey, i have been trying to figure out how monsters are linked to their spawnbits. i am interested becus when u remove a spawnbit, all the monsters spawned from that bit are auto-removed, i was hoping there was a way i could link monsters to an item, and once that item has been removed all monsters that have been linked to it will be removed as well, just like a spawnbit does

and i cant seem to figure out how the spawnbits do it to save my life Tongue

[Image: matts_siggy.gif]
07-27-2013 04:30 PM
Find all posts by this user Like Post Quote this message in a reply
Ben
Sphere Developer
*****

Posts: 612
Likes Given: 2
Likes Received: 123 in 70 posts
Joined: Mar 2010
Reputation: 18

SphereCommunity

Post: #2
RE: monster spawns
Each spawned char has a memory item that links them to the gembit.
On removal, the server does a loop of all chars looking for the ones with that memory.

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
07-27-2013 10:46 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Rattlehead
Master
**

Posts: 290
Likes Given: 3
Likes Received: 8 in 6 posts
Joined: Jun 2012
Reputation: 8



Post: #3
RE: monster spawns
wow, so it loops thru every monster in game?

at the moment i loop thru allchar in the region and remove the ones that arent players, i guess its better than a spawnbit auto-remove.

[Image: matts_siggy.gif]
07-28-2013 02:30 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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