Jump to content

Search the Community

Showing results for tags 'lua'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Metin2 Dev
    • Announcements
    • Pillory
    • Praises / Complaints
    • Feedback / Suggestions
  • Community
    • Member Representations
    • Off Topic
    • Games Talk
    • Music / Videos / Art
  • Metin2
    • General
    • Private Servers
  • Help Area
    • Questions & Answers
  • Releases
    • Guides & HowTo
    • Binaries & Clients / ServerFiles
    • Programming & Scripts / Systems
    • Tools
    • Maps
    • Quests
    • 3D Models
    • 2D Graphics
    • Operating Systems
  • Temporary
    • Temporary


There are no results to display.

There are no results to display.


There are no results to display.

There are no results to display.

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start










Music / Audio
















  1. ByLost

    time regen.txt

    Version of Files : 40k Hello Devs I'm doing an event where I need to invoke the npc. Example: regen_in_map(41, "data/events/fimdeano/npc3.txt") regen_in_map(21, "data/events/fimdeano/npc2.txt") regen_in_map(1, "data/events/fimdeano/npc1.txt") Invokes npc normally The problem is that the npc disappears after a few seconds. My regen npc1.txt m 682 596 0 0 0 6 5184000s 100 1 20031 Thanks
  2. Automatic event system, start the event and set the end time. (You will never forget to finish the event again.) https://github.com/Alerinos/M2-Quest-Automatic-event Do you need a quest, system or www? Write to me, I can create everything. (Full STACK, Web (PHP, JS, SQL, HTML, CSS), Server (C ++, Python, Lua)) Discord Alerin#5559
  3. Mission on marble polymorphism. Just approach the NPC, choose a mob and kill the required number of pieces. Marble will automatically go to EQ Github: https://github.com/Alerinos/M2-Quest-Poly [1] = {101, 100}, [2] = {502, 100}, [3] = {2001, 100}, [4] = {636, 150} [id mission, 1,2,3 etc...] = {mob_id, count_kill}, Do you need a quest? Write to me, I can create everything. (Full STACK, Web (PHP, JS, SQL, HTML, CSS), Server (C ++, Python, Lua)) Discord Alerin#5559
  4. Hi, my first publication in this forum. Quest with daily limit and level interval for drop cor draconis in alchemi. I think it will be useful to someone. I also write commissioned quests https://github.com/Alerinos/M2-Quest-Alchemy Quest is compatible with Marty files.
  5. Hi there Devs, I would like to share my "little" system. If you aren't interested in the introduction/preview etc. and you just want to download it and put in to your server, just scroll down until the "[How-To] Set up" subtitle. The story Firstly let me tell this system's story. I've got an idea one year before, that it would be good if the players would be able to put their items into a "global" system where they could see the other player's items, and they could buy it for DC or gold (that time I worked with the latest vanilla core (not with the source)). Then in the followin
  6. hello, its possible to give player a exp percent not exp in value? like pc.give_exp(50%)
  7. Hey! I have added 1 new function in c++ to put an object into mysql. But game.core is created. Someone can help me? I tested the function, I tried the feature manually. int pc_give_au_item(lua_State* L) { if (!lua_isnumber(L, 1) || !lua_isnumber(L, 2)) { sys_err("QUEST give au_item call error : wrong argument"); lua_pushnumber(L, 0); return 1; } LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr(); //int icount = (int)lua_tonumber(L, 2); DWORD dwVnum = (int)lua_tonumber(L, 1);
  8. This is a list of 680 functions you can use in your quests. And you can create your own if you have knowledge of C++ and the sourcecode. addimage addmapsignal add_bgm_info add_goto_info add_ox_quiz affecr.remove_all_collect affect.add affect.add_collect affect.add_collect_point affect.add_hair affect.remove affect.remove_bad affect.remove_collect affect.remove_good affect.remove_hair arena.add_map arena.add_observer arena.get_duel_list arena.is_in_arena arena.start_duel ba.start block_chat bool_to_str building.get_land_id building.get_land_info building.has_land building.recon
  9. I've noticed this one since the beginning but for some reason I've been waiting until now to ask. Let's say I'm writing a dialog with NPC X and when I click on it I want it to say: Hi, how are you today; So I'm writing the classic when XXXXXX.chat."Hi, how are you today;" and I'm compiling but when I click in the game the ; is missing! So it just says: Hi, how are you today I haven't yet find what filters the character so I'm asking you. I've looked in questlua.cpp and questlua_global.cpp but didn't find anything. If anyone knows I'm also trying to find a
  10. I was never too familliar with LUA even if it seems easy. So I wanted to ask the experts a few questions. I have this function: game.drop_item_with_ownership(item_vnum) In the system the dropped item stays on the ground for 3 minuets, while character ownership ends after the first minute. Therefore the item stays on the ground without an owner for 2 minutes and then it dissapears. How do I make the ownership for this item only last forever (until it dissapears)? Another question I have is about the chance for the item to drop. Let's say I need the item to have 20% chance of dr
  11. The most strange thing is happening. The function npc.get_level returns NOTHING!!! It exists in the source, it exists in quest_functions file, but when I call it, I get nothing. I used it as: when kill begin ... say(npc.get_level) ... end and in source I tried the default: int npc_get_level(lua_State* L) { lua_pushnumber(L, CQuestManager::instance().GetCurrentNPCCharacterPtr()->GetLevel()); return 1; } and Ken way: int npc_get_level(lua_State * L) { LPCHARACTER npc = CQuestManager::instance().GetCurrentNPCCharacterPtr(); lua_pushnumb
  12. In 17.5 GF update with Talismans GF also introduce new type of bonuses - strong against weapons So here's it! I'm not 100% sure about bonuses numbers cuz in my revision i have also other new bonuses. Server Side open service.h and add: #define ENABLE_BONUS_STRONG_AGAINST_WEAPON open length.h, find APPLY_ANTI_PENETRATE_PCT, (or last of urs bonuses) add bellow: #ifdef ENABLE_BONUS_STRONG_AGAINST_WEAPON APPLY_ATTBONUS_SWORD, // 92 APPLY_ATTBONUS_TWOHANDED, // 93 APPLY_ATTBONUS_DAGGER, // 94 APPLY_ATTBONUS_BELL, // 95 APPLY_ATTBONUS_FAN, // 9
  13. Hi there devs! I am trying to copy the teleporter quest from the official servers. My only issue is, the yang required to teleport based on player's level. Any ideas? Best regards, Cara
  14. Hello. I need help. I need to open the quest window after a certain time in the game. How can i do this? For example, I stood for 5 minutes in the game, and I have a quest window with the words "Hello"
  15. hey, i need a new Function to load from account.account field: some_text can someone help? and use on quest like local get_text = pc.get_some_text if get_text = "koxmen" then else end
  16. Hi all! I followed the guide at that link about the connection between client and quest: https://metin2dev.org/board/index.php?/topic/1698-howtooldquest-client-communicationfor-any-version/ But when I press the button in game, nothing happens in the quest! If I do it only on a graphical point of view, the button reacts to the click, but it doesn't get the anti exp active. This is my code added for the quest: game.py: def OnClickBlockExp(self): event.QuestButtonClick(int(constInfo.BLOCK_EXP)) -------------------------------------------------------------
  17. Hi all! I saw a post on the forum about "[C++]Reload map regens ingame" and I want to ask you a question: can i do that in lua too? I have to reload the regen ingame when I start, for example, the Halloween Event and so to spawn Jack Pumpkin. If I use regen_in_map, when I restart the machine, that NPC will disappears, so I need to have your /reload_regen in lua funcion after a changing on the regen of the village from WinSCP. Thanks in advance!
  18. Hey! Anyone can you send me, metin2 Deutsch quests, with normale say? I need: Thanks!!
  19. Hello, I have this problem in this quest. SYSERR: Oct 21 16:30:06 :: HandleEvent: QUEST There's suspended quest state, can't run new quest state (quest: main_quest_lv2_2 pc: Ario) Can somebody help me? quest main_quest_lv2_2 begin state start begin end state run begin when login or levelup or enter with pc.get_level() >= 2 begin set_state ( gotoinfomation ) end end state gotoinfomation begin when letter begin if (pc.get_empire()==2) then local v=find_npc_by_vnum(20355)
  20. Hi, metin2devs and metin2users.Many times i've seen a server use a quest like this one, to notice the kill of the bosses or to trigger special drops/events: That is absolutely obnoxious in my opinion, totally obnoxious.I'm here today to show you the simplest, cleanest and shortest way to deal with something like this: A quest which communicates with a simple library in order to get global notice and eventual drop from a boss/monster or metin kill, the quest is coded to work with bosses, but it's fully ampliable and 100% customizable to your likings.I release this in hope to see less que
  21. Good Evening, 0330 18:32:02716 :: Traceback (most recent call last): 0330 18:32:02716 :: File "uiInventory.py", line 557, in OnUpdate 0330 18:32:02716 :: AttributeError 0330 18:32:02716 :: : 0330 18:32:02716 :: 'int' object has no attribute 'DisableSlotCoverImage' 0330 18:32:02716 :: Code: def OnUpdate(self): # self.RefreshBagSlotWindow() for i in xrange(player.INVENTORY_PAGE_SIZE): GlobalSlot = self.__InventoryLocalSlotPosToGlobalSlotPos(i) if player.GetItemLook(GlobalSlot): self.wndItem.EnableSlotCoverImage(i)
  22. Hello guys, i have problem with server_timer or server_loop_timer, It do not make no signal, it dont work and game going crash after 1 second. QUEST: quest server_timer begin state start begin when 9003.chat."srv_timer" begin server_timer("shit", 1, pc.get_map_index()) --server_timer("shit", 1) say("You have now server timer apply.") end when shit.server_timer begin chat("ok") end end end But after 1 second it dont do nothing, when i use only server_timer("shit", 1) too not work, but when i chan
  23. Hello, I have a question. How can i add simple "new" bonus like "strong vs metinstones/boss-monster" It's important for me. =) Thank you.
  24. Hello guys. I have a problem with my quest text. When i open either quest and i click to okay, the quest text is doesnt dissapear.... I attach a pic. Thanks in advance.
  25. Hello everyone I need know if exist the function with attack mob count the hits.
  • 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.