Request Starting gold

awesome

Microsoft
Veteran
Dec 6, 2013
816
51
90
I'm working on some crystal mir2 server files. I need help with "starting gold" which is added every time a new character logs in. it should be added only to the account on first login and never on each character. this way players create characters and earn gold every time the character logs in.

how can I make it so the gold is added only once per account? also i have "starting credits" where the same thing happens because it was based on "starting gold"

what needs to be edited to fix this
 

awesome

Microsoft
Veteran
Dec 6, 2013
816
51
90
i edited the source already and added "start credit" however i cannot find in the source code how to make it add the credit only one time per account
 
Upvote 0

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
370
350
Sounds like your adding it account side. May need to be done char side when new char is made.
 
Upvote 0

Pete107

🐑[E]dens-[E]lite🐑
Developer
Dec 10, 2003
2,905
393
375
Todmorden, West Yorkshire
i edited the source already and added "start credit" however i cannot find in the source code how to make it add the credit only one time per account
Do it in the AccountInfo construction when the registration is requested as an account can only be made once.
Doing it via Character creation would just welcome the exploiters.
 
Upvote 0

awesome

Microsoft
Veteran
Dec 6, 2013
816
51
90
thanks a lot i fixed it

added the credit ammount

on

public UserItem[] Storage = new UserItem[80];
public uint Gold;
public uint Credit = 1200;
 
Upvote 0