SphereCommunity
Anti-Logout Dungeon! - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Requests (/Forum-Script-Requests)
+--- Thread: Anti-Logout Dungeon! (/Thread-Anti-Logout-Dungeon)



Anti-Logout Dungeon! - Lazarus - 11-12-2012 01:41 PM

Hi! Im needing some REGION_FLAG to take something like... If you logout on that REGION flag, death or alive, you will get out in 15 o 30 seconds if you didn't relog.


Any way to do this?
Maybe a memory item or something else? How can I create a new regionflag to use in dungeons regions?

Maybe I can create that regionflag and then a new item memory that
on=@timer
.go britain



and a region that

on=@logout
serv.newitem i_memory
[take in the player here]


on=@login
delete the item memory.



rly?! Smile

Lazarus.


RE: Anti-Logout Dungeon! - Shaklaban - 11-13-2012 04:12 AM

PHP Code:
[AREADEF a_Yew_Ter]
EVENTS=r_anti_logout
NAME
=Yew Territory
GROUP
=ALLMAP
P
=823,1060
RECT
=47,21,918,2001,0
RECT
=917,260,1143,1493,0

[regiontype r_anti_logout]
on=@enter
if <src.isplayer>
    
src.events +e_anti_logout
endif

on=@exit
if <
src.isplayer>
    
src.events -e_anti_logout
endif

[
events e_anti_logout]
on=@logout
    go britain 



RE: Anti-Logout Dungeon! - Lazarus - 11-14-2012 04:33 AM

(11-13-2012 04:12 AM)Shaklaban Wrote:  
PHP Code:
[AREADEF a_Yew_Ter]
EVENTS=r_anti_logout
NAME
=Yew Territory
GROUP
=ALLMAP
P
=823,1060
RECT
=47,21,918,2001,0
RECT
=917,260,1143,1493,0

[regiontype r_anti_logout]
on=@enter
if <src.isplayer>
    
src.events +e_anti_logout
endif

on=@exit
if <
src.isplayer>
    
src.events -e_anti_logout
endif

[
events e_anti_logout]
on=@logout
    go britain 


Rly thanks Smile

That works rly FINE Smile

Lazarus