alejogz 1 Posted February 4, 2015 Share Posted February 4, 2015 How i can activate example the command /I for users? i put GM_PLAYER but not work thanks Link to comment Share on other sites More sharing options...
Premium Solution MrLibya 557 Posted February 4, 2015 Premium Solution Share Posted February 4, 2015 CMD : item GM_PLAYER or source : cmd.cpp serch: { "item", do_item, 0, POS_DEAD, GM_GOD }, GM_GOD to GM_PLAYER 1 If you're going to do something, then do it right. Link to comment Share on other sites More sharing options...
alejogz 1 Posted February 4, 2015 Author Share Posted February 4, 2015 í already change this but not work CMD : item GM_PLAYER or source : cmd.cpp serch: { "item", do_item, 0, POS_DEAD, GM_GOD }, GM_GOD to GM_PLAYER Link to comment Share on other sites More sharing options...
Morphe 160 Posted February 5, 2015 Share Posted February 5, 2015 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 More sharing options...
Former Staff flygun 304 Posted February 5, 2015 Former Staff Share Posted February 5, 2015 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 More sharing options...
Ken 905 Posted February 5, 2015 Share Posted February 5, 2015 (edited) 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? 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 February 5, 2015 by Ken Do not be sorry, be better. Link to comment Share on other sites More sharing options...
Former Staff flygun 304 Posted February 5, 2015 Former Staff Share Posted February 5, 2015 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? 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 More sharing options...
Ken 905 Posted February 5, 2015 Share Posted February 5, 2015 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? 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 More sharing options...
alejogz 1 Posted February 5, 2015 Author Share Posted February 5, 2015 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 More sharing options...
Former Staff flygun 304 Posted February 5, 2015 Former Staff Share Posted February 5, 2015 { "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 Link to comment Share on other sites More sharing options...
alejogz 1 Posted February 5, 2015 Author Share Posted February 5, 2015 { "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? Link to comment Share on other sites More sharing options...
Former Staff flygun 304 Posted February 5, 2015 Former Staff Share Posted February 5, 2015 { "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 More sharing options...
alejogz 1 Posted February 5, 2015 Author Share Posted February 5, 2015 { "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 More sharing options...
alejogz 1 Posted February 5, 2015 Author Share Posted February 5, 2015 (edited) https://metin2.download/picture/j694ZENBsqzcm4a5l2dw79719Y9draLJ/.png https://metin2.download/picture/R01R75J7fKM9W7Agwu63H63COcKMv8mj/.pnghttps://metin2.download/picture/HlZxl4uLvJJ82ti1c85BUIT0F7vzb95I/.png nothing work Edited August 30, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Former Staff flygun 304 Posted February 5, 2015 Former Staff Share Posted February 5, 2015 (edited) https://metin2.download/picture/j694ZENBsqzcm4a5l2dw79719Y9draLJ/.png https://metin2.download/picture/R01R75J7fKM9W7Agwu63H63COcKMv8mj/.png https://metin2.download/picture/HlZxl4uLvJJ82ti1c85BUIT0F7vzb95I/.png nothing work 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 August 30, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
alejogz 1 Posted February 5, 2015 Author Share Posted February 5, 2015 thanks all, working. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now