Cerere Inel Teleport
- Yahiko
-

- Mesaje: 3865
- Membru din: 25 Mai 2015, 18:31
- Aprecieri: 0
- Mulţumiri: 4857
- Discord: Copiază ID
- Contact:
Cod: Selectaţi tot
quest warpring begin
state start begin
when 70007.use begin
local x
local y
local t
local e = pc.get_empire()
say_title("Teleporter:")
say("Încotro vrei sã mergi strãine?")
local s = select("Map1", "Map2", "Închide")
elseif s==1 then
say_title("Teleporter")
say("Încotro vrei sã mergi strãine?")
t = select("Regatul Rosu", "Regatul Galben", "Regatul Albastru","Închide")
if t==1 then
x="473900"
y="954600"
elseif t==2 then
x="63200"
y="166700"
elseif t==3 then
x="959600"
y="269700"
end
elseif s==2 then
say_title("Teleporter:")
say("Încotro vrei sã mergi strãine?")
t = select("Regatul Rosu", "Regatul Galben", "Regatul Albastru", "Închide")
if t==1 then
x="352300"
y="882700"
elseif t==2 then
x="145700"
y="239800"
elseif t==3 then
x="863800"
y="246000"
end
if s!=3 then
pc.warp(x, y)
end
end
end
endQUEST : warpringYahiko scrie:NU știu dacă funcționează.Cod: Selectaţi tot
quest warpring begin state start begin when 70007.use begin local x local y local t local e = pc.get_empire() say_title("Teleporter:") say("Încotro vrei sã mergi strãine?") local s = select("Map1", "Map2", "Închide") elseif s==1 then say_title("Teleporter") say("Încotro vrei sã mergi strãine?") t = select("Regatul Rosu", "Regatul Galben", "Regatul Albastru","Închide") if t==1 then x="473900" y="954600" elseif t==2 then x="63200" y="166700" elseif t==3 then x="959600" y="269700" end elseif s==2 then say_title("Teleporter:") say("Încotro vrei sã mergi strãine?") t = select("Regatul Rosu", "Regatul Galben", "Regatul Albastru", "Închide") if t==1 then x="352300" y="882700" elseif t==2 then x="145700" y="239800" elseif t==3 then x="863800" y="246000" end if s!=3 then pc.warp(x, y) end end end end
STATE : start
WHEN : 40002.use
local x
local y
local t
local e = pc . get_empire ( )
say_title ( "Teleporter:" )
say ( "▒ncotro vrei s▒ mergi str▒ine?" )
local s = select ( "Map1" , "Map2" , "▒nchide" )
elseif s == 1 then
say_title ( "Teleporter" )
say ( "▒ncotro vrei s▒ mergi str▒ine?" )
t = select ( "Regatul Rosu" , "Regatul Galben" , "Regatul Albastru" , "▒nchide" )
if t == 1 then
x = "473900"
y = "954600"
elseif t == 2 then
x = "63200"
y = "166700"
elseif t == 3 then
x = "959600"
y = "269700"
end
elseif s == 2 then
say_title ( "Teleporter:" )
say ( "▒ncotro vrei s▒ mergi str▒ine?" )
t = select ( "Regatul Rosu" , "Regatul Galben" , "Regatul Albastru" , "▒nchide" )
if t == 1 then
x = "352300"
y = "882700"
elseif t == 2 then
x = "145700"
y = "239800"
elseif t == 3 then
x = "863800"
y = "246000"
end
if s ~= 3 then
pc . warp ( x , y )
end
inel.quest:42:syntax error : [string "start"]:8: <eof> expected near `elseif'
Abort (core dumped)
root@:/usr/game/share/locale/romania/quest #
imediat revin cu edit.
Edit: Testeaza daca nu merge pune la primul if pui elseif dar nu cred ca trebuie
in general un script if else arata asa
if (....)[
Conditia de sus
]
elseif(....)[
Conditia de sus
]
elseif(....)[
Conditia de sus
]
...
else[
ERROR
]
, sa imi spui daca merge.
Edit: Testeaza daca nu merge pune la primul if pui elseif dar nu cred ca trebuie
in general un script if else arata asa
if (....)[
Conditia de sus
]
elseif(....)[
Conditia de sus
]
elseif(....)[
Conditia de sus
]
...
else[
ERROR
]
, sa imi spui daca merge.
Cod: Selectaţi tot
quest warpring begin
state start begin
when 40002.use begin
local x
local y
local t
local e = pc.get_empire()
say_title("Teleporter:")
say("Încotro vrei sã mergi strãine?")
local s = select("Map1", "Map2", "Închide")
if s==1 then
say_title("Teleporter")
say("Încotro vrei sã mergi strãine?")
t = select("Regatul Roºu", "Regatul Galben", "Regatul Albastru","Închide")
if t==1 then
x="473900"
y="954600"
elseif t==2 then
x="63200"
y="166700"
elseif t==3 then
x="959600"
y="269700"
end
elseif s==2 then
say_title("Teleporter:")
say("Încotro vrei sã mergi strãine?")
t = select("Regatul Roºu", "Regatul Galben", "Regatul Albastru", "Închide")
if t==1 then
x="352300"
y="882700"
elseif t==2 then
x="145700"
y="239800"
elseif t==3 then
x="863800"
y="246000"
end
end
if s!=3 then
pc.warp(x, y)
end
end
end
endMulțumescDemOnJR scrie:imediat revin cu edit.
Edit: Testeaza daca nu merge pune la primul if pui elseif dar nu cred ca trebuie
in general un script if else arata asa
if (....)[
Conditia de sus
]
elseif(....)[
Conditia de sus
]
elseif(....)[
Conditia de sus
]
...
else[
ERROR
]
, sa imi spui daca merge.Cod: Selectaţi tot
quest warpring begin state start begin when 40002.use begin local x local y local t local e = pc.get_empire() say_title("Teleporter:") say("Încotro vrei sã mergi strãine?") local s = select("Map1", "Map2", "Închide") if s==1 then say_title("Teleporter") say("Încotro vrei sã mergi strãine?") t = select("Regatul Roºu", "Regatul Galben", "Regatul Albastru","Închide") if t==1 then x="473900" y="954600" elseif t==2 then x="63200" y="166700" elseif t==3 then x="959600" y="269700" end elseif s==2 then say_title("Teleporter:") say("Încotro vrei sã mergi strãine?") t = select("Regatul Roºu", "Regatul Galben", "Regatul Albastru", "Închide") if t==1 then x="352300" y="882700" elseif t==2 then x="145700" y="239800" elseif t==3 then x="863800" y="246000" end end if s!=3 then pc.warp(x, y) end end end end
[ Postat de pe iPhone ]

- Yahiko
-

- Mesaje: 3865
- Membru din: 25 Mai 2015, 18:31
- Aprecieri: 0
- Mulţumiri: 4857
- Discord: Copiază ID
- Contact:
//# Rezolvat. Subiect arhivat.
[ Postat de pe Android ]
[ Postat de pe Android ]

Răspunsuri
3 Vizualizări
167
3 Vizualizări
167
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 5 vizitatori

