SphereCommunity
Spawn in one place ! - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Spawn in one place ! (/Thread-Spawn-in-one-place)

Pages: 1 2


RE: Spawn in one place ! - tyllneas - 11-04-2012 08:37 PM

(11-03-2012 10:18 PM)Barnabus Wrote:  Yes you could do that also just tag them with their filed location after
they have been placed there in the loop.

Code:
FORPLAYERS 7000
    IF !<ISONLINE>
        LOCAL.OfflinePlayerCount=<LOCAL.OfflinePlayerCount>+1
        TAG.LastAtTheseCoords=<P>
        GO <EVAL <LOCAL.RowNumber>>,<EVAL StartLocation_X>>
        TAG.FilledLocation=<P>
        LOCAL.RowNumber=<EVAL StartLocation_X + 1>
    ENDIF
ENDFOR

On the Login you would have to remeber to remove the last location
PHP Code:
ON=@Login
    
If <TAG0.LastAtTheseCoords>
        IF <
P> != <TAG.LastAtTheseCoords>
            
GO <TAG.LastAtTheseCoords>
            
TAG.LastAtTheseCoords=             
        ENDIF
    ENDIF 

Then on logoff if you wanted to send them all back to the same tiles.

PHP Code:
ON=@Logoff
    
If <TAG0.FilledLocation>
        
TAG.LastAtTheseCoords=<P>
        IF <
P> != <TAG.FilledLocation>
            
GO <TAG.FilledLocation>     
        ENDIF
    ENDIF 

With something like that you could keep all players filed somewhere. they are ok in a row because you only see so many per screen, if you have them all in the same screen or worse all on the same tile you might have trouble using allshow.

THX Barnabus, u realy helped me !


RE: Spawn in one place ! - Barnabus - 11-04-2012 08:46 PM

Your welcome