[HELP] Quest Problem

09/05/2012 17:38 blurgh#1
-German-
Die Suche ist etwa 20091 geben die hwang Rüstungen für den Spieler, wenn sie die erforderlichen Materialien

Ich habe meine eigene Suche, aber wenn i Eingang in die Server und starten Sie ihn neu i mir eine Behauptung Fehler. Könnte jemand in der Quest schauen und mir sagen, was ich falsch gemacht haben?

Bitte

-English-
The quest is about 20091 giving the hwang armor to the player if they have the required materials.

I created my own quest, however when i input it into the server and reboot it i gives me a assertion error. Could anyone look into the quest and tell me what I have done wrong?

Please



09/05/2012 20:01 heckii123#2
php please :/
09/06/2012 00:55 blurgh#3
ok its in PHP.
09/07/2012 01:42 blurgh#4
bump can anyone help plz?
09/07/2012 01:49 ๖ۣۜιɴѕαɴιтyツ#5
Hello blurgh,
please share the exact error code with us.


PHP Code:
quest king_armor begin
    state start begin
        when 20091.chat
."Tyrax" begin
            say_title
("Request a King Armor")
            
say("Hello "..pc.get_name())
            
say("So you want the legendary")
            
say("Royal armors do ya?!")
            
say("very well, I'll tell you what")
            
say("you get me the required materials")
            
say("which are:")
            
say("50")
            
say_item_vnum(25040)
            
say("10")
            
say_item_vnum(70031)
            
say("25")
            
say_item_vnum(90004)
            
say("only then I'll award you with a Royal Armor")
            if 
pc.count_item("25040") <=0 then
                say
("Please go get 50 Blessing Scrolls")
                
say("Then I'll give you the Royal Armor.")
                return
       
            elseif 
pc.count_item("70031") <=0 then
                say
("Please go get 10 Counterattack Strategy")
                
say("Then I'll give you the Royal Armor.")
                return

            elseif 
pc.count_item("90004") <=0 then
                say
("Please go get 25 Water Gems")
                
say("Then I'll give you the Royal Armor.")
                return
            
end
            wait
()
            
say("Would you like a Royal Armor?")
            
local s select("Yes""No")
            if 
== 2 then
                say_title
("Tyrax")
                
say("Then please go away.")
            elseif 
== and pc.count_item(25040) >= 50 and pc.count_item(70031) >= 10 and pc.count_item(90004) >= 25 then
                pc
.remove_item("25040"50)
                
pc.remove_item("70031"10)
                
pc.remove_item("90004"25)
                if 
pc.get_job() == 1 then
                pc
.give_item("11971"1)
                elseif 
pc.get_job() == 1 then
                pc
.give_item("11972"1)
                elseif 
pc.get_job() == 2 then                
                pc
.give_item("11973"1)
                elseif 
pc.get_job() == 3 then
                pc
.give_item("11974"1)
                
end
                say_title
("Tyrax")
                
say("Oh, thank you! Here is your Royal Armor.")   
            
end
        end
    end
end 
Try it like this, I'm not sure of the pc.get_job() but the rest should work.
09/10/2012 12:11 blurgh#6
Quote:
Originally Posted by ๖ۣۜιɴѕαɴιтyツ View Post
Hello blurgh,
please share the exact error code with us.


PHP Code:
quest king_armor begin
    state start begin
        when 20091.chat
."Tyrax" begin
            say_title
("Request a King Armor")
            
say("Hello "..pc.get_name())
            
say("So you want the legendary")
            
say("Royal armors do ya?!")
            
say("very well, I'll tell you what")
            
say("you get me the required materials")
            
say("which are:")
            
say("50")
            
say_item_vnum(25040)
            
say("10")
            
say_item_vnum(70031)
            
say("25")
            
say_item_vnum(90004)
            
say("only then I'll award you with a Royal Armor")
            if 
pc.count_item("25040") <=0 then
                say
("Please go get 50 Blessing Scrolls")
                
say("Then I'll give you the Royal Armor.")
                return
       
            elseif 
pc.count_item("70031") <=0 then
                say
("Please go get 10 Counterattack Strategy")
                
say("Then I'll give you the Royal Armor.")
                return

            elseif 
pc.count_item("90004") <=0 then
                say
("Please go get 25 Water Gems")
                
say("Then I'll give you the Royal Armor.")
                return
            
end
            wait
()
            
say("Would you like a Royal Armor?")
            
local s select("Yes""No")
            if 
== 2 then
                say_title
("Tyrax")
                
say("Then please go away.")
            elseif 
== and pc.count_item(25040) >= 50 and pc.count_item(70031) >= 10 and pc.count_item(90004) >= 25 then
                pc
.remove_item("25040"50)
                
pc.remove_item("70031"10)
                
pc.remove_item("90004"25)
                if 
pc.get_job() == 1 then
                pc
.give_item("11971"1)
                elseif 
pc.get_job() == 1 then
                pc
.give_item("11972"1)
                elseif 
pc.get_job() == 2 then                
                pc
.give_item("11973"1)
                elseif 
pc.get_job() == 3 then
                pc
.give_item("11974"1)
                
end
                say_title
("Tyrax")
                
say("Oh, thank you! Here is your Royal Armor.")   
            
end
        end
    end
end 
Try it like this, I'm not sure of the pc.get_job() but the rest should work.
the quest doesnt work, it takes the item but it doesnt give me the armor that i needed :(