Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-06-2009, 10:05 PM
Novice Novice is offline
Developer
Join Date: Dec 2008
Posts: 90
Novice is an unknown quantity at this point
Send a message via MSN to Novice
Quote:
Originally Posted by salesman View Post
just give them their community name
whitespacewhitespaceomg
Reply With Quote
  #2  
Old 07-06-2009, 10:53 PM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
Just giving them their community name might cause some problems because what used to be their "account" was once entirely different from their communityname. If Graal234252 is in the serveroptions as a staff member and is then given his communityname "lolnoob", he is no longer staff. Same goes with scripts that may be account-locked to him: if (player.account == "Graal234252")

Now think about if you allowed players without communitynames to choose a new account name. Graal777336 chooses Graal234252 (who was assigned his communityname, "lolnoob") as his account name and becomes staff.

I guess you could forbid all Graal###### accounts from being chosen, and server staff could just deal with all the other problems that come with the transition.
Reply With Quote
  #3  
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
Reply


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:34 PM.


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