View Single Post
  #26  
Old 07-06-2009, 11:03 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Robin View Post
I don't understand Chris,

Why not just use community name? As long as you've got that you don't need the account name? Right?
Quote:
Originally Posted by Skyld View Post
Generally speaking the community name is changeable.
This. Players aren't going to want their bank account to reset, their items to disappear, and any other things stored in a database to be gone. It would cause even more problems if the player had some flag set that caused the system to think they had an entry in some database, potentially leading to some kind of disaster.

Quote:
Originally Posted by Crow View Post
First convert the registration system to the old one again. Then give the ones who still have no community name to choose one, in a certain time frame. Graal###### accounts without gold will then be able to choose an account name, the guys with a community name will then get their community name as an account (pretty sure that's easily done with a script or even a MySQL query).
At least that's how I would do it ;P While converting the community name guys and making sure the ones without one will be prompted with something which makes them choose an account afterwards, there would probably have to be a short downtime. Not a big deal though.
I think the best thing to do would be just let everyone choose their account who has a community name.

There should be some kind of function called in GlobalShopControl or something, like this:

PHP Code:
function onAccountNameChanges(old, new) {
  
DB_Bank.balance.(new) = DB_Bank.balance.(old);
  
DB_Bank.balance.(old) = null;
  
  
movefile("players/" old.txt"players/" @ new.txt);
  
  if (
old in serveroptions.staff.tokenize(",")) {
    echo(
"The account" SPC old SPC "is in server options as staff, and must be changed to" SPC new SPC "(account name change)!");
  }
  
  
savelog2("accountchanges.txt"old SPC "is now" SPC new);

There should also be a log that is saved to on every server by default, and a custom one on servers perhaps to indicate that it did successfully move their stuff. The default one could be checked with the server-added one if someone says their items were not transferred.

A global script should also move their accounts/whatever file to the correct place and move all their attributes, rights, comments etc.

It'd be difficult, but worth it.
__________________
Reply With Quote