Jump to content
  • 0
Sign in to follow this  
Padrio

Dungeon Quest problem

Question

Hey Guys,
 
actually im writing a quest for my dungeon and i have some problems..
 
by trying to teleport using "d.new_jump()" to teleport a player on the map.
 
My Quest:

quest flammen_dungeon begin
state start begin
 
when 20170.chat."Flammen Dungeon betreten" with pc.get_level() >= 75 begin
game.set_event_flag("dungeon_bussy", 0) -- DONT FORGET TO REMOVE THIS!!
 
if pc.count_item(299) == 0 then -- Dont forget to change the vnum 
say_title("Flammen Dungeon")
say("Du brauchst ein Dungeon-Ticket")
say("um das Dungeon betreten zu können")
say_item_vnum(299)
return
end
 
if game.get_event_flag("dungeon_bussy") == 1 then
chat("Aktuell befindet sich ein Spieler im Dungeon, versuch es später noch einmal.")
return
end
 
game.set_event_flag("dungeon_bussy", 1)
pc.remove_item(299) -- Dont forget to change this line!
-- pc.warp(371800, 0)
d.new_jump(60, 0, 0)
end
 
when 20170.click with pc.get_level() < 75 begin
say_title("Flammen Dungeon")
say("Tut mir leid, aber du musst")
say("mindestens level 75 sein")
say("um dieses Dungeon betreten")
say("zu können.")
end
 
when logout with pc.get_map_index() == 401 begin
pc.warp(481900, 0)
game.set_event_flag("dungeon_bussy", 0)
end
 
when login with pc.get_map_index() == 401 begin
notice_in_map("Du hast nun 30 Minuten Zeit alle Monster zu töten.")
d.regen_file("data/dungeon/element_dungeons/fire_regen.txt")
pc.aggregate_monster()
timer('kill_wave1', 30*60)
end
 
when kill_wave1.timer begin
notice_in_map("Deine Zeit ist nun abgelaufen!")
timer("port_back", 6)
end
 
when port_back.timer begin
game.set_event_flag("dungeon_bussy", 0)
pc.warp(481900, 0)
end
 
end
end

I´ve allready tried the coordinates from the town.txt and the settings.txt.

 

My error: http://puu.sh/6NhME.png

 

I hope you can understand me and my problem :D

 

Greets,

Padrio

 

 

Share this post


Link to post

8 answers to this question

Recommended Posts

  • 0

The dungeon map need to be in the same core of the acces map, if you use a 2089 game I think you need to fix the function

http://www.inforge.net/community/metin2-howto-addon-server-privati/257762-fix-d-new_jump-funzionante-per-dungeon-singoli.html

 

Kind regards.

 

Edit: I just saw your image

Put X and Y cord of your map :|, to know it can you go to the map and do this command

pc.warp(your_name)
And now you can saw the cords.

Share this post


Link to post
  • 0

To start a dungeon you should use d.join(mapindex) or a d.new_jump_all(mapindex, x, y)(in this case, this function would teleport all players in that core).

Take also a look to what Pepineitor said.

Share this post


Link to post
  • 0

Thank you guys, im now using "d.join" and it works now.

Share this post


Link to post
  • 0

d.new_jump_party() works on game rev 34083?

Sorry for mining :P

Share this post


Link to post
  • 0

By the way, the d.new_jump() function is a lil bit messed up in the game 2089.

You try to join the mapindex 0, because the parameters of the function in the game are in the wrong order.

Here you can find a fix:

http://www.elitepvpers.com/forum/metin2-pserver-guides-strategies/1823057-fix-d-new_jump-single-player-dungeons.html

 

this will creates a bug , the dungeon wouldnt have an unique mapindex, so if a player starts the dungeon and a other player also starts the dungeon, he will join to the other.

 

d.new_jump_party works on 34k, yes

Share this post


Link to post

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
Sign in to follow this  
  • Recently Browsing   0 members

    No registered users viewing this page.

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