![]() |
Resseting through scripts?
well, on lots of servers the NPC server resets you, and i was wondering, how would i do that? alot of people who log onto Final Resort are starting with Utopia items, Utopia flags, and utopia levels. its very hard to reset all of em by myself, so how would i do this?
|
Hmm, can't you just access the account data through the browser nowadays and delete them all yourself?
|
sendtorc("/reset account");
Make a database with an array of all the accounts that have been reset. When someone logs on it will check if that players account is in the array, if not it will reset them and add them to the list. Then when you want another reset, you just reset the database. Of course I prefer to save to a file so that when the NPC Server has to be reconnected or anything like that the list isn't lost. (Therefore resetting everyone) |
Saving resets to a file is best way.
|
Mh, I'm creating a serverflag for every account that has been reset. If they log on its destroyed and they get a clientr.flag. If they have that, they wont get reset :p
|
PHP Code:
|
Quote:
|
Quote:
|
Quote:
|
Are you on? I can get on FR and look at it.
|
Ugh, do not store reset data in the Control-NPC.
It should be stored in text file >:O |
Quote:
If the Control-NPC flags are reset for some reason... you have an involuntary server reset. Plus, that string will have the potential to get really big. If someone just edits the Control-NPC flags via RC, the string could get cut short, and (as a result) some people will be reset again. A text file is less likely to be cleared or tampered with. |
I know, I wanted to give something simple for the forums. If I can catch him on, I'm going to use a text file.
I figured it'd be too hard to explain it through the forums. |
Quote:
|
PHP Code:
You can use that method, or only use resetaccounts.txt for players that are currently in the process of resetting then just give them a clientr flag after the reset. |
| All times are GMT +2. The time now is 02:49 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.