Premium Speachless 759 Posted May 29, 2015 Premium Share Posted May 29, 2015 This is my quest check level : quest incazdebug1 begin state start begin when login with pc.get_map_index() == 314 begin if pc.get_level() < 90 then warp_to_village() end end end end I found a player in this map under the level 90, i mean with level 80 .. Is there a way with a hack to teleport with what level you want there? and It wasn't a GM who teleported him there, because no1 in mai staff doesn't have any command It could bypass the quest check with the ghost mode and teleport him with wedding ring ? I'm just asking for a probably way... 1 Link to comment Share on other sites More sharing options...
Morphe 159 Posted May 29, 2015 Share Posted May 29, 2015 In char.cpp, search for: bool CAN_ENTER_ZONE And in switch (map_index) Add case 314 with return false. Like this: bool CAN_ENTER_ZONE(const LPCHARACTER& ch, int map_index) { switch (map_index) { case 301: case 302: case 303: case 304: case 314: if (ch->GetLevel() < 90) return false; } return true; } 1 Link to comment Share on other sites More sharing options...
Premium Speachless 759 Posted May 30, 2015 Author Premium Share Posted May 30, 2015 I tried to make it like this : bool CAN_ENTER_ZONE(const LPCHARACTER& ch, int map_index) { switch (map_index) { case 301: case 302: case 303: case 304: case 314: case 200: if (ch->GetLevel() < 90) return false; } else { case 218: if (ch->GetLevel() < 75) return false; } return true; } But it gives some errors. 1 Link to comment Share on other sites More sharing options...
Premium AndreiYildirim 5 Posted May 30, 2015 Premium Share Posted May 30, 2015 bool CAN_ENTER_ZONE(const LPCHARACTER& ch, int map_index) { switch (map_index) { case 301: case 302: case 303: case 304: case 314: case 200: if (ch->GetLevel() < 90) return false; break; case 218: if (ch->GetLevel() < 75) return false; else return true; break; 2 Link to comment Share on other sites More sharing options...
Premium Speachless 759 Posted May 30, 2015 Author Premium Share Posted May 30, 2015 bool CAN_ENTER_ZONE(const LPCHARACTER& ch, int map_index) { switch (map_index) { case 301: case 302: case 303: case 304: case 314: case 200: if (ch->GetLevel() < 90) return false; break; case 218: if (ch->GetLevel() < 75) return false; else return true; break; It didn't work. Link to comment Share on other sites More sharing options...
Solution Morphe 159 Posted May 30, 2015 Solution Share Posted May 30, 2015 (edited) Test this: bool CAN_ENTER_ZONE(const LPCHARACTER& ch, int map_index) { switch (map_index) { case 301: case 302: case 303: case 304: case 314: case 200: if (ch->GetLevel() < 90) return false; break; case 218: if (ch->GetLevel() < 75) return false; break; } return true; } https://metin2.download/picture/j9MgeKrec9KSLEmg7n1j2j0Sg03CtWeq/.png Edited August 30, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Premium Speachless 759 Posted May 30, 2015 Author Premium Share Posted May 30, 2015 Morphe, AndreiYildirim thank you. Link to comment Share on other sites More sharing options...
Active Member Exygo 1091 Posted May 30, 2015 Active Member Share Posted May 30, 2015 I had a similar problem with pc.get_level() and solved the problem by using pc.level() https://www.youtube.com/channel/UCQ8mAeda9TWq6SsTzB53emw/videos Link to comment Share on other sites More sharing options...
Premium Speachless 759 Posted May 30, 2015 Author Premium Share Posted May 30, 2015 I had a similar problem with pc.get_level() and solved the problem by using pc.level() I will notice that, now i am working for something like : switch (map_index) { case 314: if (ch->GetLevel() < 90) DBManager::instance().Query("INSERT INTO log.wait_hack SET login='%s', nickname='%s'", ch->GetDesc()->GetAccountTable().login, ch->GetName()); return false; Because i want to know who wanted to play in not a fair mode. Link to comment Share on other sites More sharing options...
Active Member Exygo 1091 Posted May 30, 2015 Active Member Share Posted May 30, 2015 I had a similar problem with pc.get_level() and solved the problem by using pc.level() I will notice that, now i am working for something like : switch (map_index) { case 314: if (ch->GetLevel() < 90) DBManager::instance().Query("INSERT INTO log.wait_hack SET login='%s', nickname='%s'", ch->GetDesc()->GetAccountTable().login, ch->GetName()); return false; Because i want to know who wanted to play in not a fair mode. Use quest function char_log https://www.youtube.com/channel/UCQ8mAeda9TWq6SsTzB53emw/videos Link to comment Share on other sites More sharing options...
Premium Speachless 759 Posted May 30, 2015 Author Premium Share Posted May 30, 2015 I had a similar problem with pc.get_level() and solved the problem by using pc.level() I will notice that, now i am working for something like : switch (map_index) { case 314: if (ch->GetLevel() < 90) DBManager::instance().Query("INSERT INTO log.wait_hack SET login='%s', nickname='%s'", ch->GetDesc()->GetAccountTable().login, ch->GetName()); return false; Because i want to know who wanted to play in not a fair mode. Use quest function char_log hm ? Link to comment Share on other sites More sharing options...
Morphe 159 Posted May 30, 2015 Share Posted May 30, 2015 (edited) Is more recommended by Source than by Quest. Edited May 30, 2015 by Morphe 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