[SERVICE] Die Questkontrolle

10/01/2013 17:11 .Inya#9061
Könnte mir jemand diese Quest eben testen? Habe momentan keinen Server zur Verfügung. Es ist ein Auftrag aus meinem Kostenlosen Scripting Service.

Wirkung:

Level9:
Mpp+9 -> Epp+8

Level 18:
Mpp+9 + Epp+8 -> Tpp+7

Level 26:
Mpp+9 + Epp+8 + Tpp+7 -> Töpp+6

Level 34:
Mpp+9 + Epp+8 + Tpp+7 + Töpp+6 -> Dpp+5

Usw :D

Nur eben drüber schaun obs so geht wie es soll :) Helfer bekommt 15 e*gold


PS: Alles aus dem Kopf und ohne iwelche Tests (ausgenommen [Only registered and activated users can see links. Click Here To Register...] ) gescriptet :)
10/01/2013 18:16 Mijago#9062
Vergiss nicht, bei 'du erhältst' auch den step abzuziehen.
Ua ist [Only registered and activated users can see links. Click Here To Register...] die bessere variante (überarbeitet).
Zieh die abfrage, die den user aus dem Menü wirft wenn er eine rüssi jicht hat, direkt in die schleife, erspart unnötige abfragen.

Bei pc.hget_level hast du die klammern vergessen :)
Die abfrage darunter würde ich noch benutzerfreundlicher gestalten. Und zur check lvl ding func:
return pc.get_level ()> min
Das wars dann schon c:
Sonst solltd das eigl gehen denke ich, habs mir auf dem tablet jetzt schnell ell durchgelese.
Adda adda
Mijago
10/01/2013 20:12 BlackVIP94#9063
PHP Code:
quest npc begin
    state start begin
        when 9002.click begin
            s 
= select("Krieger", "Ninja", "Sura", "Schamane", "Abbrechen")
            if 
s == 5 then
                
return
            elseif 
s == 1 then
                npc
.open_shop(shopid1)
                
SETSKIN(NOWINDOW)
            elseif 
s == 2 then
                npc
.open_shop(shopid2)
                
SETSKIN(NOWINDOW)
            elseif 
s == 3 then
                npc
.open_shop(shopid3)
                
SETSKIN(NOWINDOW)
            elseif 
s == 4 then
                npc
.open_shop(shopid4)
                
SETSKIN(NOWINDOW)
            
end
        end
    end
end 
Geht die??
10/01/2013 20:19 .Inya#9064
Quote:
Originally Posted by BlackVIP94 View Post
PHP Code:
quest npc begin
    state start begin
        when 9002.click begin
            s 
= select("Krieger", "Ninja", "Sura", "Schamane", "Abbrechen")
            if 
s == 5 then
                
return
            elseif 
s == 1 then
                npc
.open_shop(shopid1)
                
SETSKIN(NOWINDOW)
            elseif 
s == 2 then
                npc
.open_shop(shopid2)
                
SETSKIN(NOWINDOW)
            elseif 
s == 3 then
                npc
.open_shop(shopid3)
                
SETSKIN(NOWINDOW)
            elseif 
s == 4 then
                npc
.open_shop(shopid4)
                
SETSKIN(NOWINDOW)
            
end
        end
    end
end 
Geht die??
Du musst die Shopids noch ändern
10/01/2013 20:55 BlackVIP94#9065
Quote:
Originally Posted by .н¢InyaProduction View Post
Du musst die Shopids noch ändern
und wie
10/02/2013 03:46 Jоe#9066
Die hast du (hoffentlich) vorher in der player.shop Tabelle definiert.
10/02/2013 07:34 Mijago#9067
@ BlackVIP94
Er meint, du Musst z. B. Shopid1 austauschen gegen die shop id
:) aber sonst sollte die Quest laufen.
10/02/2013 13:34 TeRRoRSiZex3#9068
PHP Code:
quest warpring begin
    state start begin
        
function main()
            
say_title(item.get_name())
            
local art = select("Normale Maps", "Dungeons", "Levelmaps", "Farmmaps","Abbrechen")
            if 
art == 1 then
                warpring
.normmaps1()
            elseif 
art == 2 then
                warpring
.dungeons()
            elseif 
art == 3 then
                warpring
.levelmaps()
            elseif 
art == 4 then
                warpring
.farmmaps()
            else
                return
            
end
        end
        
function normmaps1()
            
say_title(item.get_name().." : Normale Maps")
            
local normmaps1 = select("Map 1","Map 2","Eisland","Weiter","Zurück")
            if 
normmaps1 == 1 then
                local warps 
= {
                    [
1] = 4639, 9642,        -- rotes reich [empire1]
                    [
2] = 557, 1579,        -- gelbes reich [empire2]
                    [
3] = 9696, 2784        -- blaues reich [empire3]
                }
                
pc.warp(warps[pc.get_empire()])
            elseif 
normmaps1 == 2 then
                local warps 
= {
                    [
1] = 3608, 8776,
                    [
2] = 1385, 2349,
                    [
3] = 8731, 2426
                
}
                
pc.warp(warps[pc.get_empire()])
            elseif 
normmaps1 == 3 then
                local warps 
= {
                    [
1] = 3752, 1749,
                    [
2] = 3752, 1749,
                    [
3] = 3752, 1749
                
}
                
pc.warp(warps[pc.get_empire()])
            elseif 
normmaps1 == 5 then
                warpring
.normmaps2()
            elseif 
normmaps1 == 6 then
                warpring
.main()
            
end
        end
        
function normmaps2()
            
say_title(item.get_name().." : Normale Maps")
            
local normmaps2 = select("SD2 Anfang","Schlangenfeld","SD1 - Bossspinne","Tempeleingang(Orktal)","Geisterwald","Weiter","Zurück")
            if 
normmaps2 == 1 then
                pc
.warp(7050, 4650)
            elseif 
normmaps2 == 2 then
                pc
.warp(8400, 7200)
            elseif 
normmaps2 == 3 then
                pc
.warp(850, 5250)
            elseif 
normmaps2 == 4 then
                pc
.warp(3330, 7450)
            elseif 
normmaps2 == 5 then
                pc
.warp(2887, 5700)
            elseif 
normmaps2 == 6 then
                warpring
.normmaps3()
            elseif 
normmaps2 == 7 then
                warpring
.normmaps1()
            
end
        end
        
function normmaps3()
            
say_title(item.get_name().." : Normale Maps")
            
local normmaps3 = select("Roter Wald,","Orktal","Große Wüste","Grotte der Verbannung 1(Anfang)","Weiter","Zurück")
            if 
normmaps3 == 1 then
                pc
.warp(1119900, 70800)
            elseif 
normmaps3 == 2 then
                pc
.warp(2704, 7399)
            elseif 
normmaps3 == 3 then
                pc
.warp(2219, 5027)
            elseif 
normmaps3 == 4 then
                pc
.warp(1459, 13236)
            elseif 
normmaps3 == 5 then
                warpring
.normmaps4()
            elseif 
normmaps3 == 6 then
                warpring
.normmaps2()
            
end
        end
        
function normmaps4()
            
say_title(item.get_name().." : Normale Maps")
            
local normmaps4 = select("Grotte der Verbannung 1(Setaou Kämpfer)","Drachenraum","The Devil's Catacomb","Weiter","Zurück")
            if 
normmaps4 == 1
                pc
.warp(1459, 13236)
            elseif 
normmaps4 == 2
                pc
.warp(1825, 12207)
            elseif 
normmaps4 == 3
                pc
.warp(5913, 993)
            elseif 
normmaps4 == 4
                warpring
.normmaps5()
            elseif 
normmaps4 == 5
                warpring
.normmaps3()
            
end
        end
        
function normmaps5()
            
say_title(item.get_name().." : Normale Maps")
            
local normmaps5 = select("Gildenmap(Gelb)","Gildenmap(Rot)","Gildenmap(Blau)","Zurück","Abbrechen")
            if 
normmaps5 == 1 then
                pc
.warp(2219, 93)
            elseif 
normmaps5 == 2 then
                pc
.warp(1356, 43)
            elseif 
normmaps5 == 3 then
                pc
.warp(2718, 130)    
            elseif 
normmaps5 == 4 then
                warpring
.normmaps4()
            elseif 
normmaps5 == 5 then
                
return
            
end
        end

        
function dungeons()
            
say_title(item.get_name().." : Dungeons")
            
local dungeons = select("Affendungeons","Spinnendungeons","Zurück","Abbrechen")
            if 
dungeons == 1 then
                local ads 
= select("Anfänger","Normal","Experte","Zurück","Abbrechen")
                if 
ads == 1 then
                    pc
.warp(7752, 4477)
                elseif 
ads == 2 then
                    pc
.warp(1532, 6532)
                elseif 
ads == 3 then
                    pc
.warp(1352, 7300)
                elseif 
ads == 4 then
                    warpring
.dungeons()
                elseif 
ads == 5 then
                    
return
                
end
            
elseif dungeons == 2 then
                local sds 
= select("Spinnendungeon 1(Boss Kammer)","Spinnendungeon 2(Anfang)","Zurück","Abbrechen")
                if 
sds == 1 then
                    pc
.warp(917, 5253)
                elseif 
sds == 2 then
                    pc
.warp(7050, 4650)
                elseif 
sds == 3 then
                    warpring
.dungeons()
                elseif 
sds == 4 then
                    
return
                
end
            
elseif dungeons == 3 then
                warpring
.main()
            elseif 
dungeons == 4 then
                
return
            
end
        end
        
function levelmaps()
            
say_title(item.get_name().." : Levelmaps")
            
local levelmaps = select("LevelMap - LvL 100","LevelMap - LvL 125","Zurück","Abbrechen")
            if 
levelmaps == 1 then
                pc
.warp(11264, 15104)
            elseif 
levelmaps == 2 then
                pc
.warp(11776, 16640)
            elseif 
levelmaps == 3 then
                warpring
.main()
            elseif 
levelmaps == 4 then
                
return
            
end
        end
        
function farmmaps()
            
say_title(item.get_name().." : Farmmaps")
            
local farmmaps = select("Farmmap - LvL 90","Farmmap - LvL 125","Zurück","Abbrechen")
            if 
farmmaps == 1 then
                pc
.warp(10496, 15104)
            elseif 
farmmaps == 2 then
                pc
.warp(10240, 16640)
            elseif 
farmmaps == 3 then
                warpring
.main()
            elseif 
farmmaps == 4 then
                
return
            
end
        end
        when 70007.
use begin
            warpring
.main()
        
end
    end
end 
Bekomme den Fehler : locale/germany/quest/object/state/warpring:77: 'then' expected near 'pc'.

Vermutlich wird das ein ganz Simpler Fehler sein aber naja, ich kenne mich noch nicht mit dem Questen sooo gut aus =)

Wäre cool wenn einer mal kurz helfen würde ;)
10/02/2013 14:11 .Inya#9069
PHP Code:
quest warpring begin
    state start begin
        
function main()
            
say_title(item.get_name())
            
local art = select("Normale Maps", "Dungeons", "Levelmaps", "Farmmaps","Abbrechen")
            if 
art == 1 then
                warpring
.normmaps1()
            elseif 
art == 2 then
                warpring
.dungeons()
            elseif 
art == 3 then
                warpring
.levelmaps()
            elseif 
art == 4 then
                warpring
.farmmaps()
            else
                return
            
end
        end
        
function normmaps1()
            
say_title(item.get_name().." : Normale Maps")
            
local normmaps1 = select("Map 1","Map 2","Eisland","Weiter","Zurück")
            if 
normmaps1 == 1 then
                local warps 
= {
                    [
1] = 4639, 9642,        -- rotes reich [empire1]
                    [
2] = 557, 1579,        -- gelbes reich [empire2]
                    [
3] = 9696, 2784        -- blaues reich [empire3]
                }
                
pc.warp(warps[pc.get_empire()])
            elseif 
normmaps1 == 2 then
                local warps 
= {
                    [
1] = 3608, 8776,
                    [
2] = 1385, 2349,
                    [
3] = 8731, 2426
                
}
                
pc.warp(warps[pc.get_empire()])
            elseif 
normmaps1 == 3 then
                local warps 
= {
                    [
1] = 3752, 1749,
                    [
2] = 3752, 1749,
                    [
3] = 3752, 1749
                
}
                
pc.warp(warps[pc.get_empire()])
            elseif 
normmaps1 == 5 then
                warpring
.normmaps2()
            elseif 
normmaps1 == 6 then
                warpring
.main()
            
end
        end
        
function normmaps2()
            
say_title(item.get_name().." : Normale Maps")
            
local normmaps2 = select("SD2 Anfang","Schlangenfeld","SD1 - Bossspinne","Tempeleingang(Orktal)","Geisterwald","Weiter","Zurück")
            if 
normmaps2 == 1 then
                pc
.warp(7050, 4650)
            elseif 
normmaps2 == 2 then
                pc
.warp(8400, 7200)
            elseif 
normmaps2 == 3 then
                pc
.warp(850, 5250)
            elseif 
normmaps2 == 4 then
                pc
.warp(3330, 7450)
            elseif 
normmaps2 == 5 then
                pc
.warp(2887, 5700)
            elseif 
normmaps2 == 6 then
                warpring
.normmaps3()
            elseif 
normmaps2 == 7 then
                warpring
.normmaps1()
            
end
        end
        
function normmaps3()
            
say_title(item.get_name().." : Normale Maps")
            
local normmaps3 = select("Roter Wald,","Orktal","Große Wüste","Grotte der Verbannung 1(Anfang)","Weiter","Zurück")
            if 
normmaps3 == 1 then
                pc
.warp(1119900, 70800)
            elseif 
normmaps3 == 2 then
                pc
.warp(2704, 7399)
            elseif 
normmaps3 == 3 then
                pc
.warp(2219, 5027)
            elseif 
normmaps3 == 4 then
                pc
.warp(1459, 13236)
            elseif 
normmaps3 == 5 then
                warpring
.normmaps4()
            elseif 
normmaps3 == 6 then
                warpring
.normmaps2()
            
end
        end
        
function normmaps4()
            
say_title(item.get_name().." : Normale Maps")
            
local normmaps4 = select("Grotte der Verbannung 1(Setaou Kämpfer)","Drachenraum","The Devil's Catacomb","Weiter","Zurück")
            if 
normmaps4 == 1 then
                pc
.warp(1459, 13236)
            elseif 
normmaps4 == 2 then
                pc
.warp(1825, 12207)
            elseif 
normmaps4 == 3 then
                pc
.warp(5913, 993)
            elseif 
normmaps4 == 4 then
                warpring
.normmaps5()
            elseif 
normmaps4 == 5 then
                warpring
.normmaps3()
            
end
        end
        
function normmaps5()
            
say_title(item.get_name().." : Normale Maps")
            
local normmaps5 = select("Gildenmap(Gelb)","Gildenmap(Rot)","Gildenmap(Blau)","Zurück","Abbrechen")
            if 
normmaps5 == 1 then
                pc
.warp(2219, 93)
            elseif 
normmaps5 == 2 then
                pc
.warp(1356, 43)
            elseif 
normmaps5 == 3 then
                pc
.warp(2718, 130)    
            elseif 
normmaps5 == 4 then
                warpring
.normmaps4()
            elseif 
normmaps5 == 5 then
                
return
            
end
        end

        
function dungeons()
            
say_title(item.get_name().." : Dungeons")
            
local dungeons = select("Affendungeons","Spinnendungeons","Zurück","Abbrechen")
            if 
dungeons == 1 then
                local ads 
= select("Anfänger","Normal","Experte","Zurück","Abbrechen")
                if 
ads == 1 then
                    pc
.warp(7752, 4477)
                elseif 
ads == 2 then
                    pc
.warp(1532, 6532)
                elseif 
ads == 3 then
                    pc
.warp(1352, 7300)
                elseif 
ads == 4 then
                    warpring
.dungeons()
                elseif 
ads == 5 then
                    
return
                
end
            
elseif dungeons == 2 then
                local sds 
= select("Spinnendungeon 1(Boss Kammer)","Spinnendungeon 2(Anfang)","Zurück","Abbrechen")
                if 
sds == 1 then
                    pc
.warp(917, 5253)
                elseif 
sds == 2 then
                    pc
.warp(7050, 4650)
                elseif 
sds == 3 then
                    warpring
.dungeons()
                elseif 
sds == 4 then
                    
return
                
end
            
elseif dungeons == 3 then
                warpring
.main()
            elseif 
dungeons == 4 then
                
return
            
end
        end
        
function levelmaps()
            
say_title(item.get_name().." : Levelmaps")
            
local levelmaps = select("LevelMap - LvL 100","LevelMap - LvL 125","Zurück","Abbrechen")
            if 
levelmaps == 1 then
                pc
.warp(11264, 15104)
            elseif 
levelmaps == 2 then
                pc
.warp(11776, 16640)
            elseif 
levelmaps == 3 then
                warpring
.main()
            elseif 
levelmaps == 4 then
                
return
            
end
        end
        
function farmmaps()
            
say_title(item.get_name().." : Farmmaps")
            
local farmmaps = select("Farmmap - LvL 90","Farmmap - LvL 125","Zurück","Abbrechen")
            if 
farmmaps == 1 then
                pc
.warp(10496, 15104)
            elseif 
farmmaps == 2 then
                pc
.warp(10240, 16640)
            elseif 
farmmaps == 3 then
                warpring
.main()
            elseif 
farmmaps == 4 then
                
return
            
end
        end
        when 70007.
use begin
            warpring
.main()
        
end
    end
end 
So sollte es gehen :)
10/02/2013 14:19 TeRRoRSiZex3#9070
Quote:
Originally Posted by .н¢InyaProduction View Post
PHP Code:
quest warpring begin
    state start begin
        
function main()
            
say_title(item.get_name())
            
local art = select("Normale Maps", "Dungeons", "Levelmaps", "Farmmaps","Abbrechen")
            if 
art == 1 then
                warpring
.normmaps1()
            elseif 
art == 2 then
                warpring
.dungeons()
            elseif 
art == 3 then
                warpring
.levelmaps()
            elseif 
art == 4 then
                warpring
.farmmaps()
            else
                return
            
end
        end
        
function normmaps1()
            
say_title(item.get_name().." : Normale Maps")
            
local normmaps1 = select("Map 1","Map 2","Eisland","Weiter","Zurück")
            if 
normmaps1 == 1 then
                local warps 
= {
                    [
1] = 4639, 9642,        -- rotes reich [empire1]
                    [
2] = 557, 1579,        -- gelbes reich [empire2]
                    [
3] = 9696, 2784        -- blaues reich [empire3]
                }
                
pc.warp(warps[pc.get_empire()])
            elseif 
normmaps1 == 2 then
                local warps 
= {
                    [
1] = 3608, 8776,
                    [
2] = 1385, 2349,
                    [
3] = 8731, 2426
                
}
                
pc.warp(warps[pc.get_empire()])
            elseif 
normmaps1 == 3 then
                local warps 
= {
                    [
1] = 3752, 1749,
                    [
2] = 3752, 1749,
                    [
3] = 3752, 1749
                
}
                
pc.warp(warps[pc.get_empire()])
            elseif 
normmaps1 == 5 then
                warpring
.normmaps2()
            elseif 
normmaps1 == 6 then
                warpring
.main()
            
end
        end
        
function normmaps2()
            
say_title(item.get_name().." : Normale Maps")
            
local normmaps2 = select("SD2 Anfang","Schlangenfeld","SD1 - Bossspinne","Tempeleingang(Orktal)","Geisterwald","Weiter","Zurück")
            if 
normmaps2 == 1 then
                pc
.warp(7050, 4650)
            elseif 
normmaps2 == 2 then
                pc
.warp(8400, 7200)
            elseif 
normmaps2 == 3 then
                pc
.warp(850, 5250)
            elseif 
normmaps2 == 4 then
                pc
.warp(3330, 7450)
            elseif 
normmaps2 == 5 then
                pc
.warp(2887, 5700)
            elseif 
normmaps2 == 6 then
                warpring
.normmaps3()
            elseif 
normmaps2 == 7 then
                warpring
.normmaps1()
            
end
        end
        
function normmaps3()
            
say_title(item.get_name().." : Normale Maps")
            
local normmaps3 = select("Roter Wald,","Orktal","Große Wüste","Grotte der Verbannung 1(Anfang)","Weiter","Zurück")
            if 
normmaps3 == 1 then
                pc
.warp(1119900, 70800)
            elseif 
normmaps3 == 2 then
                pc
.warp(2704, 7399)
            elseif 
normmaps3 == 3 then
                pc
.warp(2219, 5027)
            elseif 
normmaps3 == 4 then
                pc
.warp(1459, 13236)
            elseif 
normmaps3 == 5 then
                warpring
.normmaps4()
            elseif 
normmaps3 == 6 then
                warpring
.normmaps2()
            
end
        end
        
function normmaps4()
            
say_title(item.get_name().." : Normale Maps")
            
local normmaps4 = select("Grotte der Verbannung 1(Setaou Kämpfer)","Drachenraum","The Devil's Catacomb","Weiter","Zurück")
            if 
normmaps4 == 1 then
                pc
.warp(1459, 13236)
            elseif 
normmaps4 == 2 then
                pc
.warp(1825, 12207)
            elseif 
normmaps4 == 3 then
                pc
.warp(5913, 993)
            elseif 
normmaps4 == 4 then
                warpring
.normmaps5()
            elseif 
normmaps4 == 5 then
                warpring
.normmaps3()
            
end
        end
        
function normmaps5()
            
say_title(item.get_name().." : Normale Maps")
            
local normmaps5 = select("Gildenmap(Gelb)","Gildenmap(Rot)","Gildenmap(Blau)","Zurück","Abbrechen")
            if 
normmaps5 == 1 then
                pc
.warp(2219, 93)
            elseif 
normmaps5 == 2 then
                pc
.warp(1356, 43)
            elseif 
normmaps5 == 3 then
                pc
.warp(2718, 130)    
            elseif 
normmaps5 == 4 then
                warpring
.normmaps4()
            elseif 
normmaps5 == 5 then
                
return
            
end
        end

        
function dungeons()
            
say_title(item.get_name().." : Dungeons")
            
local dungeons = select("Affendungeons","Spinnendungeons","Zurück","Abbrechen")
            if 
dungeons == 1 then
                local ads 
= select("Anfänger","Normal","Experte","Zurück","Abbrechen")
                if 
ads == 1 then
                    pc
.warp(7752, 4477)
                elseif 
ads == 2 then
                    pc
.warp(1532, 6532)
                elseif 
ads == 3 then
                    pc
.warp(1352, 7300)
                elseif 
ads == 4 then
                    warpring
.dungeons()
                elseif 
ads == 5 then
                    
return
                
end
            
elseif dungeons == 2 then
                local sds 
= select("Spinnendungeon 1(Boss Kammer)","Spinnendungeon 2(Anfang)","Zurück","Abbrechen")
                if 
sds == 1 then
                    pc
.warp(917, 5253)
                elseif 
sds == 2 then
                    pc
.warp(7050, 4650)
                elseif 
sds == 3 then
                    warpring
.dungeons()
                elseif 
sds == 4 then
                    
return
                
end
            
elseif dungeons == 3 then
                warpring
.main()
            elseif 
dungeons == 4 then
                
return
            
end
        end
        
function levelmaps()
            
say_title(item.get_name().." : Levelmaps")
            
local levelmaps = select("LevelMap - LvL 100","LevelMap - LvL 125","Zurück","Abbrechen")
            if 
levelmaps == 1 then
                pc
.warp(11264, 15104)
            elseif 
levelmaps == 2 then
                pc
.warp(11776, 16640)
            elseif 
levelmaps == 3 then
                warpring
.main()
            elseif 
levelmaps == 4 then
                
return
            
end
        end
        
function farmmaps()
            
say_title(item.get_name().." : Farmmaps")
            
local farmmaps = select("Farmmap - LvL 90","Farmmap - LvL 125","Zurück","Abbrechen")
            if 
farmmaps == 1 then
                pc
.warp(10496, 15104)
            elseif 
farmmaps == 2 then
                pc
.warp(10240, 16640)
            elseif 
farmmaps == 3 then
                warpring
.main()
            elseif 
farmmaps == 4 then
                
return
            
end
        end
        when 70007.
use begin
            warpring
.main()
        
end
    end
end 
So sollte es gehen :)
Jup geht Danke ;)
10/02/2013 18:25 .Inya#9071
Quote:
Originally Posted by TeRRoRSiZex3 View Post
Jup geht Danke ;)
Deine Fehlermeldung bedeutet: es fehlen "then" in einer if Abfrage :)
10/04/2013 01:01 TeRRoRSiZex3#9072
Ich meld mich nochmal =)

PHP Code:
quest verlassen begin 
    state start begin 
        when login 
or levelup with pc.get_level() == 15 begin    
                say_title
("Level 15 Erreicht!")  
                
say("")
                
say("Wie ich sehe hast du schon Level 15 Erreicht")
                
say("Es wird zeit dich von dieser Map weg zu Telepotieren")
                
say("")
                
say("")
                
say("")
                
say_title("Möchtest du die Geheime Map Verlassen?") 
                
say("") 
                
local a = select("Ok")
                if 
a == 1 then
                local warps 
= {
                    [
1] = 4639, 9642,        -- rotes reich [empire1]
                    [
2] = 557, 1579,        -- gelbes reich [empire2]
                    [
3] = 9696, 2784        -- blaues reich [empire3]
                } 
                
end 
                end 
            end 
        end 
    end
end 
must start with 'quest'
verlassen.quest:24:Error occured on compile verlassen.quest
10/04/2013 01:47 PeloQ#9073
@TeRRoRSiZex3

10/04/2013 14:45 Mijago#9074
Quote:
Originally Posted by PeloQ View Post
@TeRRoRSiZex3

Benutze when letter statt login, wenn du say ausgibst. :)
10/04/2013 16:54 TeRRoRSiZex3#9075
Quote:
Originally Posted by Mijago View Post
Benutze when letter statt login, wenn du say ausgibst. :)

Joa hab ich gemacht aber er Portet mich nich zu den verschiedenen Reichen o.O

PHP Code:
quest verlassen begin 
    state start begin 
        when letter 
or levelup with pc.get_level() == 15 and pc.getqf("port") <= 0 begin    
                say_title
("Level 15 Erreicht!")  
                
say("")
                
say("Wie ich sehe hast du schon Level 15 Erreicht")
                
say("Es wird zeit dich von dieser Map weg zu Telepotieren")
                
say("")
                
say("")
                
say("")
                
say_title("Möchtest du die Geheime Map Verlassen?") 
                
say("") 
            
pc.setqf("port", 2)
                
local a = select("Ok")
            if 
a == 1 and pc.get_empire() == 1 then
                pc
.warp(463900, 964200)
            elseif 
a == 1 and pc.get_empire() == 2 then
                pc
.warp(55700, 157900)
            elseif 
a == 1 and pc.get_empire() == 3 then    
                pc
.warp(969600, 278400)
            
end 
        end 
    end
end