Metin2 Hungarian Forum

Metin2 => Szerver készítés => Privát szerverek => Segítség => A témát indította: aferii Dátum 2017-07-11, 08:53:42

Cím: core dumped
Írta: aferii Dátum 2017-07-11, 08:53:42













quest sd3 begin
state start begin
when 20041.chat."SD3 Pók kazmata" with pc.get_level() >= 80 begin
say_title("Részeg:")
say(" ")
say("El szertnél menni az SD3  mapra?")
say_reward("Szükséged lesz egy SD3 belépőre.")
say(" ")
local xny = select("Igen","Nem")
if xny == 2 then
return
end
if xny == 1 then
if pc.count_item(19870) >= 1 then
say_title("Részeg:")
say(" ")
say("Rendben, azonnal teleportállak!")
wait()
pc.remove_item(19870, 1)
pc.warp(97791,571101)
else
say_title("Részeg:")
say(" ")
say("Nincs nálad SD3 belépő, nem teleportálhatlak el!")
end
end
end
end


Mi a hiba? : D
Cím: Re:core dumped
Írta: Nexus™ Dátum 2017-07-11, 09:50:49
Próbáld meg.

quest sd3 begin
state start begin
when login or levelup with pc.level >80 begin
set_state(sd_zone)
end
end

state sd_zone begin
when 20041.chat."SD3 Pók kazamata" begin
say_title(mob_name(20041)..":")
say("")
say("El szertnél menni az SD3  mapra?")
say_reward("Szükséged lesz egy SD3 belépőre.")
say("")
local SD3sel=select("Igen","Nem")
if SD3sel==1 then
local SD3Key = 19870
if pc.countitem(SD3Key)>0 then
say_title(mob_name(20041)..":")
say("")
say("Rendben azonnal teleportállak!")
wait()
pc.removeitem(SD3Key, 1)
pc.warp(97791,571101)
else
say_title(mob_name(20041)..":")
say("Nincs nálad SD3 belépő, nem teleportálhatlak el!")
say_item("Belépési engedély ",SD3Key,"")
end
elseif SD3sel==2 then
return
end
end
end
end


A tiedébe pedig ez a gond:

Idézif xny == 2 then
         return
      end
if xny == 1 then
Cím: Re:core dumped
Írta: aferii Dátum 2017-07-12, 20:02:09
Köszi, jó lett.
EhPortal 1.39 © 2025, WebDev