Re: Max Character question
In character selection find the button that creates a new character check number of current characters and account auth then hide the button if account is GM or above and character count is one
Re: Max Character question
yeah. im trying to do that. but what function do I have to use to check the account's auth? I only saw a function to check the character's auth. So, you need a character logged in. Since you're still in the character select and doesn't have a character logged in, it crashes. Well that's what my theory is cause my neuz crashes after selecting the server.
BTW I used the g_pPlayer->IsAuthHigher( AUTH_GAMEMASTER ).
Re: Max Character question
Quote:
Originally Posted by
kamote
BTW I used the g_pPlayer->IsAuthHigher( AUTH_GAMEMASTER ).
I'm not sure you can do this without some extra coding you could try to look into __GPAUTH
or code a function to use m_szAccount to send a query that selects the m_chLoginAuthority and sends the value to be checked.
or not sure if this would work but you could try to select the m_dwAuthorization of g_Neuz.m_apPlayer[ 1 ] and proceed from there
Now you have 3 options to choose from.
Re: Max Character question
well. kinda noob at coding. LOL. I've been trying the g_Neuz.m_apPlayer thing. it crashes after I selected a server. I don't know how to create a function to check the m_chLoginAuthority too. :(
Re: Max Character question
Then just set the characters auth instead of the account so even if they have other characters only 1 will be GM
or pay someone to do what you want
Re: Max Character question
well the problem with giving the authority to the character is that they can make a normal character and use scroll of custody or something to transfer items. I would like to learn about the code and stuff and I got no money to pay a dev. :)
Re: Max Character question
You can very easily add "GM Checks" to functions in Worldserver/DPSrvr.cpp to prevent GMs from misbehaving. Just search for functions with "Bank" in the name, and you'll find all related to accessing banks, even through Common Bank (which is what you meant, not scroll of custody)