A problem with quest dungeon

05/29/2014 22:52 approxofc#1
Code:
	when login with pc.in_dungeon() and pc.get_map_index() >= 236*10000 and pc.get_map_index() <= 237*10000 begin
			if d.getf("regened") == 0 then
				d.notice("You have to kill monsters, before seeing a boss!")
				d.regen_file("data/dungeon/asalijskieLochy/nefrytowa.txt")
				d.set_warp_at_eliminate(2, pc.get_map_index(),  5120 + 171,  1536 + 242, "data/dungeon/asalijskieLochy/nefrytowaboss.txt")
			end
			d.setf("regened", 1)
		end
		
				
		when kill with npc.get_race() == 3491 and pc.in_dungeon() begin
			d.notice("Time for smashing!")
			d.set_warp_at_eliminate(2, pc.get_map_index(),  5120 + 421,  1536 + 244, "data/dungeon/asalijskieLochy/nefrytowa2.txt")
		end
the problem is, when I kill 3491 npc even with 3491.kill rather than npc.get_race() it don't notice anything. Can you help me, please?
05/29/2014 22:56 .Colossus.#2
you must start a dungeon with
d.join(*index*)
or
d.new_jump_all(*index*, *x*, *y*)
05/29/2014 22:57 approxofc#3
Code:
say()
					say("You've got all I need!")
					say("Good luck!")
					say()
					pc.change_money(-10000000)
					pc.setqf("asalijskieLochy", 1)
					d.join(236)
					d.setf("regened", 0)
i gave u just a piece of code before, here is another.