VegaS 1087 Posted August 31, 2016 Share Posted August 31, 2016 M2 Download Center This is the hidden content, please Sign In or Sign Up ( Internal ) Hello world last night at around 5 am bored me and I created a short teleport order in minutes. What is this order? Order can be used for teleporting a player. By accessing the / teleport <number> you have to choose one of the numbers that are in the map settings. Each map has a configuration proposed for the minimum and maximum level. You can teleport a map if you do not have the required minimum. You can teleport a map if you level higher than the configuration map. List of papers default starts from 1 to 13. You can not enter a number less than 1. You can not enter a number greater than 13. You can not enter characters than numbers. When you tried to use the command without arguments will show the list as the number of error information, as well as where you enter a character or use / teleport show_list. You can add as many maps you want. Everything is configurable. Must have knowledge of C++ 0.1% to add more maps. Spoiler Download: This is the hidden content, please Sign In or Sign Up 17 1 5 1 2 27 Link to comment Share on other sites More sharing options...
Silver Sonitex 1438 Posted August 31, 2016 Silver Share Posted August 31, 2016 Great job! I hope you get bored more times 1 Link to comment Share on other sites More sharing options...
Active Member Mind Rapist 188 Posted August 31, 2016 Active Member Share Posted August 31, 2016 This is dope Stay awesome bro! 1 Link to comment Share on other sites More sharing options...
Honorable Member Mali 41883 Posted August 31, 2016 Honorable Member Share Posted August 31, 2016 nice 1 Link to comment Share on other sites More sharing options...
VegaS 1087 Posted August 31, 2016 Author Share Posted August 31, 2016 Because I'm a bitch, I'll do some updates required by some of you. So if you want to add something and I like I could add the code in a separate part. You feel free to express yourself. 3 Link to comment Share on other sites More sharing options...
Premium Mano 22 Posted August 31, 2016 Premium Share Posted August 31, 2016 Nice as always Link to comment Share on other sites More sharing options...
Frap3 2 Posted August 31, 2016 Share Posted August 31, 2016 Amazing Link to comment Share on other sites More sharing options...
BekirAKDMR 5 Posted September 1, 2016 Share Posted September 1, 2016 thanks man Link to comment Share on other sites More sharing options...
JeeX 38 Posted September 1, 2016 Share Posted September 1, 2016 Usefull System, i like it. Thanks given. I know "I created a short teleport order in minutes"So this should be only suggestions for improvement -> : 1. Why you dont do?: Spoiler if (ch->GetExchange() || ch->IsOpenSafebox() || ch->IsCubeOpen() || ch->GetShop() || ch->GetMyShop() #ifdef ENABLE_ACCE_COSTUME_SYSTEM || ch->IsAcceOpen() #endif #ifdef ENABLE_OFFLINE_SHOP || ch->GetOfflineShop() || ch->GetOfflineShopOwner() #endif ) 2nd thing -> if you open a NPC-shop you can warp immediately, normally you have to wait; so it is the 10sec time missing you have to wait. Working very good ! sry for bad english. Link to comment Share on other sites More sharing options...
VegaS 1087 Posted September 6, 2016 Author Share Posted September 6, 2016 On 01.09.2016 at 6:00 PM, JeeX said: 2nd thing -> if you open a NPC-shop you can warp immediately, normally you have to wait; so it is the 10sec time missing you have to wait. if (!ch->CanWarp()) // or ch->CanWarp() == false { ch->ChatPacket(CHAT_TYPE_NOTICE, "Please wait 10 seconds."); return; } Link to comment Share on other sites More sharing options...
TheGameDeveloper 55 Posted June 10, 2017 Share Posted June 10, 2017 Plese helperror: cannot initialize an array element oftype 'int' with an rvalue of type 'nullptr_t'{ NULL, NULL, NULL, NULL}, Link to comment Share on other sites More sharing options...
Tasho 243 Posted June 10, 2017 Share Posted June 10, 2017 4 hours ago, TheGameDeveloper said: error: cannot initialize an array element oftype 'int' with an rvalue of type 'nullptr_t' Replace with: { 0, 0, 0, 0}, 1 Link to comment Share on other sites More sharing options...
TheGameDeveloper 55 Posted June 10, 2017 Share Posted June 10, 2017 thanks Link to comment Share on other sites More sharing options...
TheGameDeveloper 55 Posted June 16, 2017 Share Posted June 16, 2017 not work { 0, 0, 0, 0}, crash core ingame Link to comment Share on other sites More sharing options...
Tasho 243 Posted June 16, 2017 Share Posted June 16, 2017 Hmm then try to change that: #cmd_General.cpp #Change: if (iRequestIndexMap < 1) #With: if (iRequestIndexMap <= 0) #Search: if (iRequestIndexMap > NUMBER_MAX_MAPS) #Add before: iRequestIndexMap -= 1; And replace the tables from .h with this: int szTeleportConfig[NUMBER_MAX_MAPS][4] = { { 473900, 954600, 1, 105 }, // metin2_map_a1 (idxMapIndex: 1) { 352300, 882700, 1, 105 }, // metin2_map_a3 (idxMapIndex: 3) { 63200, 166700, 1, 105 }, // metin2_map_b1 (idxMapIndex: 21) { 145700, 239800, 1, 105 }, // metin2_map_b3 (idxMapIndex: 23) { 959600, 269700, 1, 105 }, // metin2_map_c1 (idxMapIndex: 41) { 863800, 246000, 1, 105 }, // metin2_map_c3 (idxMapIndex: 43) { 436300, 215700, 10, 105 }, // map_n_snowm_01 (idxMapIndex: 61) { 270400, 739900, 15, 105 }, // map_n_threeway (idxMapIndex: 64) { 600900, 687500, 20, 105 }, // metin2_map_n_flame_01 (idxMapIndex: 62) { 217800, 627200, 25, 75 }, // metin2_map_n_desert_01 (idxMapIndex: 63) { 60000, 496600, 30, 85 }, // metin2_map_spiderdungeon (idxMapIndex: 10) { 553600, 144900, 35, 95 }, // metin2_map_milgyo (idxMapIndex: 65) { 284200, 809600, 45, 105 } // metin2_map_skipia_dungeon_01 (idxMapIndex: 72) }; char* szTableNameMaps[NUMBER_MAX_MAPS] = { "<1> Map1 Shinshoo (Lv. min.%d) | | (Lv. max.%d)", "<2> Map2 Shinshoo (Lv. min.%d) | | (Lv. max.%d)", "<3> Map1 Chunjo (Lv. min.%d) | | (Lv. max.%d)", "<4> Map2 Chunjo (Lv. min.%d) | | (Lv. max.%d)", "<5> Map1 Jinno (Lv. min.%d) | | (Lv. max.%d)", "<6> Map2 Jinno (Lv. min.%d) | | (Lv. max.%d)", "<7> Mount Sohan (Lv. min.%d) | | (Lv. max.%d)", "<8> Valley of Seungryong (Lv. min.%d) | | (Lv. max.%d)", "<9> Doyyumhwaji (Lv. min.%d) | | (Lv. max.%d)", "<10> Yongbi Desert (Lv. min.%d) | | (Lv. max.%d)", "<11> Spiders Dungeon 1 (Lv. min.%d) | | (Lv. max.%d)", "<12> Hwang Temple (Lv. min.%d) | | (Lv. max.%d)", "<13> Skipia Dungeon 1 (Lv. min.%d) | | (Lv. max.%d)" }; 1 Link to comment Share on other sites More sharing options...
TheGameDeveloper 55 Posted June 18, 2017 Share Posted June 18, 2017 Thanks work. Link to comment Share on other sites More sharing options...
ATHOM 1 Posted October 16, 2017 Share Posted October 16, 2017 Good job VegaS, thanks ! Link to comment Share on other sites More sharing options...
Recommended Posts