G-Defender ![](images/flags/Turkey.png)
Journeyman
![*](images/star.gif)
Posts: 57
Likes Given: 12
Likes Received: 3 in 3 posts
Joined: Dec 2012
Reputation: 0
(uolist.net)
![]()
|
spawnbit problem help me please?
(This post was last modified: 12-15-2017 07:04 AM by G-Defender.)
|
|
12-15-2017 07:03 AM |
|
|
evening ![](images/flags/China.png)
Journeyman
![*](images/star.gif)
Posts: 138
Likes Given: 0
Likes Received: 14 in 9 posts
Joined: Apr 2012
Reputation: 1
Finally Land
![](http://www.fluo.cn/logo.png)
|
RE: spawnbit problem help me please?
use delobj <tame uid>
28-08-2015, XuN
Changed the way SPAWNS works, improved them and added more access functions:
- Removed MEMORY_ISPAWNED from source (still present as a def in sphere_defs.scp for backwards-compat)
- Updated SpawnItem to point directly to the spawn instead of redirecting to memory's link.
- Moved SpawnItem ® to COjbBase to affect both chars and items.
- Spawned OBJs are now stored in the spawn, so SpawnItem only gives quick access to the spawn.
- Functions added to spawns:
- AT.n.KEY ®: Retrieves the 'KEY' val for the 'n' spawned item/char, examples: <at.0.name>, <at.0.str>...
- COUNT ®: Returns the total count of spawned items or chars.
- RESET (W): Removes every spawned Item/Char.
- STOP (W): Removes every spawned Item/Char and stops the Spawn.
- START (W): Same as DClicking the Spawn, but from function, without LOS/Distance/etc limitations (It just makes it start, doesn't reset it, so won't work if it's already working).
- ADDOBJ uid (W): Adds the given UID(the Item/Char must exist obviously, so it must be created before) to the Spawned list, it doesn't check for MORE2 < AMOUNT or anything, it's a forced add. Example:
ON=@GetHit
REF1=<SpawnItem>
SERV.NEWNPC=<baseid>
NEW.P=<P>
NEW.FLAGS |= STATF_CONJURED
REF1.ADDOBJ=<NEW>
- DELOBJ uid (W): The opossite of ADDOBJ, removes one OBJ from this list (just remove from the list, it's not removing the OBJ itself).
NOTE: While updating for this build, when server is loading for first time and converting MEMORY_ISPAWNED to SpawnItem and removing these memories, Sphere will throw a memory_leak exception after loading the world because of the difference between items before loading (chars with memory_ispawned) and items after loading (memory_ispawned removed).
|
|
12-18-2017 03:38 PM |
|
The following 3 users Like evening's post:3 users Like evening's post
darksun84 (12-19-2017), G-Defender (12-19-2017), Satvet (12-19-2017)
|