Jump to content

Syreldar

Premium
  • Posts

    1298
  • Joined

  • Last visited

  • Days Won

    38
  • Feedback

    100%

Posts posted by Syreldar

  1. The only 2 other errors i see in the quest are the usage of game.get_event_flags to assign a personal flag to a player and deleting a clear_server_timer using get_server_timer_arg() outside of server_timer scope, but the error you're getting depends solely on you, the set_warp_location snippet is fine.

  2. 2 hours ago, xKnox said:

    I see, didn't know anything about this, sorry

    Yes, now it's working, thank you!

    But there's another issue, after I killed the Razador I'm being teleported to the same map: https://metin2.download/picture/A276Bolx8YT5EvFYP8Y6Vs3654b5nuDC/.png and it's something like this .

    235 metin2_map_n_flame_dungeon_01
    And that's the index, I think it doesn't change it after I'm being teleported, how could I change this?

    The lib is there, it's the file that contains the functions like "BlazingPurgatory.ReturnData()" provide it if possible.

     

  3. 6 hours ago, xKnox said:

    Hello there, I'm using this quest for the Razador Purgatory: 

    
    quest BlazingPurgatory_Zone begin
        state start begin
            when login with BlazingPurgatory.isInDungeon() begin
                local data = BlazingPurgatory.ReturnData();
                local outside_coords_l = data["outside_Pos"];
                local FirstBossCoords = data["boss_Posit"];
                
                d.set_warp_location(data["outside_index"], outside_coords_l["x"], outside_coords_l["y"]);
                if (party.is_party() and party.is_leader() or not party.is_party()) then
                    d.spawn_mob(data["PurgatoryKing"], FirstBossCoords["x"], FirstBossCoords["y"]);
                    d.regen_file(get_locale_base_path().."/quest/dungeon/flame_dungeon/blazingpurgatory_monster_7.txt");
                    server_timer("blazingpurgatory_time_out", data["time_until_you_got_kicked"], d.get_map_index());
                    
                    d.notice(string.format("From now on you will have %s.", get_time_format(data["time_until_you_got_kicked"])))
                    d.notice("to complete the dungeon.")
                end
            end
            
            when logout with BlazingPurgatory.isInDungeon() begin
                local data = BlazingPurgatory.ReturnData();
                
                if (data["time_after_you_complete_the_dungeon"] > 0) then
                    local party_pids = party_get_member_pids();
                    
                    BlazingPurgatory.setWatingTime(party_pids);
                end
            end
            
            when kill with BlazingPurgatory.isInDungeon() begin
                local data = BlazingPurgatory.ReturnData();
                
                if npc.get_race() == data["PurgatoryKing"] then
                    clear_server_timer("blazingpurgatory_time_out", get_server_timer_arg());
                    
                    server_timer("blazingpurgatory_time_out", 60, d.get_map_index());
                    BlazingPurgatory.ClearDungeon();
                    
                    d.notice(" Congralutions, Razador was defeated.")
                    d.notice(" You will be teleported in 60 seconds.")
                end
            end
            
            when blazingpurgatory_time_out.server_timer begin
                if (d.select(get_server_timer_arg())) then
                    d.notice("Time expired, you will be teleported outside.")
                    d.exit_all();
                end
            end
            
            when 20394.chat."Enter the BlazingPurgatory" with not BlazingPurgatory.isInDungeon() begin
                say_title(string.format("%s:[ENTER]", mob_name(npc.get_race())))
                say("Would you like to enter and destroy the Razador?")
                if (select("Yes", "No") == 1) then
                    if BlazingPurgatory.CheckInfo() then
                        BlazingPurgatory.EnterInDungeon();
                    end
                end
            end
        end
    end

    The problem is that the timer is not working at all, I can re-enter the dungeon how many times I want, could you please tell me what's wrong or anything that can help me?

    Your problem is unclear to me, could you please describe it better and also provide the Library file I'm sure comes with the quest? Thanks.

  4. 3 hours ago, WeedHex said:

    ; in LUA ahaha

    Let me clear this up for you: The quest clearly comes from Braxy, and Braxy copied a lot of my old code.

     

    ";" is one of the little things I use in Lua, like a signature, that helps me determine wether or not that code snippet is mine, cause I'm the only one who does it, and changes virtually nothing, so there's nothing to laugh about.

     

    Also could you please not comment unless you wanna try and be helpful? 

    • Lmao 1
  5. 9 hours ago, weryoliveira said:

    Now i'm have one problem in my server and idk why this is happening because, i'm not see this before in probably 4 years, i'm using martysama files and my tower when i stay in 5th floor, and need drop keys, the mobs didn't respaw after kill, if i drop the key and drag in npc look ok but mobs didn't come more, someone can help my? i didn't have any syserr in core and nothing using test_server, just didn't respawn after death, and my regen is this

    https://pastebin.com/x0tUG69P

    Post the quest.

  6. 34 minutes ago, Cripplez said:

     


    I will explain better, it's impossible what is happening to me..
    this is for example the regen.txt of the bayblack map and everything is okay, it is spawning the group 3023
    fgtaEyu.png

    If i try to use the same group vnum in the regen.txt of the new map, like this:

    mbg4t9U.png

     

    When i start the server i will have this error in the syserr:
    SYSERR: Jul 14 19:16:26 :: SpawnMob: SpawnMob: no mob data for vnum 3023

     

    But in the baybalck map everything is ok, in the other map there are no mob

     

    If i try to use "g" instead of "r" for example with the group mob vnum 3023 i will receive the same syserr error and if i try to use "g" and the mob vnum 101 (the same group for wolves of village 1) instead of the group of mobs it will spawn only the mob 101, not the group

    the stone.txt and boss.txt is working okay for metin stones and bosses, just regen.txt not

    You're not giving random coordinate spaces to them, you cannot use 0 and 0 as randx and randy, min. 1 for both.

     

    aipzcL3.png

  7. local _, player_search_check = mysql.direct_query(string.format("SELECT name FROM player.player WHERE name = '%s';", player_search));
    if (player_search_check[1] ~= nil) then
    	chat(string.format("Hello %s.", player_search_check[1].name))
    	-- or..
    	chat(string.format("Hello %s.", player_search)) -- Since the name exist and it will be the same.
    else
    	-- Player doesn't exist in the database.
    end -- if/else

     

  8. 21 minutes ago, Alerin said:

    Thank you for opinion. You can do it nicely in an array, but I made editing the version for the less experienced easier. I also try to avoid unnecessary loops. Lua is the fastest scripting language but implementation in metin is scary.

    Don't be scared using loops by any means, they work fine and fast.

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