![]() |
loadPlayer()
Would be wonderful if there was a way to modify the attributes of offline players. Something like
PHP Code:
I'm not sure what the most effective way to save changes is, but I'm sure it's somehow possible. I'm guessing the garbage collector, which "destroys" the object, could save it once all references to it have been dropped (the function ends)? |
It'd be nice to edit variables like that instead of having a DB-NPC and queuing actions to be executed when they log on. Hell even if we could only read variables it would definitely come in handy.
|
Could this be done by editing the players files in the accounts folder?
I remember some time ago a friend gave themselves full folder rights by changing it in their accounts folder...so, if that is possible, couldnt you also edit variables in the player via the players file? e: Im not saying to do that, im just saying isnt it possible. Because if its possible that way, im sure they could add a built in function to do it...because the only way to accomplish that would be to give the npc server write rights to the accounts folder...and that could be bad if the wrong people knew about that. |
Quote:
|
Well then, it shouldn't be that hard to implement what you asked. ;P
I think this would make alot of things easier...it sure as hell could have helped me in the past. >_> |
You can load offline players but not modify / save yet:
PHP Code:
|
Quote:
|
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 01:25 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.