strangerino
Inactive Member-
Posts
28 -
Joined
-
Last visited
-
Feedback
0%
About strangerino

Informations
-
Gender
Male
Recent Profile Visitors
1427 profile views
strangerino's Achievements
-
Hello, I'm running a 40k serverfiles by TMP4 and I am wondering how to shorten the waiting time for horse symbol? I managed to set this in horse_upgrade: pc.setqf("make_time", get_time()+number(8, 16)*60*60) to: pc.setqf("make_time", get_time()+10) which I expect to set the waiting time current time + 10s... but I have been waiting for a few hours and nothing yet happened... I even tried to change time data in pony_levelup, but nothing has happened... pony_levelup if is_test_server() then pc.setqf("next_time", get_time()+10) else pc.setqf("next_time", get_time()+number(12, 24)*60*60) end I tried doing the same... get_time() + 10, but none of that helped... Could you please help me out?
-
Hello, I am trying to make 71051 and 71052 as ITEM_STACKABLE and there is ITEM_STACKABLE | LOG | STACKABLE in the database, but if I remove STACKABLE and keep only ITEM_STACKABLE and LOG then I am able to stack it, but unable to use it to add 6/7 bonus and if I remove ITEM_STACKABLE and keep only LOG and STACKABLE then I am not able to stack it, but I am able to use it... And with all those 3 values I still cannot stack the item, so maybe I am doing something wrong? 71051 ňء¤Ŕç°ˇşńĽ ITEM_USE USE_SPECIAL 1 NONE ITEM_STACKABLE | LOG | STACKABLE NONE NONE 1000000 0 0 0 0 LIMIT_NONE 0 LIMIT_NONE 0 APPLY_NONE 0 APPLY_NONE 0 APPLY_NONE 0 0 0 0 0 0 0 0 0 0 71052 ňء¤Ŕç°ćşńĽ ITEM_USE USE_SPECIAL 1 NONE ITEM_STACKABLE | LOG | STACKABLE NONE NONE 1500000 0 0 0 0 LIMIT_NONE 0 LIMIT_NONE 0 APPLY_NONE 0 APPLY_NONE 0 APPLY_NONE 0 0 0 0 0 0 0 0 0 0
-
Hello, I've got an issue related to compiling quests... I made a quest for item exchange with some select options and every time I use Czech language symbols I keep getting an error while compiling... quest smena_receptu begin state start begin when 20003.chat."Směna receptury" begin say_title("Ah-Yu:") say("Mohu ti směnit receptury.") say("Přines mi recepturu, a můžeš si vybrat jednu") say("z ostatních receptur.") say("Kolik receptur chceš směnit?") local count = tonumber(input()) if count == nil or count <= 0 then say("Zadej platný počet!") return end if pc.count_item(30128) < count then say("Nemáš dostatek receptur.") return end local selected = select("Receptura brnění", "Receptura bot", "Receptura naušnic", "Receptura náhrdelníků", "Receptura štítů", "Receptura helem", "Receptura náramků", "Receptura zbraní") local recept_map = { [1] = 30120, [2] = 30121, [3] = 30122, [4] = 30123, [5] = 30124, [6] = 30125, [7] = 30126, [8] = 30127 } local selected_recept = recept_map[selected] pc.remove_item(30128, count) pc.give_item2(selected_recept, count) say_title("Ah-Yu:") say("Získal jsi "..count.." ks receptur "..selected_recept.."!") end end end What am I doing wrong? Some of my quests keep working just fine with latin1 / cp1250, but this one doesnt... Even the text outside of the buttons keeps working fine, but the text inside the select() is causing problems. When I remove the letters such as ěščřžýáíé it starts working fine. How do I fix this?
-
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?
-
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
-
Status Server MT2 Website
strangerino replied to SOUZEGB's topic in Community Support - Questions & Answers
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>"); -
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.
-
[40250] Reference Serverfile + Client + Src [15 Available Languages]
strangerino replied to TMP4's topic in Binaries
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? -
strangerino started following TMP4
-
Looking for some default mob_proto.txt
strangerino replied to strangerino's topic in Paid Support / Searching / Recruiting
Bump
