Jump to content

strangerino

Member
  • Posts

    22
  • Joined

  • Last visited

  • Feedback

    0%

About strangerino

Informations

  • Gender
    Male

Recent Profile Visitors

582 profile views

strangerino's Achievements

Explorer

Explorer (4/16)

  • Dedicated
  • Reacting Well
  • First Post
  • Collaborator
  • Conversation Starter

Recent Badges

2

Reputation

  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.
×
×
  • 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.