Hallo
Ich möchte gern aus der Spinnen quest die Wartezeit und das Items zum eintretten was benötigt wird entfernt haben. jedoch hab ich das item und die zeit zeile schon gelöscht denn spinnt aber die quest könnte mir jemand das bitte umschreiben?
Code
- quest spider_dungeon_3floor_boss begin
- state start begin
- function get_settings()
- local settings = {}
- settings.cooldown_time = 3600
- settings.boss = {}
- settings.boss.low = 2094
- settings.boss.high = 2092
- settings.boss.x = 369
- settings.boss.y = 551
- settings.access_item = {}
- settings.access_item.vnum = 30324
- settings.access_item.count = 1
- settings.spawn = {}
- settings.spawn.x = 181
- settings.spawn.y = 173
- settings.warp_in = {}
- settings.warp_in.x = 88100
- settings.warp_in.y = 614800
- settings.warp_in.map = 217
- settings.warp_out = {}
- settings.warp_out.first = {}
- settings.warp_out.last = {}
- settings.warp_out.x = 69100
- settings.warp_out.y = 614800
- settings.warp_out.map = 217
- return settings
- end
- function give_access_item()
- local settings = spider_dungeon_3floor_boss.get_settings()
- say(gameforge.spider_dungeon_3floor_boss._370_say)
- say(settings.access_item.count.."x: ")
- say_item_vnum(settings.access_item.vnum)
- local give_item = select(locale.confirm,locale.cancel)
- if give_item == 1 then
- pc.remove_item(settings.access_item.vnum, settings.access_item.count)
- return true
- else
- return false
- end
- end
- when 30130.chat."Die Bruthöhle" with pc.in_dungeon() == false begin
- local settings = spider_dungeon_3floor_boss.get_settings()
- local time_remaining = (get_global_time() - pc.getqf("last_exit_time"))
- if pc.count_item(settings.access_item.vnum) >= settings.access_item.count then
- if time_remaining >= settings.cooldown_time then
- say(gameforge.spider_dungeon_3floor_boss._370_say)
- local abort = select(locale.confirm,locale.cancel)
- if abort == 2 then
- return
- end
- if party.is_party() == true and party.is_leader() == false then
- say(gameforge.spider_dungeon_3floor_boss._390_say)
- return
- end
- if not spider_dungeon_3floor_boss.give_access_item() then
- return
- end
- if time_remaining < settings.cooldown_time then
- pc.give_item2(settings.access_item.vnum, settings.access_item.count)
- say(gameforge.spider_dungeon_3floor_boss._310_say)
- return
- end
- if party.is_party() == true then
- d.new_jump_party(settings.warp_in.map, settings.warp_in.x, settings.warp_in.y)
- else
- d.new_jump(settings.warp_in.map, settings.warp_in.x, settings.warp_in.y)
- end
- d.spawn_mob(settings.boss.low, settings.boss.x, settings.boss.y)
- d.set_warp_location(settings.warp_out.map, settings.warp_out.x, settings.warp_out.y)
- server_timer("spider_dungeon_3floor_boss_timer", settings.cooldown_time, d.get_map_index())
- else
- say(gameforge.spider_dungeon_3floor_boss._410_say)
- say("Du kannst dem Drachenraum erst nach einer Stunde wieder beitreten.")
- return
- end
- else
- say(gameforge.spider_dungeon_3floor_boss._380_say)
- return
- end
- end
- when 2094.kill with pc.in_dungeon() == true begin
- d.spawn_mob(2095,400,566)
- d.spawn_mob(2095,400,594)
- d.spawn_mob(2095,362,600)
- d.spawn_mob(2095,337,599)
- d.spawn_mob(2095,335,581)
- d.spawn_mob(2095,344,562)
- d.spawn_mob(2095,364,588)
- d.spawn_mob(2095,379,562)
- d.spawn_mob(2095,368,525)
- local spider_boss = d.spawn_mob(2092,367,588)
- d.setqf2("spider_dungeon_3floor_boss", "spider_boss", spider_boss)
- d.setqf2("spider_dungeon_3floor_boss", "remain_egg", 9)
- end
- when 2095.kill with pc.in_dungeon() == true begin
- local spider_boss = pc.getqf("spider_boss")
- local remain_egg = pc.getqf("remain_egg")
- d.notice("Vorsicht: Die Spinnenbaroness wird wütend! Ihr Angriff wird stärker, jedoch wird ihre Verteidigung dadurch geschwächt.")
- if remain_egg > 0 then
- remain_egg = remain_egg - 1
- d.setqf2("spider_dungeon_3floor_boss", "remain_egg", remain_egg)
- end
- npc.set_vid_attack_mul(spider_boss, 10/(remain_egg + 1))
- npc.set_vid_damage_mul(spider_boss, 10/(remain_egg + 1))
- end
- when 2092.kill with pc.in_dungeon() == true begin
- notice_all("Die Gruppe von ".. pc.get_name() .." hat die Baroness besiegt.")
- d.notice("Die Spinnenbaroness wurde vernichtet! In drei Minuten werden alle Kämpfer aus der Höhle teleportiert. ")
- d.setqf2("spider_dungeon_3floor_boss", "last_exit_time", get_global_time())
- server_timer("spider_dungeon_3floor_boss_timer", 60, d.get_map_index())
- end
- when spider_dungeon_3floor_boss_timer.server_timer begin
- if d.select(get_server_timer_arg()) then
- d.setqf2("spider_dungeon_3floor_boss", "spider_boss", 0)
- d.setqf2("spider_dungeon_3floor_boss", "remain_egg", 0)
- clear_server_timer("spider_dungeon_3floor_boss_timer", get_server_timer_arg())
- d.exit_all()
- end
- end
- end
- end