Where is The Problem in the quest

07/20/2014 03:44 Mr.Programmer#1
Hello Guys , i made a new quest

when u give 33002 100pics npc old man :D he will give u
a box 50082

Where is the quest error !

when i install the quest

Code:
STATE : start
WHEN  : 33002.chat ("  ▒▒▒▒▒▒ ▒▒▒▒▒  ")
catquest.quest:30:assertion failure : nested==0
Abort (core dumped)

Code:
-------------------------------
---CaT Quest---
-------------------------------  
quest catquest begin
    state start begin     
        when 33002.chat."  CaT QUEST  " begin
            if pc.count_item(50711, 100) >= 1 then 
                say_title(" old man ")
                    say(" Stop ! ")
                say(" Do u collect 100piece ")
                say_reward("U must have 100piece")
                say_reward(" Do want to know what i talk about !")
                say(" This thing ")
                                say("")
                                say_item_vnum(50711)
		say(" Ok , So u collect 100piece ")
		say(" I will give u 2 boxs ")
		pc.give_item2(50082, 2) 
                pc.remove_item("50711", 100)
            elseif pc.count_item(50711, 99) < 2 then
                say_title(" oldman ")
                    say(" stop stop ! ")
                say(" do u collect 100piece ؟ ")
                say_reward(" you must have 100piece ")
                elseif dc_login == 2 then
                    return
                end
            end

Where is the problem :rtfm:!!!

Sorry 4 My Bad English :(
07/20/2014 10:30 Jinbei#2
-> [Only registered and activated users can see links. Click Here To Register...]

PHP Code:
-------------------------------
---
CaT Quest---
-------------------------------  
quest catquest begin
    state start begin     
        when 33002.chat
.("CaT QUEST"begin
            
if pc.count_item(50711100) >= 1 then 
                say_title
(" old man ")
                    
say(" Stop ! ")
                
say(" Do u collect 100piece ")
                
say_reward("U must have 100piece")
                
say_reward(" Do want to know what i talk about !")
                
say(" This thing ")
                                
say("")
                                
say_item_vnum(50711)
        
say(" Ok , So u collect 100piece ")
        
say(" I will give u 2 boxs ")
        
pc.give_item2(500822
                
pc.remove_item("50711"100)
            elseif 
pc.count_item(5071199) < 2 then
                say_title
(" oldman ")
                    
say(" stop stop ! ")
                
say(" do u collect 100piece ؟ ")
                
say_reward(" you must have 100piece ")
                elseif 
dc_login == 2 then
                
return
            
end
        end
    end
end 
Maybe?...
07/20/2014 10:36 rollback#3
try this
PHP Code:
-------------------------------
---
CaT Quest---
-------------------------------  
quest catquest begin
    state start begin     
        when 33002.chat
."CaT QUEST" begin
            
if pc.count_item(50711) >= 100 then 
                say_title
("old man")
                
say("Stop!")
                
say("Do u collect 100piece ")
                
say_reward("U must have 100piece")
                
say_reward("Do want to know what i talk about !")
                
say(" This thing ")
                
say("")
                
say_item_vnum(50711)
                
say("Ok , So u collect 100piece")
                
say("I will give u 2 boxs")
                
local s select("Trade""Bye")
                if 
== 1 then
                    pc
.give_item2(500822)
                    
pc.remove_item("50711"100)
                
end
                
if == 2 then
                    
return
                
end
            end
            
elseif pc.count_item(50711) < 99 then
                say_title
("oldman")
                
say("stop stop!")
                
say("do u collect 100piece؟")
                
say_reward("you must have 100piece")
                return
            
end
        end
    end
end 
PS:
use the sticky thread "Die Questkontrolle" next time