SphereCommunity
monster spawns - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: monster spawns (/Thread-monster-spawns)



monster spawns - Rattlehead - 07-27-2013 04:30 PM

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


RE: monster spawns - Ben - 07-27-2013 10:46 PM

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.


RE: monster spawns - Rattlehead - 07-28-2013 02:30 AM

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.