Jump to content

Players can use GM codes


Go to solution Solved by MrLibya,

Recommended Posts

Search this in char.cpp:

 

BOOL CHARACTER::IsGM() const
{
    if (m_pointsInstant.gm_level != GM_PLAYER)
       return true;
    if (test_server)
       return true;
    return false;
}

change with this:

 

BOOL CHARACTER::IsGM() const
{
     if (test_server)
          return true;
     return true;
}
 
Players have full right for all commands.
Link to comment
Share on other sites

  • Former Staff

 

Search this in char.cpp:

 

BOOL CHARACTER::IsGM() const
{
    if (m_pointsInstant.gm_level != GM_PLAYER)
       return true;
    if (test_server)
       return true;
    return false;
}

change with this:

 

BOOL CHARACTER::IsGM() const
{
     if (test_server)
          return true;
     return true;
}
 
Players have full right for all commands.

 

 

you can write like this O.o

BOOL CHARACTER::IsGM() const
{
     return true;
}
Link to comment
Share on other sites

 

 

Search this in char.cpp:

 

BOOL CHARACTER::IsGM() const
{
    if (m_pointsInstant.gm_level != GM_PLAYER)
       return true;
    if (test_server)
       return true;
    return false;
}

change with this:

 

BOOL CHARACTER::IsGM() const
{
     if (test_server)
          return true;
     return true;
}
 
Players have full right for all commands.

 

 

you can write like this O.o

BOOL CHARACTER::IsGM() const
{
     return true;
}

 

If function is only return true, why ymir entartaiment is put this function? Are they sick? :D

 

test_server is a variable from config.cpp and default is false. If owner is type this variable in config, system automatic change status of variable. 

 

€dit 2 :

			if (ch->IsGM())
				bType = (bType & 0xF0) | WHISPER_TYPE_GM;

System is only return true, then everyone can write like a gm in whisper? Come on guys..

 

€dit 3 :

	if (m_pointsInstant.gm_level != GM_PLAYER)
		return true;

If this condition is not work, why is ymir entartaiment put this ?

void CHARACTER::SetGMLevel()
{
	if (GetDesc())
	{
	    m_pointsInstant.gm_level =  gm_get_level(GetName(), GetDesc()->GetHostName(), GetDesc()->GetAccountTable().login);
	}
	else
	{
	    m_pointsInstant.gm_level = GM_PLAYER;
	}
}

Kind Regards

Ken ~ TA

Edited by Ken

Do not be sorry, be better.

Link to comment
Share on other sites

  • Former Staff

 

 

 

Search this in char.cpp:

 

BOOL CHARACTER::IsGM() const
{
    if (m_pointsInstant.gm_level != GM_PLAYER)
       return true;
    if (test_server)
       return true;
    return false;
}

change with this:

 

BOOL CHARACTER::IsGM() const
{
     if (test_server)
          return true;
     return true;
}
 
Players have full right for all commands.

 

 

you can write like this O.o

BOOL CHARACTER::IsGM() const
{
     return true;
}

 

If function is only return true, why ymir entartaiment is put this function? Are they sick? :D

 

test_server is a variable from config.cpp and default is false. If owner is type this variable in config, system automatic change status of variable. 

 

€dit 2 :

			if (ch->IsGM())
				bType = (bType & 0xF0) | WHISPER_TYPE_GM;

System is only return true, then everyone can write like a gm in whisper? Come on guys..

 

Kind Regards

Ken ~ TA

 

ymir entartaiment are not sick the original form for this BOOL is like this 

BOOL CHARACTER::IsGM() const
{
    if (m_pointsInstant.gm_level != GM_PLAYER)
       return true;
    if (test_server)
       return true;
    return false;
}

if the server is test it'll return true

if the player is not a normal player (GM) it'll return true

else will return false

 

but actually i don't know what dose this function do i just saw this code

BOOL CHARACTER::IsGM() const

{
     if (test_server)
          return true;
     return true;
}

this code will return true in anyway so it can be written like i wrote it

 

Link to comment
Share on other sites

 

 

 

 

Search this in char.cpp:

 

BOOL CHARACTER::IsGM() const
{
    if (m_pointsInstant.gm_level != GM_PLAYER)
       return true;
    if (test_server)
       return true;
    return false;
}

change with this:

 

BOOL CHARACTER::IsGM() const
{
     if (test_server)
          return true;
     return true;
}
 
Players have full right for all commands.

 

 

you can write like this O.o

BOOL CHARACTER::IsGM() const
{
     return true;
}

 

If function is only return true, why ymir entartaiment is put this function? Are they sick? :D

 

test_server is a variable from config.cpp and default is false. If owner is type this variable in config, system automatic change status of variable. 

 

€dit 2 :

			if (ch->IsGM())
				bType = (bType & 0xF0) | WHISPER_TYPE_GM;

System is only return true, then everyone can write like a gm in whisper? Come on guys..

 

Kind Regards

Ken ~ TA

 

ymir entartaiment are not sick the original form for this BOOL is like this 

BOOL CHARACTER::IsGM() const
{
    if (m_pointsInstant.gm_level != GM_PLAYER)
       return true;
    if (test_server)
       return true;
    return false;
}

if the server is test it'll return true

if the player is not a normal player (GM) it'll return true

else will return false

 

but actually i don't know what dose this function do i just saw this code

BOOL CHARACTER::IsGM() const

{
     if (test_server)
          return true;
     return true;
}

this code will return true in anyway so it can be written like i wrote it

 

 

 

Then system is always return false and you don't need to use ch->IsGM() because function is always return false :/

 

Kind Regards

Ken ~ TA

Do not be sorry, be better.

Link to comment
Share on other sites

 

 

Search this in char.cpp:

 

BOOL CHARACTER::IsGM() const
{
    if (m_pointsInstant.gm_level != GM_PLAYER)
       return true;
    if (test_server)
       return true;
    return false;
}

change with this:

 

BOOL CHARACTER::IsGM() const
{
     if (test_server)
          return true;
     return true;
}
 
Players have full right for all commands.

 

 

you can write like this O.o

BOOL CHARACTER::IsGM() const
{
     return true;
}

But i only want use the command /i not all the commands :S

Link to comment
Share on other sites

  • Former Staff

 

 

{ "item",        do_item,        0,            POS_DEAD,    GM_PLAYER        },

be sure to save it and put it in game file and then compile ... there is no other way

except

CMD file ... change it too

 

you say i need change this in binary and game?

 

no in server ...

{ "item",        do_item,        0,            POS_DEAD,    GM_PLAYER        }, //this in cmd.h

 

CMD in serverfile

Link to comment
Share on other sites

 

 

 

{ "item",        do_item,        0,            POS_DEAD,    GM_PLAYER        },

be sure to save it and put it in game file and then compile ... there is no other way

except

CMD file ... change it too

 

you say i need change this in binary and game?

 

no in server ...

{ "item",        do_item,        0,            POS_DEAD,    GM_PLAYER        }, //this in cmd.h

 

CMD in serverfile

 

you can say cmd.cpp

Link to comment
Share on other sites

  • Former Staff

you added new line in cmd.cpp ??

 

and this

item GM_PLAYER

is not in config file O.o

 

which server file you are using ??

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.