Jump to content
  • 0

Spider dungeon 3 - boss room


hrabosh

Question

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
  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

Popular Days

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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


  • Read our Rules
  • Activity

    1. 8

      WaveSystem

    2. 0

      error: unable to find library

    3. 19

      Race Height of Actors

    4. 2

      How to add Chromium Embedded Browser ?

    5. 2

      How to add Chromium Embedded Browser ?

    6. 2

      How to add Chromium Embedded Browser ?

    7. 1

      Fish stack catch

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