Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #11  
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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:23 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.