All Activity

This stream auto-updates   

  1. Past hour
  2. up
  3. Today
  4. Yeah i know, was just for other things. You can do it like this, without loop. if selected then [.......] end Or you can remove without check selected and without any loops. quest offline_message begin state start begin when 9006.chat."Select lang" with pc.getqf("selected") == 0 begin say_title(mob_name(npc.get_race())..":") say("") local selected = select("Magyar", "English", "Deutsch") pc.setqf("lang", selected) pc.setqf("selected", 1) say(translate[pc.getqf("lang")].offline_msg.notice) end end end end
  5. Yesterday
  6. @Tasho, didn't get that for-loop.
  7. 300+ lines for translate and exist 3 quests per language..omg. I will prefer much better something like this: translate[1].offline_msg = {} translate[1].offline_msg.notice = "Választott nyelv: Magyar!" translate[2].offline_msg = {} translate[2].offline_msg.notice = "Language selected: English!" translate[3].offline_msg = {} translate[3].offline_msg.notice = "Sprache gewählt: Deutsch!" And quest for select need to look like this: quest offline_message begin state start begin when 9006.chat."Select lang" with pc.getqf("selected") == 0 begin say_title(mob_name(npc.get_race())..":") say("") local selected = select("Magyar", "English", "Deutsch") for key = 1, 3 do if selected == key then pc.setqf("lang", key) pc.setqf("selected", 1) say(translate[pc.getqf("lang")].offline_msg.notice) end end end end end And now you can call all with: say(translate[pc.getqf("lang")].offline_msg.name)
  8. Link added
  9. Hi metin2dev, First multi language offline message system by [007]DawisHUN Information: Installation: Install in MySQL IN Notepad++ convert to ANSI SAVE AS offline_levelezes.quest Language : Have problem? Reply to this topic ... Quote topic i will work on including more language Try to help? send me PM Offline_levelezes.quest It will help " + " thank you
  10. I'm trying to run game_rxxxx file from Server/game but when I use sh game_rxxxxxx_xx file, I'm getting game_rxxxxx_xx: 1: Syntax error: "(" unexpected. Did I executed the wrong command or something? When I did file game_rxxxxxx_xx I'm getting ELF 32-bit LSB executable, Inte 80386, version 1. How can I solve the error and start the server? Thanks.
  11. Please Delete
  12. Hello everyone. We have some problem with our server. The login, and the ch1 is probably under attack because we and other players cant connect to the server, or just very hardly. Syslog: Feb 23 20:00:00.111679 :: SYSTEM: new connection from [84.236.40.24] fd: 17 handshake 1925189220 output input_len 0, ptr 0x4dcf1400 Feb 23 20:00:00.160869 :: SYSTEM: closing socket. DESC #18 Feb 23 20:00:00.201885 :: SYSTEM: new connection from [109.110.221.104] fd: 18 handshake 2943155996 output input_len 0, ptr 0x4dcf6800 Feb 23 20:00:00.240960 :: SYSTEM: closing socket. DESC #17 Feb 23 20:00:00.273052 :: SYSTEM: new connection from [87.97.61.204] fd: 17 handshake 3956694818 output input_len 0, ptr 0x4dcf1400 Feb 23 20:00:00.310969 :: SYSTEM: closing socket. DESC #18 Feb 23 20:00:00.361422 :: SYSTEM: new connection from [62.77.249.188] fd: 18 handshake 1069098724 output input_len 0, ptr 0x4dcf6800 Feb 23 20:00:00.401140 :: SYSTEM: closing socket. DESC #17 Feb 23 20:00:00.441694 :: SYSTEM: new connection from [87.97.82.166] fd: 17 handshake 174580450 output input_len 0, ptr 0x4dcf1400 Feb 23 20:00:00.481305 :: SYSTEM: closing socket. DESC #18 Feb 23 20:00:00.511402 :: SYSTEM: new connection from [109.105.0.116] fd: 18 handshake 2042924810 output input_len 0, ptr 0x4dcf6800 Feb 23 20:00:00.561209 :: SYSTEM: closing socket. DESC #17 Feb 23 20:00:00.591674 :: SYSTEM: new connection from [81.182.75.89] fd: 17 handshake 3901646441 output input_len 0, ptr 0x4dcf1400 Feb 23 20:00:00.641198 :: SYSTEM: closing socket. DESC #18 Feb 23 20:00:00.671312 :: SYSTEM: new connection from [87.97.49.29] fd: 18 handshake 3365341319 output input_len 0, ptr 0x4dcf6800 Feb 23 20:00:00.721087 :: SYSTEM: closing socket. DESC #17 Feb 23 20:00:00.763735 :: SYSTEM: new connection from [92.249.156.162] fd: 17 handshake 355866932 output input_len 0, ptr 0x4dcf1400 Feb 23 20:00:00.791010 :: SYSTEM: closing socket. DESC #18 Feb 23 20:00:00.841574 :: SYSTEM: new connection from [91.82.32.33] fd: 18 handshake 3024604938 output input_len 0, ptr 0x4dcf6800 Feb 23 20:00:00.881089 :: SYSTEM: closing socket. DESC #17 Feb 23 20:00:00.911602 :: SYSTEM: new connection from [94.44.252.207] fd: 17 handshake 4180896694 output input_len 0, ptr 0x4dcf1400 Feb 23 20:00:00.960884 :: SYSTEM: closing socket. DESC #18 We tried to protect the ports in ipfw, but it seems, it didnt work: $IPF 226 allow all from any to any dst-port 12000,13000,13010,13099, in via em0 setup limit src-addr 10 Experience: Our syserr, and syslog size is increasing every time after we start the server. If we change the ch1 port for example, It works well, but after a plenty of time it is down again and we cannot do anything against it. Can anyone help up us?
  13. I tried solving your [007] DawisHU at that bug fail ... I dropped the system because of that bug, a las quest if I can help you with him quest pet_system begin state start begin when letter begin cmdchat("petguihideshow "..q.getcurrentquestindex()) end function givebonus(x) local mobVnum = pc.getqf("mobVnum") local y,boni = {17,16,1},pet_system.bonusliste() table.foreach(boni[x],function(i,l) cmdchat("HaustierBonus"..i.." "..l.."") affect.add_collect(y[i],l,60*60*24*365*60) end ) cmdchat("HaustierLevel "..pc.getqf('petlevel_'..mobVnum).."") cmdchat("HaustierName "..pc.get_name().."") pc.setqf("petruf",1) pc.setqf("petguishow",1) end function bonusliste() return { [1] = {1,1,200}, [2] = {2,2,300}, [3] = {3,3,400}, [4] = {4,4,500}, [5] = {5,5,600}, [6] = {6,6,700}, [7] = {7,7,800}, [8] = {8,8,900}, [9] = {9,9,1000}, [10] = {10,10,1100}, [11] = {11,11,1200}, [12] = {12,12,1300}, [13] = {13,13,1400}, [14] = {14,14,1500}, [15] = {15,15,1600}, [16] = {16,16,1700}, [17] = {17,17,1800}, [18] = {18,18,1900}, [19] = {19,19,1950}, [20] = {20,20,2000}, } end function removebonus(x) local y,boni = {17,16,1},pet_system.bonusliste() table.foreach(boni[x],function(i,l) affect.remove_collect(y[i],l,60*60*24*365*60) end ) pc.setqf("petruf",0) --cmdchat("HidePetGui") pc.setqf("petguishow",0) cleartimer("bugcheck") end function get_pet_info(itemVnum) pet_info_map = { -- [ITEM VNUM] MOB_VNUM, DEFAULT NAME, buff_idx, spawn_effect_idx [53225] = { 34029, "-Sigiliu Clopotel de Nea", 1}, } itemVnum = tonumber(itemVnum) return pet_info_map[itemVnum] end function get_spawn_effect_file(idx) effect_table = { [0] = nil, [1] = "d:ymir workeffectetcappear_diemonster_appear.mse", } return effect_table [idx] end when 53007.use or 53013.use or 53012.use or 53011.use or 53010.use or 53005.use or 53006.use or 53003.use or 53002.use or 53001.use or 53014.use or 53015.use or 53017.use or 53018.use or 53019.use or 53016.use or 53008.use or 53009.use or 53020.use or 53021.use or 53022.use or 53023.use or 53024.use or 53224.use or 53225.use begin local pet_info = pet_system.get_pet_info(item.vnum) if null != pet_info then local mobVnum = pet_info[1] local petName = pet_info[2] local spawn_effect_file_name = pet_system.get_spawn_effect_file(pet_info[4]) pc.setqf("mobVnum",mobVnum) if true == pet.is_summon(mobVnum) then if spawn_effect_file_name != nil then pet.spawn_effect (mobVnum, spawn_effect_file_name) end pet.unsummon(mobVnum) pet_system.removebonus(pc.getqf('petlevel_'..mobVnum)) cmdchat("HidePetGui") syschat("Animalul de companie a fost alungat") else if pet.count_summoned() < 1 then pet.summon(mobVnum, petName, false) if pet_info[4] ~= nil then cmdchat(pet_info[4]) end if pc.getqf('petlevel_'..mobVnum) == 0 then pc.setqf('petlevel_'..mobVnum,1) end syschat("Animalul de companie a fost chemat.") pet_system.givebonus(pc.getqf('petlevel_'..mobVnum)) local expprocent1 = {20, 40, 60, 80, 100, 120, 140, 160, 180, 200, 220, 240, 260, 280, 300, 320, 350, 400, 450, 500} cmdchat("PetProcentExp "..(pc.getqf("exp_"..mobVnum)/expprocent1[pc.getqf("petlevel_"..mobVnum)]).."") cmdchat("ShowPetGui") loop_timer("bugcheck", 0.2) else syschat("Ai deja chemat un animalut!") end if spawn_effect_file_name != nil then pet.spawn_effect(mobVnum, spawn_effect_file_name) end end -- if pet.is_summon end -- if null != pet_info end -- when when kill with not npc.is_pc() begin local mobVnum = pc.getqf("mobVnum") if pc.getqf("petlevel_"..mobVnum) == 20 then return else if pc.getqf("petruf")==1 then --intervall = 10 --if pc.get_level() <= mob.get_level(npc.get_race())+ intervall then -- Poate fi doar lvl max 10 peste monstru pc.setqf("exp_"..mobVnum,pc.getqf("exp_"..mobVnum)+1) local exp2up = {2000, 4000, 6000, 8000, 10000, 12000, 14000, 16000, 18000, 20000, 22000, 24000, 26000, 28000, 30000, 32000, 35000, 40000, 45000, 50000} local expprocent = {20, 40, 60, 80, 100, 120, 140, 160, 180, 200, 220, 240, 260, 280, 300, 320, 350, 400, 450, 500} cmdchat("PetProcentExp "..(pc.getqf("exp_"..mobVnum)/expprocent[pc.getqf("petlevel_"..mobVnum)]).."") if pc.getqf("exp_"..mobVnum) == exp2up[pc.getqf("petlevel_"..mobVnum)] then if pc.getqf("petlevel_"..mobVnum) == 19 then say_title("Animal de companie") say("Animalut de companie Level "..(pc.getqf("petlevel_"..mobVnum)+1).."") say_reward("Acesta a fost ultimul nivel!") end say_title("Animal de companie") say("Animalut de companie Level "..(pc.getqf("petlevel_"..mobVnum)+1).."") say("Felicitarii!") pc.setqf("petlevel_"..mobVnum,pc.getqf("petlevel_"..mobVnum)+1) pc.setqf("exp_"..mobVnum,0) pet_system.removebonus(pc.getqf('petlevel')) end end -- if not... end -- if pc.get... end -- when -- Bugschutz when bugcheck.timer begin if pc.is_dead() then pet_system.removebonus(pc.getqf('petlevel')) end end when login or dead or logout or disconnect with pc.getqf("petruf") == 1 begin local mobVnum = pc.getqf("petlevel_") pet_system.removebonus(petlevel_) end end -- state end -- quest
  14. Heh, on this one i had brainlag, didnt placed the ip at outh in serverinfo, awkward af, ty bro
  15. this is the system.boolean code i guess bool CEterPack::Create(CEterFileDict& rkFileDict, const char * dbname, const char* pathName, bool bReadOnly, const BYTE* iv) { if (iv) { m_stIV_Panama.assign((const char*) iv, 32); m_bDecrypedIV = false; } m_stPathName = pathName; strncpy(m_dbName, dbname, DBNAME_MAX_LEN); strncpy(m_indexFileName, dbname, MAX_PATH); strcat(m_indexFileName, ".xim"); // EIX m_stDataFileName = dbname; m_stDataFileName += ".mnd"; // EPK m_bReadOnly = bReadOnly; // bReadOnly 모드가 아니고 데이터 베이스가 열린다면 생성 실패 if (!CreateIndexFile()) return false; if (!CreateDataFile()) return false; should i change .xim and .mnd to eix nd epk ? I've managed to make the starter work, it was as you said, bcs of the extensions, now it is telling me to start the patcher for some reason..., btw is it right to have just this in the pack folder DATA_PATCH_METIN2_HAPPINESS_CLIENT * patch_m2happ_mndwork * patch_m2happ_game_01 * patch_m2happ_game_02 * patch_m2happ_maps * patch_m2happ_properties * patch_m2happ_ui
  16. I tried with this quest quest vip begin state start begin when 40003.use begin if pc.count_item(40003)>=1 then say_title("Inel [VIP]") say("Vrei sa ai VIP in fata numelui") local a = select("Da!", "Nu") if a == 1 then local name = pc.get_name() local find_id = mysql_query("SELECT account_id from player.player WHERE name='"..name.."' LIMIT 1;") local id = find_id[1][1]+1-1 mysql_query("UPDATE player.player SET name='[VIP]"..name.."' WHERE account_id='"..id.."' LIMIT 1;") pc.remove_item(40003) syschat("Votre demande à été envoyé au serveur. Votre") syschat("changera dès que le serveur aura retourné l'information!") else return end else say_title("Inel [VIP]") say("Aveti Nevoie de") say("Inelul VIP pentru a activa numele:") say_item_vnum(40003) say("Intoarcete cand ai.") return end end end end But doesn't work when i use ingame item i have this problem : mysql: ambiguous option '--e=SELECT account_id from player.player WHERE name='Kaden' LIMIT 1;' (enable_cleartext_plugin, execute) si acest warning Mysql warning "password on the command line . Mentioning i use server with source 40k. Sorry for my bad english.
  17. I have found close topic xD
  18. He found the style of me
  19. Could you accept me on skype?
  20. If pc.change_name() doesn't work (normal thing,since you're using parenthesis), use a query: quest vip begin state start begin when 40003.use begin local name = pc.get_name(); local item_vnum = item.get_vnum(); say_title(string.format("%s:[ENTER]", item_name(item_vnum))) if (string.find(pc.get_name(), "[") ~= nil or pc.is_gm()) then say("You already have a VIP name") say("or you are a staff member.[ENTER]") end -- if local new_name = string.format("[VIP]%s", name); say("By continuing, you will be able to change") say("your character's name into a VIP name.[ENTER]") say_reward(string.format("Your new name will be: %s.[ENTER]", new_name)) say("Are you sure you want to continue?[ENTER]") if (select("Yes, I'm sure", "No, I'm not") == 1) then mysql_query(string.format("UPDATE player.player SET name = '%s' WHERE name = '%s';", new_name, name)); pc.remove_item(item_vnum, 1); say_title(string.format("%s:[ENTER]", item_name(item_vnum))) say("The name has been successfully changed,") say("You will see the changes soon.[ENTER]") end -- if end -- when end -- state end -- quest
  21. Hello quys, just a short question. Is it possible to set night only in some maps ?
  22. I have a problem with a quest when i use "["this symbol in pc.change_name function doesn't work like doesnt read and when i use "(" return : elseif (ret == 2) then say("Invalid name, please only use letters and numbers.[ENTER]") What i need to to to make this quest put tag [VIP] in front of my name. Here is line: local new_name = "[VIP]"..pc.get_name(); When i change "[VIP]" With simple "VIP" work but i want "[" this symbol and doesn't work. quest vip begin state start begin when 40003.use begin local item_vnum = item.get_vnum(); say_title(string.format("%s:[ENTER]", item_name(item_vnum))) if (string.find(pc.get_name(), "[VIP]") ~= nil) then return say("You already have a VIP name.[ENTER]"); end -- if local new_name = "[VIP]"..pc.get_name(); say("By continuing, you will be able to change") say("your character's name into a VIP name.[ENTER]") say_reward(string.format("Your new name will be: %s.[ENTER]", new_name)) say("Are you sure you want to continue?[ENTER]") if (select("Yes, I'm sure", "No, I'm not") == 1) then say_title(string.format("%s:[ENTER]", item_name(item_vnum))) local ret = pc.change_name(new_name); if (ret == 0) then say("An error occurred. (ret == 0).[ENTER]") elseif (ret == 1) then say("An error occurred. (ret == 1).[ENTER]") elseif (ret == 2) then say("Invalid name, please only use letters and numbers.[ENTER]") elseif (ret == 3) then say("That name is already being used") say("by another player.[ENTER]") elseif (ret == 4) then pc.remove_item(item_vnum, 1); say("The name has been successfully changed,") say("re-log to see the changes.[ENTER]") else say("The change_name function is blocked for") say("this locale.[ENTER]") end -- if/elseif/else end -- if end -- when end -- state end -- quest
  23. Have a look into "EterPack.cpp" inside your EterPack project of your clientsource. strncpy(m_indexFileName, dbname, MAX_PATH); strcat(m_indexFileName, ".eix"); m_stDataFileName = dbname; m_stDataFileName += ".epk"; m_bReadOnly = bReadOnly; This should be in method "bool CEterPack::Create".
  24. Does anyone have these customs?
  25. pay 5 euro for system
  26. So, the pack files are eix/epk just the path file is " file ", How do i check if the binary wants that(where should it be specified ) , im sory i dont rly get it
  27. If the lzo key isn't correct it should tell you.. Please check if your new binary wants .eix/.epk files or if there should be another extension. On the other hand check which extension your pack files got.
  28. 0223 17:16:32466 :: pack/patch_m2happ_ui: Pack file does not exist 0223 17:16:00014 :: RunMain Error But the file does exist there, with the old starter it is working just fine, im guessin the lzo key isnt the same but i didnt work for along long time with metin2 things, and im kinda rusty with it pls help a brotha in need :))
  1. Load more activity