[SERVICE] Die Questkontrolle

05/05/2011 13:22 xTheSoulutionxx3#2236
ja hab ich
05/05/2011 13:31 xTheSoulutionxx3#2237
hab s hingekriegt aber die zwiete quest wieso funkz die nicht hatte bei osterei typ 5 statt 6
und wie kann ich das machen das mann auch die andern droppt
05/05/2011 18:14 marcelo199531#2238
Guten Tag .
Ich brauche ne Startereq Quest .
Also mann bekommt lvl 75 alle Pskills lvl 54 eq ss+9 und ssp+9 und 1kkk Yang .
Könnt ihr die vllt schreiben ?
05/05/2011 18:16 .Delta#2239
Quest-Kontrolle
;)
05/05/2011 18:41 marcelo199531#2240
Quote:
Originally Posted by .Delta View Post
Quest-Kontrolle
;)
Ach komm schon Delta .
05/05/2011 18:45 √π.#2241
Schau dir Quests ein paar Seiten weiter hinten an, da wirst du schon was draus basteln können was deine Erwartungen erfüllt.
05/05/2011 19:44 xTheSoulutionxx3#2242
was ist da denn falsch bei kontroll programm steht wehn end fehl



PHP Code:
quest ostern begin
    state start begin
        when 30129.chat
."Osterei-Tausch" begin
        
            say
("Oh Hallo! Frohe Ostern!")
            
say("...")
            
say("Wie ich sehe möchtest du was bei mir eintauschen?")
            
say("Ich brauche unbedingt Ostereier die ich bei den Kindern")
            
say("verstecken kann!")
            
wait()
                 if 
1>=r then
                        
if pc.count_item(50168)>5 then
                
elseif 2>=r then
                        
if pc.count_item(50169)>5 then
                
elseif 3>=r then
                        
if pc.count_item(50170)>5 then
                
elseif 4>=r then
                        
if pc.count_item(50171)>5 then
                
elseif 5>=r then
                        
if pc.count_item(50172)>5 then
                
elseif 6>=r then
                        
if pc.count_item(50173)>5 then
                
elseif 7>=r then
                        
if pc.count_item(50174)>5 then
                
elseif 8>=r then
                        
if pc.count_item(50175)>5 then
                
elseif 9>=r then
                        
if pc.count_item(50176)>5 then
                
elseif 10>=r then
                        
if pc.count_item(50177)>5 then
                
elseif 11>=r then
                        
if pc.count_item(50178)>5 then
                
elseif 12>=r then
                        
if pc.count_item(50179)>5 then
                say
("Ok dann wollen wir mal...")
                
say(".....")
                
wait()
                
say("Danke für diese 5 Eier!")
                
say("Ich habe dir nun 1 wertvolles Items gegeben..")
                
say("Ich hoffe du kannst es gebrauchen!")
                         if 
1>=r then
                pc
.removeitem("50168"5)
                elseif 
2>=r then
                                pc
.removeitem("50169"5)
                elseif 
3>=r then
                                pc
.removeitem("50170"5)
                elseif 
4>=r then
                                pc
.removeitem("50171"5)
                elseif 
5>=r then
                                pc
.removeitem("50172"5)
                elseif 
6>=r then
                                pc
.removeitem("50173"5)
                elseif 
7>=r then
                                pc
.removeitem("50174"5)
                elseif 
8>=r then
                                pc
.removeitem("50175"5)
                elseif 
9>=r then
                                pc
.removeitem("50176"5)
                elseif 
10>=r then
                                pc
.removeitem("50177"5)
                elseif 
11>=r then
                                pc
.removeitem("50178"5)
                elseif 
12>=r then
                                pc
.removeitem("50179"5)
                
local r=number(190)
                    if 
1>=r then
                        pc
.give_item2("71107"1)
                    elseif 
2>=r then
                        pc
.give_item2("71107"1)
                    elseif 
3>=r then
                        pc
.give_item2("71107"1)
                    elseif 
4>=r then
                        pc
.give_item2("71107"1)
                    elseif 
5>=r then
                        pc
.give_item2("71107"1)
                    elseif 
6>=r then
                        pc
.give_item2("71107"1)
                    elseif 
7>=r then
                        pc
.give_item2("71107"1)
                    elseif 
8>=r then
                        pc
.give_item2("71107"1)
                    elseif 
9>=r then
                        pc
.give_item2("71107"1)
                    elseif 
10>=r then
                        pc
.give_item2("71107"1)
                    elseif 
11>=r then
                        pc
.give_item2("71107"1)
                    elseif 
12>=r then
                        pc
.give_item2("71107"1)
                    elseif 
13>=r then
                        pc
.give_item2("71107"1)
                    elseif 
14>=r then
                        pc
.give_item2("71107"1)
                    elseif 
15>=r then
                        pc
.give_item2("71107"1)
                    elseif 
16>=r then
                        pc
.give_item2("71107"1)
                    elseif 
17>=r then
                        pc
.give_item2("71107"1)
                    elseif 
18>=r then
                        pc
.give_item2("71107"1)
                    elseif 
19>=r then
                        pc
.give_item2("71107"2)
                    elseif 
20>=r then
                        pc
.give_item2("30231"2)
                    elseif 
21>=r then
                        pc
.give_item2("9991"1)
                    elseif 
22>=r then
                        pc
.give_item2("9991"1)
                    elseif 
23>=r then
                        pc
.give_item2("90032"5)
                    elseif 
24>=r then
                        pc
.give_item2("90032"5)
                    elseif 
25>=r then
                        pc
.give_item2("90032"5)
                    elseif 
26>=r then
                        pc
.give_item2("71020"1)
                    elseif 
27>=r then
                        pc
.give_item2("71020"5)
                    elseif 
28>=r then
                        pc
.give_item2("71020"1)
                    elseif 
29>=r then
                        pc
.give_item2("71020"1)
                    elseif 
30>=r then
                        mob
.spawn(1093,pc.get_local_x(),pc.get_local_y(),1)
                        
notice_all("".. pc.get_name() .." Ein Sensenmann ist durch den Oster-Hase gespawnt!")
                    elseif 
31>=r then
                        pc
.give_item2("25041"1)
                    elseif 
32>=r then
                        pc
.give_item2("25041"1)
                    elseif 
33>=r then
                        pc
.give_item2("71032"1)
                    elseif 
34>=r then
                        pc
.give_item2("71032"1)
                    elseif 
35>=r then
                        pc
.give_gold("2000000")
                    elseif 
36>=r then
                        pc
.give_gold("2000000")
                    elseif 
37>=r then
                        pc
.give_item2("50168"1)
                        
chat("Der Oster-Hase hat dir ein Osterei zurück gegeben!")
                    elseif 
38>=r then
                        pc
.give_item2("50168"1)
                        
chat("Der Oster-Hase hat dir ein Osterei zurück gegeben!")
                    elseif 
39>=r then
                        pc
.give_item2("50168"1)
                        
chat("Der Oster-Hase hat dir ein Osterei zurück gegeben!")
                    
                    
end
            
else

                
say_red("Du hast keine 5 Eier!")
                
say_red("Versuch mich nicht zu betrügen.")
            
end    
        end    
        
        
    end    
end 
05/06/2011 21:01 amnesi#2243
PHP Code:
quest boar begin
    state start begin
        when 71114.
use begin
            
if pc.get_level() >= 75 then
                chat
("Du hast nun für 30min einen Keiler als Reittier!")
                
affect.remove_collect() 
                
pc.mount(201101800)
                
affect.add_collect(apply.DEF_GRADE_BONUS,75,1800)
                
pc.removeitem(711141)
            else
                
chat("Du bist noch zu jung!Versuch es mit lvl 75 wieder!")
            
end
        end
    end
end 
es funzt alles prima doch wenn ich einfach noch ein siegel erstelle und es einsetze bekomme ich wieder +75 deff >.<
eig. sollte ja durch affect.remove_collect() der vorherige Deff Bonus
neutralisiert werden nur i. wie will das nich so richtig :(
hoffe ihr könnt mir helfen :D
05/06/2011 21:41 Roterfalke#2244
Hi Com,

Ich wollte mir die DRachenburg einfügen nur kommt ein core dumped fehler:

Hier die quest datei:
PHP Code:
quest drachenring begin
    state start begin
        when 77786.
use with pc.get_level() >= 10 begin
        say_title
("Drachenring:")
            
say("Möchtest du in die Drachneburg?")

            
local main_set select("Ja","Nein")
            if 
main_set == 2 then
                
return
            
end
            
            
if pc.get_level() <= 110 then
                say_title
("Drachenring:")
                
say("Hm… Mit deinem derzeitigen Level bist du noch")
                
say("zu schwach um die Drachenburg zu betreten.")
                
say("Komm wieder, wenn du Level 110 oder höher bist.")
                return
            
end
            
            local newmap 
select("Drachenburg""Abbrechen")
            if 
newmap == 1 then
                pc
.warp(5544400,4455500)
            
end
            
else
                return
        
end
    end
end 
.Delta hoffe du hifst mir und meinen Vorposter =)
05/06/2011 21:44 .Scy#2245
PHP Code:
quest drachenring begin
    state start begin
        when 77786.
use with pc.get_level() >= 10 begin
            say_title
("Drachenring:")
            
say("Möchtest du in die Drachneburg?")

            
local main_set select("Ja","Nein")
            if 
main_set == 2 then
                
return
            
            elseif 
pc.get_level() <= 110 then
                say_title
("Drachenring:")
                
say("Hm… Mit deinem derzeitigen Level bist du noch")
                
say("zu schwach um die Drachenburg zu betreten.")
                
say("Komm wieder, wenn du Level 110 oder höher bist.")
            
                
local newmap select("Drachenburg""Abbrechen")
                if 
newmap == 1 then
                    pc
.warp(5544400,4455500)
                else
                    return
                
end
            end
        end
    end
end 
sollte so funzen.

Quote:
Originally Posted by amnesi View Post
PHP Code:
quest boar begin
    state start begin
        when 71114.
use begin
            
if pc.get_level() >= 75 then
                chat
("Du hast nun für 30min einen Keiler als Reittier!")
                
affect.remove_collect() 
                
pc.mount(201101800)
                
affect.add_collect(apply.DEF_GRADE_BONUS,75,1800)
                
pc.removeitem(711141)
            else
                
chat("Du bist noch zu jung!Versuch es mit lvl 75 wieder!")
            
end
        end
    end
end 
es funzt alles prima doch wenn ich einfach noch ein siegel erstelle und es einsetze bekomme ich wieder +75 deff >.<
eig. sollte ja durch affect.remove_collect() der vorherige Deff Bonus
neutralisiert werden nur i. wie will das nich so richtig :(
hoffe ihr könnt mir helfen :D
was is nun dein problem?
05/06/2011 21:49 .Delta#2246
probiers so, weiß net ob das jetzt mit deinem sinngemäß übereinstimt ;) musste vermuten was du haben willst.

@ amnesi:
ich hab das damals so gelöst, dass beim aufsetzen eine qf gesetzt wird, und das item bei Benutzung mit der qf die bonis entfernt hat, ka ob du das so willst.
ka ob du das so haben willst ...
05/06/2011 21:53 Roterfalke#2247
Thx Delta und scy (habe die jetzt nur von Delta aber gehe davon aus das deine auch funktioniert scy).

Auf jedenfall funktioniert es Danke
05/06/2011 21:54 .Scy#2248
Quote:
Originally Posted by Roterfalke View Post
Thx Delta und scy (habe die jetzt nur von Delta aber gehe davon aus das deine auch funktioniert scy).

Auf jedenfall funktioniert es Danke
naja bei delta is halt nur das local anders^^
ich finds so wie ichs mit dem local hab besser bzw. übersichtlicher
05/06/2011 22:04 .Delta#2249
naja ich glaube ich würde eher bei dir durcheinander kommen, weil du elseif auf eine andere bedingung als das if beziehst :)
05/06/2011 22:09 xTheSoulutionxx3#2250
was ist hier falsch?





PHP Code:
quest ostern begin
    state start begin
        when 30129.chat
."Osterei-Tausch" begin
        
            say
("Oh Hallo! Frohe Ostern!")
            
say("...")
            
say("Wie ich sehe möchtest du was bei mir eintauschen?")
            
say("Ich brauche unbedingt Ostereier die ich bei den Kindern")
            
say("verstecken kann!")
            
wait()
                 if 
1>=r then
                        
if pc.count_item(50168)>5 then
                
elseif 2>=r then
                        
if pc.count_item(50169)>5 then
                
elseif 3>=r then
                        
if pc.count_item(50170)>5 then
                
elseif 4>=r then
                        
if pc.count_item(50171)>5 then
                
elseif 5>=r then
                        
if pc.count_item(50172)>5 then
                
elseif 6>=r then
                        
if pc.count_item(50173)>5 then
                
elseif 7>=r then
                        
if pc.count_item(50174)>5 then
                
elseif 8>=r then
                        
if pc.count_item(50175)>5 then
                
elseif 9>=r then
                        
if pc.count_item(50176)>5 then
                
elseif 10>=r then
                        
if pc.count_item(50177)>5 then
                
elseif 11>=r then
                        
if pc.count_item(50178)>5 then
                
elseif 12>=r then
                        
if pc.count_item(50179)>5 then
                    
                end    
            end
        end            
                say
("Ok dann wollen wir mal...")
                
say(".....")
                
wait()
                
say("Danke für diese 5 Eier!")
                
say("Ich habe dir nun 1 wertvolles Items gegeben..")
                
say("Ich hoffe du kannst es gebrauchen!")
                         if 
1>=r then
                      pc
.removeitem("50168"5)
                        elseif 
2>=r then
                                pc
.removeitem("50169"5)
                        elseif 
3>=r then
                                pc
.removeitem("50170"5)
                        elseif 
4>=r then
                                pc
.removeitem("50171"5)
                        elseif 
5>=r then
                                pc
.removeitem("50172"5)
                        elseif 
6>=r then
                                pc
.removeitem("50173"5)
                       elseif 
7>=r then
                                pc
.removeitem("50174"5)
                        elseif 
8>=r then
                                pc
.removeitem("50175"5)
                        elseif 
9>=r then
                                pc
.removeitem("50176"5)
                        elseif 
10>=r then
                                pc
.removeitem("50177"5)
                        elseif 
11>=r then
                                pc
.removeitem("50178"5)
                        elseif 
12>=r then
                                pc
.removeitem("50179"5)
                    
                
end    
            end
        end            
                local r
=number(190)
                    if 
1>=r then
                        pc
.give_item2("71107"1)
                    elseif 
2>=r then
                        pc
.give_item2("71107"1)
                    elseif 
3>=r then
                        pc
.give_item2("71107"1)
                    elseif 
4>=r then
                        pc
.give_item2("71107"1)
                    elseif 
5>=r then
                        pc
.give_item2("71107"1)
                    elseif 
6>=r then
                        pc
.give_item2("71107"1)
                    elseif 
7>=r then
                        pc
.give_item2("71107"1)
                    elseif 
8>=r then
                        pc
.give_item2("71107"1)
                    elseif 
9>=r then
                        pc
.give_item2("71107"1)
                    elseif 
10>=r then
                        pc
.give_item2("71107"1)
                    elseif 
11>=r then
                        pc
.give_item2("71107"1)
                    elseif 
12>=r then
                        pc
.give_item2("71107"1)
                    elseif 
13>=r then
                        pc
.give_item2("71107"1)
                    elseif 
14>=r then
                        pc
.give_item2("71107"1)
                    elseif 
15>=r then
                        pc
.give_item2("71107"1)
                    elseif 
16>=r then
                        pc
.give_item2("71107"1)
                    elseif 
17>=r then
                        pc
.give_item2("71107"1)
                    elseif 
18>=r then
                        pc
.give_item2("71107"1)
                    elseif 
19>=r then
                        pc
.give_item2("71107"2)
                    elseif 
20>=r then
                        pc
.give_item2("30231"2)
                    elseif 
21>=r then
                        pc
.give_item2("71085"1)
                    elseif 
22>=r then
                        pc
.give_item2("71084"1)
                    elseif 
23>=r then
                        pc
.give_item2("90032"5)
                    elseif 
24>=r then
                        pc
.give_item2("90032"5)
                    elseif 
25>=r then
                        pc
.give_item2("90032"5)
                    elseif 
26>=r then
                        pc
.give_item2("71020"1)
                    elseif 
27>=r then
                        pc
.give_item2("71020"5)
                    elseif 
28>=r then
                        pc
.give_item2("71020"1)
                    elseif 
29>=r then
                        pc
.give_item2("71020"1)
                    elseif 
30>=r then
                        mob
.spawn(1093,pc.get_local_x(),pc.get_local_y(),1)
                        
notice_all("".. pc.get_name() .." Ein Sensenmann ist durch den Oster-Hase gespawnt!")
                    elseif 
31>=r then
                        pc
.give_item2("25041"1)
                    elseif 
32>=r then
                        pc
.give_item2("25041"1)
                    elseif 
33>=r then
                        pc
.give_item2("71032"1)
                    elseif 
34>=r then
                        pc
.give_item2("71032"1)
                    elseif 
35>=r then
                        pc
.give_gold("2000000")
                    elseif 
36>=r then
                        pc
.give_gold("2000000")
                    elseif 
37>=r then
                        pc
.give_item2("50168"1)
                        
chat("Der Oster-Hase hat dir ein Osterei zurück gegeben!")
                    elseif 
38>=r then
                        pc
.give_item2("50168"1)
                        
chat("Der Oster-Hase hat dir ein Osterei zurück gegeben!")
                    elseif 
39>=r then
                        pc
.give_item2("50168"1)
                        
chat("Der Oster-Hase hat dir ein Osterei zurück gegeben!")
                    
                    
end
            
else

                
say("Du hast keine 5 Eier!")
                
say("Versuch mich nicht zu betrügen.")
            
end    
        end    
        
        
    end    
end