Jump to content

strangerino

Member
  • Posts

    22
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by strangerino

  1. Hello, I would like to ask you, where can I change the empire flag in client? I would like to edit those 3 flags above players to custom ones. Where do I find them? Thanks
  2. So I actually have this: quest dropquest begin state start begin when kill with not npc.is_pc() begin local randReceptura = math.random(0, 1000); local randPruty = math.random(0, 1500); local randOstatni_0 = math.random(0, 500); -- Smes local randOstatni_1 = math.random(0, 500); -- Byliny local randOstatni_2 = math.random(0, 500); -- Predmety local randZily = math.random(0, 850); sanceReceptura = 3; -- Receptury sancePruty = 1; -- Pruty sanceOstatni = 10; -- Bordel sanceZily = 3; -- Zily metiny local levelRange = 25; local receptura = {30121, 30122, 30122, 30123, 30124, 30125, 30126, 30127, 30128}; local pruty = {80007, 80006, 80005, 80004, 80003}; local ostatni = { 25040, 50012, 50013, 50006, 50007, 50008, 50009, 50014, 50015, 50005, 50301, 50302, 50303, 50304, 50305, 50306, 50307, 50308, 50309, 50310, 50314, 50315, 50316, 50600 }; local byliny = { 50701, 50702, 50703, 50704, 50705, 50706, 50707, 50708, 50709, 50710, 50711, 50712, 70251, 70252, 70253, 70254 }; local zily = { 71057, 71058, 71059, 71060, 71061, 71062, 71063, 71064, 71065, 71066, 71067, 71080, 71081, 71082 }; local drop_1_20 = { 11, 13, 21, 23, 31, 33, 41, 43, 3001, 3003, 3011, 3013, 3021, 3023, 3031, 3033, 5001, 5003, 5011, 5013, 5021, 5023, 5031, 5033, 7001, 7003, 7011, 7013, 7021, 7023, 7031, 7033, 1001, 1003, 1011, 1013, 1021, 1023, 1031, 1033, 2001, 2003, 2011, 2013, 2021, 2023, 2031, 2033, 11201, 11203, 11211, 11213, 11221, 11223, 11601, 11603, 11611, 11613, 11621, 11623, 11401, 11403, 11411, 11413, 11421, 11423, 11801, 11803, 11811, 11813, 11821, 11823, 12201, 12203, 12341, 12343, 12481, 12483, 12621, 12623, 15001, 15003, 15021, 15023, 15041, 15043, 13001, 13003, 16001, 16003, 16021, 16023, 16041, 16043, 16061, 16063, 14001, 14003, 14021, 14023, 14041, 14043, 14061, 14063, 17001, 17003, 17021, 17023, 17041, 17043, 17061, 17063 }; local drop_21_50 = { 51, 53, 61, 63, 71, 73, 81, 83, 91, 93, 101, 103, 111, 113, 121, 123, 3041, 3043, 3051, 3053, 3061, 3063, 3071, 3073, 3081, 3083, 3091, 3093, 3101, 3103, 3111, 3113, 5041, 5043, 5051, 5053, 5061, 5063, 5071, 5073, 7041, 7043, 7051, 7053, 7061, 7063, 7071, 7073, 7081, 7083, 7091, 7093, 7101, 7103, 7111, 7113, 1041, 1043, 1051, 1053, 1061, 1063, 1071, 1073, 1081, 1083, 2041, 2043, 2051, 2053, 2061, 2063, 2071, 2073, 2081, 2083, 2091, 2093, 2101, 2103, 2111, 2113, 11231, 11233, 11241, 11243, 11251, 11253, 11261, 11263, 11631, 11633, 11641, 11643, 11651, 11653, 11661, 11663, 11431, 11433, 11441, 11443, 11451, 11453, 11461, 11463, 11831, 11833, 11841, 11843, 11851, 11853, 11861, 11863, 12221, 12223, 12241, 12243, 12361, 12363, 12381, 12383, 12501, 12503, 12521, 12523, 12641, 12643, 12661, 12663, 15061, 15063, 15081, 15083, 15101, 15103, 15121, 15123, 15141, 15143, 15161, 15163, 15181, 15183, 13021, 13023, 13041, 13043, 16081, 16083, 16101, 16103, 16121, 16123, 16141, 16143, 16161, 16163, 16181, 16183, 14081, 14083, 14101, 14103, 14121, 14123, 14141, 14143, 14161, 14163, 14181, 14183, 17081, 17083, 17101, 17103, 17121, 17123, 17141, 17143, 17161, 17163, 17181, 17183 }; -- Check if using gloves if(pc.get_wear(7) == 70043 or pc.get_wear(8) == 70043) then sanceReceptura = sanceReceptura * 2; -- Receptury sancePruty = sancePruty * 2; -- Pruty sanceOstatni = sanceOstatni * 2; -- Bordel sanceZily = sanceZily * 2; -- Zily metiny else sanceReceptura = sanceReceptura; -- Receptury sancePruty = sancePruty; -- Pruty sanceOstatni = sanceOstatni; -- Bordel sanceZily = sanceZily; -- Zily metiny end if (pc.get_level() - npc.get_level() < levelRange) then -- Drop receptury start for index = 1, table.getn(receptura) do if (randReceptura <= sanceReceptura) then local itemSelection = math.random(1, table.getn(receptura)); game.drop_item_with_ownership(receptura[itemSelection], 1); break; end end -- Drop pruty start for index = 1, table.getn(pruty) do if (randPruty <= sancePruty) then local itemSelection = math.random(1, table.getn(pruty)); game.drop_item_with_ownership(pruty[itemSelection], 1); break; end end -- Drop bordel start (0) SMES for index = 1, table.getn(ostatni) do if (randOstatni_0 <= sanceOstatni) then local itemSelection = math.random(1, table.getn(ostatni)); game.drop_item_with_ownership(ostatni[itemSelection], 1); break; end end -- Drop byliny start (1) BYLINY for index = 1, table.getn(byliny) do if (randOstatni_1 <= sanceOstatni) then local itemSelection = math.random(1, table.getn(byliny)); game.drop_item_with_ownership(byliny[itemSelection], 1); break; end end -- Drop zily a metiny start for index = 1, table.getn(zily) do if (randZily <= sanceZily) then local itemSelection = math.random(1, table.getn(zily)); game.drop_item_with_ownership(zily[itemSelection], 1); break; end end -- Drop level 1 - 20 start (2) PREDMETY if(pc.get_level() > 0 and pc.get_level() < 21) then for index = 1, table.getn(drop_1_20) do if (randOstatni_2 <= sanceOstatni) then local itemSelection = math.random(1, table.getn(drop_1_20)); game.drop_item_with_ownership(drop_1_20[itemSelection], 1); break; end end end -- Drop level 21 50 start (2) PREDMETY if(pc.get_level() > 21 and pc.get_level() < 51) then for index = 1, table.getn(drop_21_50) do if (randOstatni_2 <= sanceOstatni) then local itemSelection = math.random(1, table.getn(drop_21_50)); game.drop_item_with_ownership(drop_21_50[itemSelection], 1); break; end end end end end end end Just need to find out whether there is a function to count the drop chances (items, empire drop chance, etc...) Already done gloves. But will improve that later. Is there a function to find those I listed above?
  3. But with quests, there is no way to use gloves to increase drop rate, or is there a way to increase it?
  4. Thanks, but won't it stress the server a lot? Is it a good way to do it?
  5. Hello, I am kinda new to adding item drops, so I would like to ask you about this. I would like to add gold bar 80007, 80006, 80005 drop from all mobs with a low percentage chance. I managed to change common_drop_item.txt and added my stuff, but it somehow did not work as expected. Is there a way to add it in a different way than using common_drop_item.txt? That file is a mess from the beginning of Metin2 lol
  6. Heyy, this could help you out. error_reporting(0); $host = "89.221.212.165"; if(fsockopen($host, 3306)) { echo("Databáze: <span style='color: green; font-weight: bold; font-style: italic;'>ONLINE</span>"); } else { echo("Databáze: <span style='color: red; font-weight: bold; font-style: italic;'>OFFLINE</span>"); } echo("</br>"); if(fsockopen($host, 11000)) { echo("Přihlášení: <span style='color: green; font-weight: bold; font-style: italic;'>ONLINE</span>"); } else { echo("Přihlášení: <span style='color: red; font-weight: bold; font-style: italic;'>OFFLINE</span>"); } echo("</br>"); if(fsockopen($host, 13001)) { echo("Kanál 1: <span style='color: green; font-weight: bold; font-style: italic;'>ONLINE</span>"); } else { echo("Kanál 1: <span style='color: red; font-weight: bold; font-style: italic;'>OFFLINE</span>"); } echo("</br>"); if(fsockopen($host, 13011)) { echo("Kanál 2: <span style='color: green; font-weight: bold; font-style: italic;'>ONLINE</span>"); } else { echo("Kanál 2: <span style='color: red; font-weight: bold; font-style: italic;'>OFFLINE</span>"); } echo("</br>"); if(fsockopen($host, 13021)) { echo("Kanál 3: <span style='color: green; font-weight: bold; font-style: italic;'>ONLINE</span>"); } else { echo("Kanál 3: <span style='color: red; font-weight: bold; font-style: italic;'>OFFLINE</span>"); } echo("</br>"); if(fsockopen($host, 13031)) { echo("Kanál 4: <span style='color: green; font-weight: bold; font-style: italic;'>ONLINE</span>"); } else { echo("Kanál 4: <span style='color: red; font-weight: bold; font-style: italic;'>OFFLINE</span>"); } echo("</br>");
  7. Hello, I have been wondering how to do an autologin from patcher straight to game. Some servers already have this feature, where you fill in your credentials, select a channel and only press play button to enter the selected channel. Logging in in the game client is disabled and only allowed to log in straight from launcher. How is this made? I am using 40k files from TMP4 and even the client listed in his topic. I do have some basics of C#, but have no idea of doing such thing.
  8. Hello, I have installed this serverfile and did some changes to the game file. Now whenever I start the game, it throws me an error saying (ld-elf32.so.1: Shared object "libIL.so.1" not found, required by "game"). I have got DevIL installed and same for tiff. pkg install devil pkg install tiff Both of them are running the latest version, but it still outputs the same error message... What could be wrong?
  9. Hello everyone, I would like to ask you for an unedited mob_proto.txt with all the values like gold exp an etc... I dont have the yang value filled. Theres just 0 in the yang column. And I dont feel like adding yang to all the existing mobs. Thanks
  10. So there is one more thing I would like to add to this. I'm trying to translate locale_string.txt, but it also seems to not be working as expected. First of all, I have set the charset in charset.txt to utf-8 and even tried ansi/cp1250, none of those worked. For example, I'm trying to translate the error message saying command does not exist to czech language, which should look like "Tento příkaz neexistuje". But there's a problem with the encoding. When I type a wrong command in the game, I only get "Tento p?ikaz neexistuje", or after I change the charset of the locale_string.txt to ANSI/CP1250 in Notepad++, it only displays me the original chinese error output - "그런 명령어는 없습니다"; This is my current settings: locale_string.txt (UTF-8) "그런 명령어는 없습니다"; "Tento příkaz neexistuje. "; charset.txt utf-8 Gamechat output Tento p?ikaz neexistuje. What I don't understand is why do quests work fine with the ANSI encoding enabled and a space at the end of every line as stated above. This for some reason does not work as expected and when things go wrong it starts displaying the chinese message or my message with ? instead of ř. I even tried to remove the chinese error output, it still found it somewhere and gave me the chinese output, so it must be stored somewhere else I suppose... I honestly would like to remove all the chinese outputs to only display the translated ones, but what I also don't understand is the system choosing the messages from the file, as there are no variables at all, so how does it know what to choose? Does it count lines? I honestly hope you can help me out with this, because I don't think I can solve this on my own.
  11. Hello everyone, what I am at this moment trying to solve is using special chars in quests. I'm talking about chars such as (ěščřžýáíé). Every time I use one of those chars in one of my quests, reload it and restart the server, I only get connection refused, even though there were no errors given during the compilation. I kinda figured this out, by adding a space at the end of every line containing one of those special chars. That seems to be working and not causing the issue, but I honestly believe, there is a better way to fix that and that is what I want to know. To explain the issue better, I'm adding an example. say("Ahoj, jak se máš?") - There's no space at the end of the string, so this would cause the connection refused error. say("Ahoj, jak se máš? ") - This would not as there is a space at the end of the string, right after the question mark. I tried to use ANSI and UTF-8, none of them worked without the space. //Note: special chars are being displayed correctly in the game.
  12. Oh, perfect. It actually works. Thank you very much! And to not start an another thread asking about something similiar - how do you compile the game file in Fliege? I can't remember the command.
  13. 4 File "make.py", line 17 print (Error occured on compile ' + line ^ SyntaxError: invalid syntax root@d390-4016:/usr/home/game # root@d390-4016:/usr/home/game # python Python 2.7.16 (default, Nov 14 2019, 01:16:30) [GCC 4.2.1 Compatible FreeBSD Clang 6.0.1 (tags/RELEASE_601/final 335540)] on freebsd12 Type "help", "copyright", "credits" or "license" for more information. >>> So this is the error I am getting. Any idea? Even tried to add ( ).
  14. Hello, I have recently installed a brand new freebsd12 server and uploaded everything needed. I even managed to successfuly run the server, but what I am struggling at is compiling quests. It used to say python not found, so I installed python, rebooted and tried again. Python not found was no longer showing up, but instead I am getting an error saying syntax error in make.py, while there are no errors as everything works just fine on my localhost. I even tried multiple versions of python. 3.7 and 2.7. Nome of them worked and both ended with the same syntax error. Do you have any idea what could be wrong? Its the fliege files reworked.
  15. Hello, I have a public IP and whenever I try to start portmaps and connect to the server, the portmaps always crash as I connect the server. The game client obviously dies after portmaps crashing. Why is this happening? I would like to open the ports using my router settings, but for some reason, I can't access the router, so I need to go the portmaps way. - By not being able to access the router I mean, I can't open the ip/url of the router, I do have access to it,but the ip/url of the router wont load, so I'm unable to get into the router settings.
  16. Hello, I've edited the following quest and I'm getting a connection refused error, after reloading the quests and restarting the game core. I need to reboot the whole machine to reload the quest and to not get the connection refused error. quest give_basic_weapon begin state start begin when login with pc.getqf("basicweapon") == 0 begin local klasse say_title("Server namerino") say("Welcome to serverino, you warriorerino") say("") say_reward("Itemerino getterino") if pc.job == 0 then pc.give_item2(11206, 1) pc.give_item2(16, 1) elseif pc.job == 1 then pc.give_item2(11406, 1) pc.give_item2(2006, 1) pc.give_item2(1006, 1) pc.give_item2(12346, 1) pc.give_item2(8000, 200) elseif pc.job == 2 then pc.give_item2(11606, 1) pc.give_item2(16, 1) pc.give_item2(12486, 1) elseif pc.job == 3 then pc.give_item2(11806, 1) pc.give_item2(7006, 1) pc.give_item2(12626, 1) end pc.give_item2(13006 , 1) pc.give_item2(14006 , 1) pc.give_item2(15006 , 1) pc.give_item2(16006 , 1) pc.give_item2(17006 , 1) pc.give_item2(70038 , 50) pc.give_item2(72723 , 1) pc.give_item2(72727 , 1) pc.setqf("basicweapon", 1) set_state(__complete) end end state __complete begin end end What's wrong with my code?
  17. And to the serverfiles. Which would you recommend me? I found lots of serverfiles, but the official ones do not work on localhosts according to authors of the threads. Recommendation serverfiles + client would be great. It should be something as official servers, I don't mind how old it is. I only want basic files and levels visible.
  18. So you think, testing it on VPS instead of VDS would be okay? VPS is cheaper, yeah... But won't it lag as its not as good as VDS?
  19. Hello everyone, who's reading this thread. I've been thinking a lot and I decided to create a Metin2 Private Server. First of all, I'm not a complete beginner, but I'm only experienced with hamachi P-Servers, but as hamachi times are gone, I would like to create a legit P-Server running on a dedicated server, which I would like to buy on OVH.com. And to start it all off, I probably need and prefer something cheap and so I found this: CPU: Intel Xeon D-1520 - 4c/8t - 2.4GHz /2.7GHz RAM: 32GB DDR4 ECC 2133 MHz And the question is, would this be enough for beginning? Including 1Gbps/1Gbps connectivity. And would you recommend me using FreeBSD or Windows Server or something else? I would like to run website, databases and the p-server on the dedicated server. Also... Which serverfile would you recommend me as I would like to start off completely from scratch, with basically nothing done. I only have one requirement: Off.Serverfile at least 2012+ Thanks in advance. Sincerely, strangereu
×
×
  • 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.