Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Dt_gui nie wyświetla się


Rekomendowane odpowiedzi

Opublikowano

Witam posiadam taki o to quest na Dt_gui:

 

 

quest deviltower_zone begin
    state start begin
when login with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
loop_timer("check_dungeon_time", 1)
loop_timer("dodajczas", 1)
end
when dodajczas.timer with pc.in_dungeon() begin
local timee=d.getf("czas")
d.setf("czas", timee+1)
end
when check_dungeon_time.timer with pc.in_dungeon() begin
local timer = d.getf("czas")
local min = math.floor(timer/60)
local sek = timer-min*60
local pokaz_czas = (min..":"..sek)
local pozostalo = d.count_monster()
local wspolnie = d.getf("zabitychogolnie")
local zabitych_przez_ciebie = pc.getqf("zabitychprzezcb")
local pietro_show = d.getf("level")
local players = d.getf("gracze")
cmdchat("showDtTimer")
cmdchat("setDtCounters "..pokaz_czas.."|"..zabitych_przez_ciebie.."|"..wspolnie.."|"..pozostalo.."|"..players.."|"..pietro_show.."")
end
when kill with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
if not npc.is_pc() then
local zabitych_ogolnie = d.getf("zabitychogolnie")
local zabitych_przez_ciebie = pc.getqf("zabitychprzezcb")
pc.setqf("zabitychprzezcb", zabitych_przez_ciebie+1)
d.setf("zabitychogolnie", zabitych_ogolnie+1)
end
end
when login begin
if pc.get_map_index() == 66 then 
if pc.get_x() < 2048+88 or pc.get_y() < 6656+577 or pc.get_x() > 2048+236 or pc.get_y() > 6656+737 then
pc.warp((5376+532)*100, (512+596+4)*100, 65)
end
pc.set_warp_location(65, 5376+532, 512+596+4)
elseif pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 then
pc.set_warp_location(65, 5376+532, 512+596+4)
end
end
when deviltower_man.chat.locale.deviltower_man_chat begin
if pc.get_level() < 40 then
say(locale.deviltower_man_say_you_cant)
else
say(locale.deviltower_man_say)
local s = select(locale.deviltower_enter,locale.deviltower_no_enter)
if s == 1 then
pc.warp(216500,727000)
end
end
end
when devil_stone1.kill begin
timer("devil_stone1_1", 6)
pc.setqf("zabitychprzezcb",1)
end
when devil_stone1_1.timer begin
local mapto7= pc.count_item(30302)  -- Die Karte der Zin Grotte wurde aus deinem Inventar entfernt
pc.remove_item(30302,mapto7)
 
local boxto7= pc.count_item(30300)  -- Die Unbekannte Alte Kiste wurde aus deinem Inventar entfernt
pc.remove_item(30300,boxto7)
 
   d.new_jump_all(66, special.devil_tower[1][1], special.devil_tower[1][2])
   d.regen_file("data/dungeon/deviltower2_regen.txt")
           d.set_warp_at_eliminate(4, d.get_map_index(), special.devil_tower[2][1], special.devil_tower[2][2], "data/dungeon/deviltower3_regen.txt")
   d.setf("zabitychogolnie", 1)
   d.setf("level", 1)
   d.setf("gracze", 1)
   pc.setqf("zalogowano", 1)
if pc.getqf("zalogowano") < 2 then
pc.setqf("zalogowano", 3)
local graczy = d.getf("gracze")
d.setf("gracze", graczy+1)
return
else
return
end
   d.setf("czas", 61)
   d.setf("level", 2)
end
end
end

 

 

 
oraz taki na DT:


quest deviltower_zone begin
state start begin
when login begin
if pc.get_map_index() == 66 then
if pc.get_x() < 2048+88 or pc.get_y() < 6656+577 or pc.get_x() > 2048+236 or pc.get_y() > 6656+737 then
pc.warp(590500, 110500)
end
pc.set_warp_location(65, 5905, 1105)
elseif pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 then
pc.set_warp_location(65, 5905, 1105)
end
end
when deviltower_man.chat.locale.deviltower_man_chat begin
if pc.get_level() < 40 then
say_title("Stra積ik Wie篡 Demon闚: ")
say(locale.deviltower_man_say_you_cant)
else
say_title("Stra積ik Wie篡 Demon闚: ")
say(locale.deviltower_man_say)
local s = select(locale.deviltower_enter,locale.deviltower_no_enter)
if s == 1 then
pc.warp(216500,727000)
else
return
end
end
end
when devil_stone1.kill begin
timer("devil_stone1_1", 6)
end
when devil_stone1_1.timer begin
local mapto7= pc.count_item(30302)  -- 消滅不知是否存在的真亡靈塔
pc.remove_item(30302,mapto7)
local boxto7= pc.count_item(30300)  -- 消滅不知是否存在的不知名的箱子
pc.remove_item(30300,boxto7)
d.new_jump_all(66, special.devil_tower[1][1], special.devil_tower[1][2])
d.regen_file("data/dungeon/deviltower2_regen.txt")
d.set_warp_at_eliminate(4, d.get_map_index(), special.devil_tower[2][1], special.devil_tower[2][2], "data/dungeon/deviltower3_regen.txt")
end
--when devil_stone2.kill begin
--d.jump_all_local(special.devil_tower[2][1], special.devil_tower[2][2])
--end
when devil_stone3.kill begin
--d.jump_all_local(special.devil_tower[3][1], special.devil_tower[3][2])
--d.set_exit_all_at_eliminate(6)
--d.set_warp_at_eliminate(6, d.get_map_index(), 100, 100)
--d.set_warp_at_eliminate(4, 66, 5376+532, 512+596+4)
d.set_warp_at_eliminate(4, d.get_map_index(), special.devil_tower[3][1], special.devil_tower[3][2], "data/dungeon/deviltower4_regen.txt")
d.check_eliminated()
--d.exit_all()
end
function get_4floor_stone_pos()
local positions =  {
{368, 629},
{419, 630},
{428, 653},
{422, 679},
{395, 689},
{369, 679},
{361, 658},
}
for i = 1, 6 do
local j = number(i, 7)
if i != j then
local t = positions[i];
positions[i] = positions[j];
positions[j] = t;
end
end
--for i = 1, 7 do
-- positions[i][1] = positions[i][1] * 100
-- positions[i][2] = positions[i][2] * 100
--   end
return positions
end
when 8016.kill with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
d.setf("level", 4)
-- 再現大量怪物及製造真石頭和假石頭
--d.regen_file("data/dungeon/deviltower4_regen.txt")
local positions = deviltower_zone.get_4floor_stone_pos()
for i = 1, 6 do
chat(positions[i][1], positions[i][2])
d.set_unique("fake" .. i , d.spawn_mob(8017, positions[i][1], positions[i][2]))
end
chat(positions[7][1], positions[7][2])
local vid = d.spawn_mob(8017, positions[7][1], positions[7][2])
chat(vid)
d.set_unique("real", vid)
server_loop_timer('devil_stone4_update', 10, pc.get_map_index())
server_timer('devil_stone4_fail1', 5*60, pc.get_map_index())
d.notice("Dotar貫?do Bramy Wyboru na 3. pi皻rze. Wiele");
d.notice("kamieni Metin b璠zie dra積i?Twoje oczy i uszy.");
d.notice("Znajd?w豉iwy kamie?Metin i zniszcz go w");
d.notice("ci鉚u 15 minut! To jedyny spos鏏 aby przej ");
d.notice("dalej.");
end
when devil_stone4_fail1.server_timer begin
if d.select(get_server_timer_arg()) then
d.notice("Pozosta這 10 minut!")
server_timer('devil_stone4_fail2', 5*60, get_server_timer_arg())
end
end
when devil_stone4_fail2.server_timer begin
if d.select(get_server_timer_arg()) then
d.notice("Pozosta這 5 minut!")
server_timer('devil_stone4_fail', 5*60, get_server_timer_arg())
end
end
when devil_stone4_fail.server_timer begin
if d.select(get_server_timer_arg()) then
d.notice("Nie uda這 si? zostaniecie wylogowany!")
d.exit_all()
clear_server_timer('devil_stone4_update', get_server_timer_arg())
end
end
when devil_stone4_update.server_timer begin
if d.select(get_server_timer_arg()) then
if not d.is_unique_dead("real") then
for i = 1, 6 do
if d.getf("fakedead" .. i) == 0 then
if d.unique_get_hp_perc("fake" .. i) < 50 then
d.purge_unique("fake" .. i)
d.setf("fakedead" .. i, 1)
d.notice("To nie ten kamie?");
end
end
end
else
--d.clear_regen()
--d.regen_file("data/dungeon/deviltower5_regen.txt")
server_timer("devil_stone4_end", 5, get_server_timer_arg())
d.notice("Wykaza貫?si?doskona造m s逝chem i instynktem");
d.notice("Zniszczy貫?prawid這wy kamie?Metin! Za chwil?")
d.notice("dotrzesz na 4. pietro!")
clear_server_timer('devil_stone4_fail1', get_server_timer_arg())
clear_server_timer('devil_stone4_fail2', get_server_timer_arg())
clear_server_timer('devil_stone4_fail', get_server_timer_arg())
end
else
server_timer('devil_stone4_stop_timer', 1, get_server_timer_arg())
end
end
when devil_stone4_stop_timer.server_timer begin
clear_server_timer('devil_stone4_update', get_server_timer_arg())
end
when devil_stone4_end.server_timer begin
if d.select(get_server_timer_arg()) then
d.setf("level", 5)
d.setf("stone_count", 5)
d.notice("Dotar貫?do zamkni皻ej Bramy na 4. pi皻rze!")
d.notice("Znajduje si?tu wiele potwor闚, kt鏎e strzeg?")
d.notice("tajemniczych kamieni - b璠ziesz ich potrzebowa? ")
d.notice("Bez nich nie dostaniesz si?na 5. poziom Wie篡. ")
d.notice("Zdob鉅?Kamienie od potwor闚 i u篡j ich, aby")
d.notice("odblokowa?Staro篡tne Piecz璚i. Na wykonanie")
d.notice("tego zadania masz tylko 20 minut - spiesz si? ")
d.jump_all(special.devil_tower[4][1], special.devil_tower[4][2])
server_timer('devil_stone5_fail1', 5*60, get_server_timer_arg())
clear_server_timer('devil_stone4_update', get_server_timer_arg())
-- 5樓繼續再現
d.set_regen_file("data/dungeon/deviltower5_regen.txt")
-- 5樓封印石再現
d.spawn_mob(20073, 421, 452)
d.spawn_mob(20073, 380, 460)
d.spawn_mob(20073, 428, 414)
d.spawn_mob(20073, 398, 392)
d.spawn_mob(20073, 359, 426)
end
end
when devil_stone5_fail1.server_timer begin
if d.select(get_server_timer_arg()) then
d.notice("Pozosta這 15 minut!")
server_timer('devil_stone5_fail2', 5*60, get_server_timer_arg())
end
end
when devil_stone5_fail2.server_timer begin
if d.select(get_server_timer_arg()) then
d.notice("Pozosta這 10 minut!")
server_timer('devil_stone5_fail3', 5*60, get_server_timer_arg())
end
end
when devil_stone5_fail3.server_timer begin
if d.select(get_server_timer_arg()) then
d.notice("Pozosta這 5 minut!")
server_timer('devil_stone5_fail', 5*60, get_server_timer_arg())
end
end
when devil_stone5_fail.server_timer begin
if d.select(get_server_timer_arg()) then
d.notice("Nie uda這 si? zostaniesz wylogowany!")
d.exit_all()
end
end
--when devil_stone4.kill begin
--d.setf("level", 5)
--d.setf("stone_count", 4)
--d.clear_regen()
--d.regen_file("data/dungeon/deviltower5_regen.txt")
--d.jump_all_local(special.devil_tower[4][1], special.devil_tower[4][2])
--end
when 1062.kill with pc.in_dungeon() and d.getf("level") == 5 begin
local KILL_COUNT_FOR_DROP_KEY = 50
--if is_test_server() then
--KILL_COUNT_FOR_DROP_KEY = 1
--end
local n =d.getf("count") + 1
d.setf("count", n)
if n == KILL_COUNT_FOR_DROP_KEY then
-- 掉下鎖匙
game.drop_item(50084, 1)
d.setf("count", 0)
end
end
when devil_stone5.take with item.vnum == 50084 begin
npc.purge()
item.remove()
d.setf("stone_count", d.getf("stone_count") - 1)
if d.getf("stone_count") <= 0 then
d.setf("level", 6)
d.clear_regen()
d.regen_file("data/dungeon/deviltower6_regen.txt")
d.notice("Wszystkie Staro篡tne Piecz璚i zosta造 otwarte.")
d.notice("Teraz dotrzesz na 5. poziom Wie篡 Demon闚. ")
d.notice("Zabij wszystkie potwory na 5. pi皻rze, jednak ")
d.notice("uwa瘸j Pi皻ro to nale篡 do Kr鏊a Demon闚! ")
d.jump_all(special.devil_tower[5][1], special.devil_tower[5][2])
clear_server_timer('devil_stone5_fail1', get_server_timer_arg())
clear_server_timer('devil_stone5_fail2', get_server_timer_arg())
clear_server_timer('devil_stone5_fail3', get_server_timer_arg())
clear_server_timer('devil_stone5_fail', get_server_timer_arg())
else
d.notice("Otworzy貫?piecz耩! Pozosta這 jeszcze: "..d.getf("stone_count").."!")
end
end
when devil_stone6.kill begin
-- 傳送到煉聖所在的地圖
-- 否則,開設一個新煉聖
--d.jump_all(special.devil_tower[6][1], special.devil_tower[6][2])
d.kill_all()
  -- d.set_warp_at_eliminate(3*60, 66, 5376+532, 512+596+4)
d.check_eliminated()
local reward_alchemist = {20074, 20075, 20076}
d.spawn_mob(reward_alchemist[number(1,3)], 425, 216);
d.setqf("can_refine", 1)
end
--------------------------------------
-- 由進入7樓至到達8樓之前
--------------------------------------
when 20074.chat."Wy窺ze pi皻ro" with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
say_title("Zbrojmistrz Wie篡 Demon闚 ")
say("Co?! Chcesz uda?si?na 6. poziom Wie篡? ")
say("Wyprawa na wy窺ze poziomy wymaga")
say("naprawd?dobrego przygotowania.")
say("Je瞠li osi鉚n像e?75. poziom mog?")
say("przenie Ci?na wy窺ze pi皻ro.")
wait()
if pc.level >=75 then
say_title("Zbrojmistrz Wie篡 Demon闚 ")
say("Masz odpowiedni poziom i dlatego masz spore ")
say("szanse na przetrwanie na wy窺zych pi皻rach.")
say("Mozesz wej")
timer("devil_jump_7", 6)
return
end
say("Mo瞠sz przejsc dalej!")
say("")
say("")
wait()
pc.warp(590500, 110500)
return
end
when 20075.chat."Wy窺ze pi皻ro" with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
say_title("Platnerz Wie篡 Demon闚 ")
say("Co?! Chcesz uda?si?na 6. poziom Wie篡? ")
say("Wyprawa na wy窺ze poziomy wymaga")
say("naprawd?dobrego przygotowania.")
say("Je瞠li osi鉚n像e?75. poziom mog?")
say("przenie Ci?na wy窺ze pi皻ro.")
wait()
if pc.level >=75 then
say_title("Platnerz Wie篡 Demon闚 ")
say("Masz odpowiedni poziom i dlatego masz spore ")
say("szanse na przetrwanie na wy窺zych pi皻rach.")
say("Mozesz wej")
timer("devil_jump_7", 6)
return
end
say("Mo瞠sz przejsc dalej!")
say("")
say("")
wait()
pc.warp(590500, 110500)
return
end
when 20076.chat."Wy窺ze pi皻ro" with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
say_title("Jubiler Wie篡 Demon闚 ")
say("Co?! Chcesz uda?si?na 6. poziom Wie篡? ")
say("Wyprawa na wy窺ze poziomy wymaga")
say("naprawd?dobrego przygotowania.")
say("Je瞠li osi鉚n像e?75. poziom mog?")
say("przenie Ci?na wy窺ze pi皻ro.")
wait()
if pc.level >=75 then
say_title("Jubiler Wie篡 Demon闚 ")
say("Masz odpowiedni poziom i dlatego masz spore ")
say("szanse na przetrwanie na wy窺zych pi皻rach.")
say("Mozesz wej")
timer("devil_jump_7", 6)
return
end
say("Mo瞠sz przejsc dalej!")
say("")
say("")
wait()
pc.warp(590500, 110500)
return
end
when devil_jump_7.timer begin
d.notice("Mapa Zin-Sa-Gui otwiera drog?na nast瘼ne")
d.notice("pi皻ro. Zniszcz kamienie Metin, aby j?odnale ")
d.clear_regen()
d.spawn_mob(8018, 639, 658)
d.spawn_mob(8018, 611, 637)
d.spawn_mob(8018, 596, 674)
d.spawn_mob(8018, 629, 670)
d.setf("level", 7)
d.jump_all(2048+590, 6656+638)
end
when 8018.kill with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
local cont = d.getf("7_stone_kill") + 1
d.setf("7_stone_kill", cont)
if cont >= 4 then
d.setf("7_stone_kill", 0)
d.set_regen_file("data/dungeon/deviltower7_regen.txt")
end
end
when 8019.kill with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
game.drop_item(30300, 1)
end
when 30300.use with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
pc.remove_item("30300", 1)
local pct = number(1,10)
if pct == 1 then
-- 掉下真地圖
game.drop_item(30302, 1)
d.clear_regen()
else
-- 掉下假地圖
game.drop_item(30301, 1)
end
end
when 30302.use with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
-- 傳送到8樓
say_title("Informacja:")
say("Ta mapa przeniesie Ci?na 8 . poziom Wie篡 ")
say("Demon闚.")
pc.remove_item("30302", 1)
timer("devil_jump_8", 6)
d.clear_regen()
end
--------------------------------------------
-- 由進入8樓至到達9樓之前
--------------------------------------------
when devil_jump_8.timer begin
d.notice("Znajd?odpowiedni klucz!")
d.notice("Potrzebujesz klucza Zin-Bong-In aby")
d.notice("m鏂 otworzy?piecz耩 Sa-Soein i dosta?")
d.notice("si?na nast瘼ne pi皻ro Wie篡.")
d.setf("level", 8)
d.jump_all(2048+590, 6656+403)
d.set_regen_file("data/dungeon/deviltower8_regen.txt")
d.spawn_mob(20366, 640, 460)
local _count= pc.count_item(30302)-- 消滅真亡靈塔
pc.remove_item(30302,_count)
end
when 1040.kill with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
local pct1 = number(1, 5)
if pct1 == 1 then
local pct2 = number(1, 10)
if pct2 == 1 then
-- 掉下真鎖匙
game.drop_item(30304, 1)
else
-- 掉下假鎖匙
game.drop_item(30303, 1)
end
else
return
end
end
when 20366.take with item.vnum == 30304 begin
-- 9樓封印解除
npc.purge()
item.remove()
timer("devil_jump_9", 6)
end
---------------------------------------------
-- 由進入9樓至結束
---------------------------------------------
when devil_jump_9.timer begin
d.notice("Zabij Przyw鏚c?Demon闚! ")
d.setf("level", 9)
d.jump_all(2048+590, 6656+155)
d.clear_regen()
d.regen_file("data/dungeon/deviltower9_regen.txt")
end
when 1093.kill with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
d.kill_all()
timer("devil_end_jump", 60)
end
when devil_end_jump.timer begin
d.exit_all()
end
end
end

[/code]

 

I problem jest taki Gdy wejde do DT to gui niepojawia się ale jak podepne pod F8 i klikne to jest ale nie zlicza czasu, potworów itp.

 

Prosił bym o jak najszybszą pomoc.

 

9pst4soeytme.png


Opublikowano

Mogłeś dopisać, że nazwy questów nie mogą być takie same, bo pliki w object się nakłada

usunełem, skompilowałem od nowa, i nic ;) nie wywołuje

9pst4soeytme.png


Opublikowano

Mogłeś dopisać, że nazwy questów nie mogą być takie same, bo pliki w object się nakładają.

@kwiatmix

 

Wgrałem to u siebie i .... jednak nazwy questa muszą być takie same. Nic się na siebie nie nakłada. Oba się idealnie kompilują ze sobą. 

 

@topic Jeżeli testowaleś to tylko na parterze to oczywiste że Ci nie zadziała. Parter to jest mapa. Wyższe piętra dopiero wchodzą w skład dungeonu, od pierwszego piętra czas oraz moby zalicza.

1EPZ6G.gif

Opublikowano

@kwiatmix

 

Wgrałem to u siebie i .... jednak nazwy questa muszą być takie same. Nic się na siebie nie nakłada. Oba się idealnie kompilują ze sobą. 

 

@topic Jeżeli testowaleś to tylko na parterze to oczywiste że Ci nie zadziała. Parter to jest mapa. Wyższe piętra dopiero wchodzą w skład dungeonu, od pierwszego piętra czas oraz moby zalicza.

Racja, ale zlicza 2x :C NP: zabije 1 moba to zalicza jako 2 :C

9pst4soeytme.png


Opublikowano

Nie powinno ponieważ masz funkcje :

   d.setf("zabitychogolnie", 1)

Masz tu questa którego używam. Może Ci zadziała xD

quest deviltower_zone begin
    state start begin
		when login with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
			loop_timer("check_dungeon_time", 1)
			loop_timer("dodajczas", 1)
		end
		when dodajczas.timer with pc.in_dungeon() begin
			local timee=d.getf("czas")
			d.setf("czas", timee+1)
		end
		when check_dungeon_time.timer with pc.in_dungeon() begin
			local timer = d.getf("czas")
				local min = math.floor(timer/60)
				local sek = timer-min*60
				local pokaz_czas = (min..":"..sek)
			local pozostalo = d.count_monster()
			local wspolnie = d.getf("zabitychogolnie")
			local zabitych_przez_ciebie = pc.getqf("zabitychprzezcb")
			local pietro_show = d.getf("level")
			local players = d.getf("gracze")
			cmdchat("showDtTimer")
			cmdchat("setDtCounters "..pokaz_czas.."|"..zabitych_przez_ciebie.."|"..wspolnie.."|"..pozostalo.."|"..players.."|"..pietro_show.."")
		end
		when kill with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
			if not npc.is_pc() then
				local zabitych_ogolnie = d.getf("zabitychogolnie")
				local zabitych_przez_ciebie = pc.getqf("zabitychprzezcb")
				pc.setqf("zabitychprzezcb", zabitych_przez_ciebie+1)
				d.setf("zabitychogolnie", zabitych_ogolnie+1)
			end
		end
		when login begin
			if pc.get_map_index() == 66 then			
				if pc.get_x() < 2048+88 or pc.get_y() < 6656+577 or pc.get_x() > 2048+236 or pc.get_y() > 6656+737 then
					pc.warp((5376+532)*100, (512+596+4)*100, 65)
				end
				pc.set_warp_location(65, 5376+532, 512+596+4)
			elseif pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 then
				pc.set_warp_location(65, 5376+532, 512+596+4)
			end
		end
		when deviltower_man.chat.locale.deviltower_man_chat begin
			if pc.get_level() < 40 then
				say(locale.deviltower_man_say_you_cant)
			else
				say(locale.deviltower_man_say)
			local s = select(locale.deviltower_enter,locale.deviltower_no_enter)
			if s == 1 then
				pc.warp(216500,727000)
			end
			end
		end
		when devil_stone1.kill begin
			timer("devil_stone1_1", 6)
			pc.setqf("zabitychprzezcb",1)
		end
	when devil_stone1_1.timer begin
		local mapto7= pc.count_item(30302)  -- Die Karte der Zin Grotte wurde aus deinem Inventar entfernt
		pc.remove_item(30302,mapto7)

		local boxto7= pc.count_item(30300)  -- Die Unbekannte Alte Kiste wurde aus deinem Inventar entfernt
		pc.remove_item(30300,boxto7)

	    d.new_jump_all(66, special.devil_tower[1][1], special.devil_tower[1][2])
	    d.regen_file("data/dungeon/deviltower2_regen.txt")
           d.set_warp_at_eliminate(4, d.get_map_index(), special.devil_tower[2][1], special.devil_tower[2][2], "data/dungeon/deviltower3_regen.txt")
	    d.setf("zabitychogolnie", 1)
	    d.setf("level", 1)
	    d.setf("gracze", 1)
	    pc.setqf("zalogowano", 1)
			if pc.getqf("zalogowano") < 2 then
				pc.setqf("zalogowano", 3)
				local graczy = d.getf("gracze")
				d.setf("gracze", graczy+1)
				return
			else
				return
			end
	    d.setf("czas", 61)
	    d.setf("level", 2)
	end
	end
end

1EPZ6G.gif

Opublikowano

 

Nie powinno ponieważ masz funkcje :

   d.setf("zabitychogolnie", 1)

Masz tu questa którego używam. Może Ci zadziała xD

quest deviltower_zone begin
    state start begin
		when login with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
			loop_timer("check_dungeon_time", 1)
			loop_timer("dodajczas", 1)
		end
		when dodajczas.timer with pc.in_dungeon() begin
			local timee=d.getf("czas")
			d.setf("czas", timee+1)
		end
		when check_dungeon_time.timer with pc.in_dungeon() begin
			local timer = d.getf("czas")
				local min = math.floor(timer/60)
				local sek = timer-min*60
				local pokaz_czas = (min..":"..sek)
			local pozostalo = d.count_monster()
			local wspolnie = d.getf("zabitychogolnie")
			local zabitych_przez_ciebie = pc.getqf("zabitychprzezcb")
			local pietro_show = d.getf("level")
			local players = d.getf("gracze")
			cmdchat("showDtTimer")
			cmdchat("setDtCounters "..pokaz_czas.."|"..zabitych_przez_ciebie.."|"..wspolnie.."|"..pozostalo.."|"..players.."|"..pietro_show.."")
		end
		when kill with pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
			if not npc.is_pc() then
				local zabitych_ogolnie = d.getf("zabitychogolnie")
				local zabitych_przez_ciebie = pc.getqf("zabitychprzezcb")
				pc.setqf("zabitychprzezcb", zabitych_przez_ciebie+1)
				d.setf("zabitychogolnie", zabitych_ogolnie+1)
			end
		end
		when login begin
			if pc.get_map_index() == 66 then			
				if pc.get_x() < 2048+88 or pc.get_y() < 6656+577 or pc.get_x() > 2048+236 or pc.get_y() > 6656+737 then
					pc.warp((5376+532)*100, (512+596+4)*100, 65)
				end
				pc.set_warp_location(65, 5376+532, 512+596+4)
			elseif pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 then
				pc.set_warp_location(65, 5376+532, 512+596+4)
			end
		end
		when deviltower_man.chat.locale.deviltower_man_chat begin
			if pc.get_level() < 40 then
				say(locale.deviltower_man_say_you_cant)
			else
				say(locale.deviltower_man_say)
			local s = select(locale.deviltower_enter,locale.deviltower_no_enter)
			if s == 1 then
				pc.warp(216500,727000)
			end
			end
		end
		when devil_stone1.kill begin
			timer("devil_stone1_1", 6)
			pc.setqf("zabitychprzezcb",1)
		end
	when devil_stone1_1.timer begin
		local mapto7= pc.count_item(30302)  -- Die Karte der Zin Grotte wurde aus deinem Inventar entfernt
		pc.remove_item(30302,mapto7)

		local boxto7= pc.count_item(30300)  -- Die Unbekannte Alte Kiste wurde aus deinem Inventar entfernt
		pc.remove_item(30300,boxto7)

	    d.new_jump_all(66, special.devil_tower[1][1], special.devil_tower[1][2])
	    d.regen_file("data/dungeon/deviltower2_regen.txt")
           d.set_warp_at_eliminate(4, d.get_map_index(), special.devil_tower[2][1], special.devil_tower[2][2], "data/dungeon/deviltower3_regen.txt")
	    d.setf("zabitychogolnie", 1)
	    d.setf("level", 1)
	    d.setf("gracze", 1)
	    pc.setqf("zalogowano", 1)
			if pc.getqf("zalogowano") < 2 then
				pc.setqf("zalogowano", 3)
				local graczy = d.getf("gracze")
				d.setf("gracze", graczy+1)
				return
			else
				return
			end
	    d.setf("czas", 61)
	    d.setf("level", 2)
	end
	end
end

Potem sprawdze....

9pst4soeytme.png


Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...