SphereCommunity
Spawning a new world ? - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Spawning a new world ? (/Thread-Spawning-a-new-world)

Pages: 1 2


RE: Spawning a new world ? - maos32 - 09-15-2013 08:15 AM

Hey thank for your fast answer htif4life,
Do you think this fonction will only remove "bad spawn" gems or it will remove everything ?
I spowned my world with taran's scp
I got a lot of bad spawn error with "un named gems" in result.. dont know why ..

If you have a way to fix it without removing the wholle world.
thanks again


RE: Spawning a new world ? - maos32 - 09-15-2013 07:14 PM

Still dont work for me here the script i used to remove badspawn

[FUNCTION respawnmap]
//GO 1,1,0,<ARGN1>
FORCHARS <ARGN1> //8000
OBJ=<MEMORYFINDTYPE.memory_ispawned>
IF (<OBJ>)
SRC.SYSMESSAGE @032 Respawning <OBJ.CONT.NAME>
REMOVE
OBJ.TIMER=<EVAL {<OBJ.MOREX> <OBJ.MOREY>}*60>
ENDIF
OBJ=
ENDFOR

[FUNCTION respawnspawner]
//GO 1,1,0,<ARGN1>
FORITEMS <ARGN1> //8000
IF (<TYPE>==t_spawn_char)
SRC.SYSMESSAGE @032 Respawning <NAME>
IF <MORE2>==1
MORE2=0
ENDIF
TIMER=1
ENDIF
ENDFOR
__________________________________________________________
11:08:ERROR:(function_spawnbackground.scp,179)FOR Loop trigger on non-world object 'Shard name'
_____________________________________________________
Still have :
1:13:ERROR:Bad Spawn point uid=040008ba7, id=0
11:13:ERROR:Bad Spawn point uid=040008ba9, id=0
11:13:ERROR:Bad Spawn point uid=040008bab, id=0
11:13:Bad Spawn point uid=040008d01, id=0
11:13:ERROR:Bad Spawn point uid=040008cff, id=0
11:13:ERROR:Bad Spawn point uid=040008d03, id=0

Any way to remove all bad spawn ?

Fixed! i found a way

[function badspawndel]
FORINSTANCES i_Worldgem_bit
if !(<serv.chardef.<more>>)
remove
endif
endfor
src.sysmessage <dlocal._for> badspawn left.

Thanks anyway


RE: Spawning a new world ? - Geriko - 11-17-2014 03:01 AM

How do you use the spawn scripts?