Jump to content
×
×
  • Create New...
  • 0

flame_dungeon problem


brianman

Question

Hello! I have a little problem. I'm testing the 40250 flame_dungeon, but at the quest: " Kill all mob. " It isn't work. I killed all the mobs, but it isn't teleport me to the next level, against the 0 value of the counter. I'm looking forward receiving your answer. I hope you can help me, thank you very much.

   if d.getf("level") == 1 then
                    notice_multiline("Feladat: Öljétek meg az összes szörnyet.",d.notice)
                    d.kill_unique("door1")
                    d.kill_unique("idoor1")
                    d.setf("level",11)
                    d.regen_file ("data/dungeon/flame_dungeon/".."fd_a.txt")
                    server_timer ("killed_A_1", 12, d.get_map_index())
                elseif d.getf("level") == 11 then
                    say("Még nem győztétek le az összes szörnyet!")
                    say_title("Maradék szörnyek száma:".. d.count_monster())
-----------------------------------------------------------------------------------------
      elseif d.getf("level") == 3 then
                    say("Feladat: öljétek meg az összes szörnyet!")
                    notice_multiline("Feladat: öljétek meg az összes szörnyet.",d.notice)
                    d.kill_unique("door3")
                    d.kill_unique("idoor3")
                    d.setf("level",13)
                    d.regen_file ("data/dungeon/flame_dungeon/".."fd_c.txt")
                    server_timer ("killed_A_1", 12, d.get_map_index())
                elseif d.getf("level") == 13 then
                    say("Még nem öltétek meg az összeset.")
                    say_title("Maradék szörnyek száma:".. d.count_monster())
-----------------------------------------------------------------------------------------
 when killed_A_1.server_timer begin -- ??? ???1 (level1,level3)
            if d.select(get_server_timer_arg()) then
                if d.count_monster() == 0 then -- 1?? ??? ???
                    if d.getf("level") == 11 then
                        notice_multiline("Minden démon vereséget szenvedett.",d.notice)
                        notice_multiline("Menjetek vissza és vegyétek fel a következő küldetést.",d.notice)
                    else
						notice_multiline("Minden démon vereséget szenvedett.",d.notice)
						notice_multiline("Menjetek vissza és vegyétek fel a következő küldetést.",d.notice)
                    end
                    d.setf("level",0)
                else
                    server_timer ("killed_A_2", 6, get_server_timer_arg())
                end
            end
        end
        when killed_A_2.server_timer begin -- ??? ???2 (1? 2 ?????? ???)
            if d.select(get_server_timer_arg()) then
                if d.count_monster() == 0 then -- 1?? ??? ???
                    if d.getf("level") == 11 then
						notice_multiline("Minden démon vereséget szenvedett.",d.notice)
						notice_multiline("Menjetek vissza és vegyétek fel a következő küldetést.",d.notice)
                    else
						notice_multiline("Minden démon vereséget szenvedett.",d.notice)
						notice_multiline("Menjetek vissza és vegyétek fel a következő küldetést.",d.notice)
                    end
                    d.setf("level",0)
                else
                    server_timer ("killed_A_1", 6, get_server_timer_arg())
                end
            end
        end
Link to comment
Share on other sites

  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

4 answers to this question

Recommended Posts

  • 0

Delete this line from the quest

 

 

        when 20394.click with pc.get_level() >= 90 begin
            pc.give_item2(71175, 1)
            set_state(run)
        end
    end

state run begin
to look like this

 

quest flame_dungeon begin
state start begin
and then recompile the quest and try :D
Link to comment
Share on other sites

  • 0

thank you!

 

but more not good :(

quest flame_dungeon begin
    state start begin
    function setting()
        ["bossroom_entry_pos"] = {8109,6867},
        ["boss_pos"] = {686,637},
        ["doors_pos"] = {
            {320,394},
            {293,359},
            {333,321},
            {378,320},
            {400,355},
            {394,401}
        },
        ["idoors_pos"] = {
            {268,447},
            {234,359},
            {300,264},
            {454,217},
            {470,355},
            {467,469}
        },
        ["doors_dir"] = {135,90,210,152,90,223},
        ["idoors_dir"] = {135,90,210,135,90,239},
        ["dungeon_entry_pos"] = {7762, 6739},-- ??? ?? ???? ?
        ["DUNGEON_MAN_bpos"] = {690,722},
        ["DUNGEON_MAN_pos"] = {354,362},
        ["LEVEL2_STONE_pos"] = {195,352},
        ["LEVEL4_TARGET_pos"] = {470,175},
        ["LEVEL5_STONE_pos"] = {
                {486, 345},
                {511, 336},
                {525, 349},
                {521, 365},
                {503, 372},
                {486, 365},
                {500, 354}
        },
        ["LEVEL6_TARGET_pos"] = {511,480},
        ["outside_entry_pos"] = {6142,7068}, --??????? ??? ?
        ["YAK_pos"] = {376, 397} -- ?? ??
    end
    function is_flamed(idx) -- ???? ??? ??
        return idx >= 351 * 10000 and idx < (351 + 1) *10000
    end

problem(VPS):

LocaleService locale/hungary/locale_string.txt
locale/hungary/quest/object/state/flame_dungeon:1: unexpected symbol near `['

Link to comment
Share on other sites

  • 0

Try this


 

quest flame_dungeon begin
    state start begin    

    
    function setting()
        return
        {
        ["bossroom_entry_pos"] = {8109,6867},
        ["boss_pos"] = {686,637},
        ["doors_pos"] = {
            {320,394},
            {293,359},
            {333,321},
            {378,320},
            {400,355},
            {394,401}
        },
        ["idoors_pos"] = {
            {268,447},
            {234,359},
            {300,264},
            {454,217},
            {470,355},
            {467,469}
        },
        ["doors_dir"] = {135,90,210,152,90,223},
        ["idoors_dir"] = {135,90,210,135,90,239},
        ["dungeon_entry_pos"] = {7762, 6739},
        ["DUNGEON_MAN_bpos"] = {690,722},
        ["DUNGEON_MAN_pos"] = {354,362},
        ["LEVEL2_STONE_pos"] = {195,352},
        ["LEVEL4_TARGET_pos"] = {470,175},
        ["LEVEL5_STONE_pos"] = {
                {486, 345},
                {511, 336},
                {525, 349},
                {521, 365},
                {503, 372},
                {486, 365},
                {500, 354}
        },
        ["LEVEL6_TARGET_pos"] = {511,480},
        ["outside_entry_pos"] = {6142,7068},
        ["YAK_pos"] = {376, 397}
        
        }
    end
    
    function is_flamed(idx)
        return idx >= 351 * 10000 and idx < (351 + 1) *10000
    end
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Activity

    1. 6
    2. 9

      Help in implementing a switch bot

    3. 0

      Special Inventory System Can't Sell To Npc's

    4. 0

      ROV2.GLOBAL | International | Server start 14.05.2022

    5. 75

      Services - System Ard [C ++ / Python / Lua]

    6. 76

      Chatting Window Renewal (Mini Version)

    7. 2

      ItemShop GM ZONE TAB

    8. 9

      Help in implementing a switch bot

  • Recently Browsing

    • No registered users viewing this page.

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.