Setting Offline Player's Level
I want to make a handy script that warps a player out of an event if they log off. The only problem is that I cannot manipulate the player's level offline.
PHP Code:
|
I don't think it's possible to change a player's level without them being online (besides editing the accounts file, which you can't do via script). I could be wrong, though.
edit: yes, it's possible, see Jer's post below The typical solution is to have a list of levels where players aren't allowed to log off in, and then warp any players who log in in this levels to OSL. PHP Code:
|
How about doing it when they log back on instead? Changing a players level when they leave the game seems silly.
PHP Code:
|
Sounds good. I thought of this too, but it would be quite useful to manipulate offline player's levels easier.
|
You can:
PHP Code:
|
Quote:
|
Quote:
|
Quote:
|
hmmm weird
I did it on Era iOS about 8 months back and it ended up crashing it haha |
Quote:
|
It was bugged before but it's fine now. May be the setlevel2 function could be changed to also set those variables when the player is offline.
|
All times are GMT +2. The time now is 09:37 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.