Jump to content

Spider dungeon 3 - boss room


Recommended Posts

Hello, I'm trying to make a quest for boss room in spider dungeon 3 but I still have some problems so I'm writing for a advice.I want to make a quest which  teleport a party into the boss room (teleport started  a leader of party and only if the leader have the key.Teleport stone will be at the end of spider dungeon 2 ).The group kill the boss ( id 2092 ) and will be teleported for 5min to town.Could you help me please?I'm including my quest which isn't OK ( not teleport party to town, notice isn't ok,etc.).Sorry for my english.

quest sd3_bruthoehle begin
	state start begin
		when 30130.chat."In die Bruthöhle" with pc.get_level() > 49 begin
			say_title(string.format("%s:", mob_name(string.format("%d", npc.get_race()))))
			if game.get_event_flag("sd3_frei") == 1 then
				say("Die Bruthöhle ist zur Zeit besetzt.")
				return
			end
			if not party.is_party() then
				say("Du kannst nur in einer Gruppe die")
				say("Bruthöhle betreten.")
				return
			end
			if not party.is_leader() then
				say("Nur der Gruppenleiter kann das")
				say("Portal zur Bruthöhle öffnen.")
				return
			end
			say("Möchtet ihr die Bruthöhle betreten?")
			if select("Ja","Nein") == 2 then return end
			d.new_jump_party(191,x,y)
			game.set_event_flag("sd3_frei",1)
			server_timer("exit",60*20)
		end
		when login with pc.get_map_index() == 191 and party.is_party() begin -- Index anpassen
			d.regen_file("share/locale/germany/map/metin2_map_spiderdungeon_03/regen.txt")
			d.notice("Ihr habt 20 Minuten Zeit, um den Spinnenbaron zu töten.")
		end
		when exit.server_timer begin
			if (d.select(get_server_timer_arg())>0) then
				d.exit_all()
				server_timer("sd3_set_free",60*60)
			end
		end
		when 2092.kill with party.is_party() and pc.get_level() > 49 begin
			local count = tonumber(party.get_near_count()-1)
			notice_all(string.format("%s und %d weitere Mitglieder haben den Spinnenbaron besiegt!", pc.get_name(), count))
			server_timer("sd3_set_free", 60*60)
			server_timer("exit",60*5)
			d.notice("In 5 Minuten werdet ihr hinausteleportiert")
		end
		when sd3_set_free.server_timer begin
			game.set_event_flag("sd3_frei",0)
		end
	end
end
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 0

      Metin2 effect script files (MSE and MSA file) how can convert

    2. 10

      Multi Language System

    3. 0

      We are looking for a C++ and Python programmer

    4. 0

      [Quest Scheduler Request] Is there a way to make a quest run independet of player events? Lets say start quest automatically at server startup?

    5. 111

      Ulthar SF V2 (TMP4 Base)

    6. 0

      Quest function when 102.kill definition whereabouts help

    7. 5

      [M2 FILTER] Customized Client Filter

  • Recently Browsing

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