About Lord Commands without beeing lord

01/20/2013 21:11 raventh1984#1
Hi Epvpers,

I am having an little question about the lord skills.

I am looking trough the source to allow GM's to use the Lord Skills true out the server. But it seems i am unaible to do it or to see it.

What i did was looking for the error if you press the L button.
Now i come up to

WndLord.cpp
I have changed this line
if(!CCLord::Instance()->IsLord(g_pPlayer->m_idPlayer))
To
if(!CCLord::Instance()->IsLord(g_pPlayer->m_idPlayer) && g_pPlayer->m_chAuthority == 'Z')

But it tells me that m_chAuthority is not an part of Cmover.
So i looked true the .h files but it seems i am not in an state just yet to do it like that.

Now i wonder how to create an command for it.
Thats something that should not be all to hard.

If someone can point me in the right direction on how to do it.
I can take an look into it to see if i can set it up correctly.

With kind regards,
Raventh
01/20/2013 23:20 420twisted1#2
dont use m_chAuthority
01/21/2013 02:45 Zoeybird#3
WndLord.cpp:
if(!CCLord::Instance()->IsLord(g_pPlayer->m_idPlayer) && m_dwAuthorization == AUTH_ADMINISTRATOR )
WndLord.h:
under
CWndLordSkill();
~CWndLordSkill();
this:
DWORD m_dwAuthorization;

Result:
If the player is Lord and Admin, he can open this window.
When you want that, Admin can open the Window without be Lord, pm me.
01/21/2013 09:12 raventh1984#4
Thanks for your answer Zoeybird.

its working now.

Even the skills i have managed to get it to work correctly.
07/16/2017 20:27 mrsimple143#5
:mofo:
Quote:
Originally Posted by Zoeybird View Post
WndLord.cpp:
if(!CCLord::Instance()->IsLord(g_pPlayer->m_idPlayer) && m_dwAuthorization == AUTH_ADMINISTRATOR )
WndLord.h:
under
CWndLordSkill();
~CWndLordSkill();
this:
DWORD m_dwAuthorization;

Result:
If the player is Lord and Admin, he can open this window.
When you want that, Admin can open the Window without be Lord, pm me.