Was stimmt mit der Quest nicht?

11/19/2012 20:49 DerZynx#1
Hallo,

Was stimmt an dieser Quest nicht?

Code:
quest mb begin
	state start begin
	when 20320.chat."MB Shop" begin  
	     npc.open_shop(6660) 
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")
	end
	when 20321.chat."MB Shop" begin
	     npc.open_shop(6661)
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")
	end
	when 20322.chat."MB Shop" begin
	     npc.open_shop(6662)
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen") 
	end
	when 20323.chat."MB Shop" begin
	     npc.open_shop(6663)
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")
	end
	when 20324.chat."MB Shop" begin
	     npc.open_shop(6664)
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20325.chat."MB Shop" begin   
	     npc.open_shop(6665)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20326.chat."MB Shop" begin   
	     npc.open_shop(6666)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20327.chat."MB Shop" begin   
	     npc.open_shop(6667)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20300.chat."MB Shop" begin   
	     npc.open_shop(6660)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20301.chat."MB Shop" begin   
	     npc.open_shop(6661)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20302.chat."MB Shop" begin   
	     npc.open_shop(6662)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20303.chat."MB Shop" begin   
	     npc.open_shop(6663)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20304.chat."MB Shop" begin   
	     npc.open_shop(6664)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20305.chat."MB Shop" begin   
	     npc.open_shop(6665)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20306.chat."MB Shop" begin   
	     npc.open_shop(6666)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20307.chat."MB Shop" begin   
	     npc.open_shop(6667)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20340.chat."MB Shop" begin   
	     npc.open_shop(6660)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20341.chat."MB Shop" begin   
	     npc.open_shop(6661)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	when 20342.chat."MB Shop" begin   
	     npc.open_shop(6662)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20343.chat."MB Shop" begin   
	     npc.open_shop(6663)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20344.chat."MB Shop" begin   
	     npc.open_shop(6664)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20345.chat."MB Shop" begin   
	     npc.open_shop(6665)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end	say("Viel Spaß beim Shoppen")			 
	when 20346.chat."MB Shop" begin   
	     npc.open_shop(6666)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20347.chat."MB Shop" begin   
	     npc.open_shop(6667)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
end
Der Fehler:

Code:
syntax error : [string "start"]:4: unexpected symbol near `when'
mb.quest:122:Error occured on compile mb.quest
MfG
Zynex
11/19/2012 21:05 Syuki#2
Bitte halte dich an den dazugehörigen Sammelthread:
[Only registered and activated users can see links. Click Here To Register...]

#Ps ich glaube dir fehlt ein end
11/19/2012 21:12 XxKinGG1xX#3
Ja dir fehlt ein end für "state"
11/19/2012 21:13 lfcmaus#4
fehlt da nicht nen end für den state xD?
11/19/2012 21:24 DerZynx#5
Immernoch der gleiche Fehler...

Quest nun:

Code:
quest mb begin
	state start begin
	when 20320.chat."MB Shop" begin  
	     npc.open_shop(6660) 
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")
	end
	when 20321.chat."MB Shop" begin
	     npc.open_shop(6661)
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")
	end
	when 20322.chat."MB Shop" begin
	     npc.open_shop(6662)
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen") 
	end
	when 20323.chat."MB Shop" begin
	     npc.open_shop(6663)
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")
	end
	when 20324.chat."MB Shop" begin
	     npc.open_shop(6664)
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20325.chat."MB Shop" begin   
	     npc.open_shop(6665)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20326.chat."MB Shop" begin   
	     npc.open_shop(6666)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20327.chat."MB Shop" begin   
	     npc.open_shop(6667)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20300.chat."MB Shop" begin   
	     npc.open_shop(6660)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20301.chat."MB Shop" begin   
	     npc.open_shop(6661)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20302.chat."MB Shop" begin   
	     npc.open_shop(6662)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20303.chat."MB Shop" begin   
	     npc.open_shop(6663)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20304.chat."MB Shop" begin   
	     npc.open_shop(6664)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20305.chat."MB Shop" begin   
	     npc.open_shop(6665)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20306.chat."MB Shop" begin   
	     npc.open_shop(6666)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20307.chat."MB Shop" begin   
	     npc.open_shop(6667)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20340.chat."MB Shop" begin   
	     npc.open_shop(6660)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20341.chat."MB Shop" begin   
	     npc.open_shop(6661)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	when 20342.chat."MB Shop" begin   
	     npc.open_shop(6662)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20343.chat."MB Shop" begin   
	     npc.open_shop(6663)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20344.chat."MB Shop" begin   
	     npc.open_shop(6664)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20345.chat."MB Shop" begin   
	     npc.open_shop(6665)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end	say("Viel Spaß beim Shoppen")			 
	when 20346.chat."MB Shop" begin   
	     npc.open_shop(6666)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
	end
	when 20347.chat."MB Shop" begin   
	     npc.open_shop(6667)    
		    say("Hier findest du die passenden MB's")
			say("Viel Spaß beim Shoppen")			 
		end
	end
end
11/19/2012 21:25 .Buttercup™#6
PHP Code:
quest mb begin
    state start begin
    when 20320.chat
."MB Shop" begin  
         npc
.open_shop(6660
            
say("Hier findest du die passenden MB's")
            
say("Viel Spaß beim Shoppen")
    
end
    when 20321.chat
."MB Shop" begin
         npc
.open_shop(6661)
            
say("Hier findest du die passenden MB's")
            
say("Viel Spaß beim Shoppen")
    
end
    when 20322.chat
."MB Shop" begin
         npc
.open_shop(6662)
            
say("Hier findest du die passenden MB's")
            
say("Viel Spaß beim Shoppen"
    
end
    when 20323.chat
."MB Shop" begin
         npc
.open_shop(6663)
            
say("Hier findest du die passenden MB's")
            
say("Viel Spaß beim Shoppen")
    
end
    when 20324.chat
."MB Shop" begin
         npc
.open_shop(6664)
            
say("Hier findest du die passenden MB's")
            
say("Viel Spaß beim Shoppen")             
    
end
    when 20325.chat
."MB Shop" begin   
         npc
.open_shop(6665)    
            
say("Hier findest du die passenden MB's")
            
say("Viel Spaß beim Shoppen")             
    
end
    when 20326.chat
."MB Shop" begin   
         npc
.open_shop(6666)    
            
say("Hier findest du die passenden MB's")
            
say("Viel Spaß beim Shoppen")             
    
end
    when 20327.chat
."MB Shop" begin   
         npc
.open_shop(6667)    
            
say("Hier findest du die passenden MB's")
            
say("Viel Spaß beim Shoppen")             
    
end
    when 20300.chat
."MB Shop" begin   
         npc
.open_shop(6660)    
            
say("Hier findest du die passenden MB's")
            
say("Viel Spaß beim Shoppen")             
    
end
    when 20301.chat
."MB Shop" begin   
         npc
.open_shop(6661)    
            
say("Hier findest du die passenden MB's")
            
say("Viel Spaß beim Shoppen")             
    
end
    when 20302.chat
."MB Shop" begin   
         npc
.open_shop(6662)    
            
say("Hier findest du die passenden MB's")
            
say("Viel Spaß beim Shoppen")             
    
end
    when 20303.chat
."MB Shop" begin   
         npc
.open_shop(6663)    
            
say("Hier findest du die passenden MB's")
            
say("Viel Spaß beim Shoppen")             
    
end
    when 20304.chat
."MB Shop" begin   
         npc
.open_shop(6664)    
            
say("Hier findest du die passenden MB's")
            
say("Viel Spaß beim Shoppen")             
    
end
    when 20305.chat
."MB Shop" begin   
         npc
.open_shop(6665)    
            
say("Hier findest du die passenden MB's")
            
say("Viel Spaß beim Shoppen")             
    
end
    when 20306.chat
."MB Shop" begin   
         npc
.open_shop(6666)    
            
say("Hier findest du die passenden MB's")
            
say("Viel Spaß beim Shoppen")             
    
end
    when 20307.chat
."MB Shop" begin   
         npc
.open_shop(6667)    
            
say("Hier findest du die passenden MB's")
            
say("Viel Spaß beim Shoppen")             
    
end
    when 20340.chat
."MB Shop" begin   
         npc
.open_shop(6660)    
            
say("Hier findest du die passenden MB's")
            
say("Viel Spaß beim Shoppen")             
    
end
    when 20341.chat
."MB Shop" begin   
         npc
.open_shop(6661)    
            
say("Hier findest du die passenden MB's")
            
say("Viel Spaß beim Shoppen")
    
end
    when 20342.chat
."MB Shop" begin   
         npc
.open_shop(6662)    
            
say("Hier findest du die passenden MB's")
            
say("Viel Spaß beim Shoppen")             
    
end
    when 20343.chat
."MB Shop" begin   
         npc
.open_shop(6663)    
            
say("Hier findest du die passenden MB's")
            
say("Viel Spaß beim Shoppen")             
    
end
    when 20344.chat
."MB Shop" begin   
         npc
.open_shop(6664)    
            
say("Hier findest du die passenden MB's")
            
say("Viel Spaß beim Shoppen")             
    
end
    when 20345.chat
."MB Shop" begin   
         npc
.open_shop(6665)    
            
say("Hier findest du die passenden MB's")
            
say("Viel Spaß beim Shoppen")             
    
end    say("Viel Spaß beim Shoppen")             
    
when 20346.chat."MB Shop" begin   
         npc
.open_shop(6666)    
            
say("Hier findest du die passenden MB's")
            
say("Viel Spaß beim Shoppen")             
    
end
    when 20347.chat
."MB Shop" begin   
         npc
.open_shop(6667)    
            
say("Hier findest du die passenden MB's")
            
say("Viel Spaß beim Shoppen")             
    
end
end 
Du hast glaub ich ein end vergessen :)
11/19/2012 21:36 XxKinGG1xX#7
PHP Code:
quest mb begin
    state start begin
        when 20320.chat
."MB Shop" begin  
            npc
.open_shop(6660
                
say("Hier findest du die passenden MB's")
                
say("Viel Spaß beim Shoppen")
        
end

        when 20321.chat
."MB Shop" begin  
            npc
.open_shop(6661
                
say("Hier findest du die passenden MB's")
                
say("Viel Spaß beim Shoppen")
        
end
        
        when 20322.chat
."MB Shop" begin  
            npc
.open_shop(6662
                
say("Hier findest du die passenden MB's")
                
say("Viel Spaß beim Shoppen")
        
end
        
        when 20323.chat
."MB Shop" begin  
            npc
.open_shop(6663
                
say("Hier findest du die passenden MB's")
                
say("Viel Spaß beim Shoppen")
        
end
        
        when 20324.chat
."MB Shop" begin  
            npc
.open_shop(6664
                
say("Hier findest du die passenden MB's")
                
say("Viel Spaß beim Shoppen")
        
end
        
        when 20325.chat
."MB Shop" begin  
            npc
.open_shop(6665
                
say("Hier findest du die passenden MB's")
                
say("Viel Spaß beim Shoppen")
        
end
        
        when 20326.chat
."MB Shop" begin  
            npc
.open_shop(6666
                
say("Hier findest du die passenden MB's")
                
say("Viel Spaß beim Shoppen")
        
end
        
        when 20327.chat
."MB Shop" begin  
            npc
.open_shop(6667
                
say("Hier findest du die passenden MB's")
                
say("Viel Spaß beim Shoppen")
        
end
        
        when 20300.chat
."MB Shop" begin  
            npc
.open_shop(6660
                
say("Hier findest du die passenden MB's")
                
say("Viel Spaß beim Shoppen")
        
end
        
        when 20301.chat
."MB Shop" begin  
            npc
.open_shop(6661
                
say("Hier findest du die passenden MB's")
                
say("Viel Spaß beim Shoppen")
        
end
        
        when 20302.chat
."MB Shop" begin  
            npc
.open_shop(6662
                
say("Hier findest du die passenden MB's")
                
say("Viel Spaß beim Shoppen")
        
end
        
        when 20303.chat
."MB Shop" begin  
            npc
.open_shop(6663
                
say("Hier findest du die passenden MB's")
                
say("Viel Spaß beim Shoppen")
        
end
        
        when 20304.chat
."MB Shop" begin  
            npc
.open_shop(6664
                
say("Hier findest du die passenden MB's")
                
say("Viel Spaß beim Shoppen")
        
end
        
        when 20305.chat
."MB Shop" begin  
            npc
.open_shop(6665
                
say("Hier findest du die passenden MB's")
                
say("Viel Spaß beim Shoppen")
        
end
        
        when 20306.chat
."MB Shop" begin  
            npc
.open_shop(6666
                
say("Hier findest du die passenden MB's")
                
say("Viel Spaß beim Shoppen")
        
end
        
        when 20307.chat
."MB Shop" begin  
            npc
.open_shop(6667
                
say("Hier findest du die passenden MB's")
                
say("Viel Spaß beim Shoppen")
        
end
        
        when 20340.chat
."MB Shop" begin  
            npc
.open_shop(6660
                
say("Hier findest du die passenden MB's")
                
say("Viel Spaß beim Shoppen")
        
end
        
        when 20341.chat
."MB Shop" begin  
            npc
.open_shop(6661
                
say("Hier findest du die passenden MB's")
                
say("Viel Spaß beim Shoppen")
        
end
        
        when 20342.chat
."MB Shop" begin  
            npc
.open_shop(6662
                
say("Hier findest du die passenden MB's")
                
say("Viel Spaß beim Shoppen")
        
end
        
        when 20343.chat
."MB Shop" begin  
            npc
.open_shop(6663
                
say("Hier findest du die passenden MB's")
                
say("Viel Spaß beim Shoppen")
        
end
        
        when 20344.chat
."MB Shop" begin  
            npc
.open_shop(6664
                
say("Hier findest du die passenden MB's")
                
say("Viel Spaß beim Shoppen")
        
end
        
        when 20345.chat
."MB Shop" begin  
            npc
.open_shop(6665
                
say("Hier findest du die passenden MB's")
                
say("Viel Spaß beim Shoppen")
        
end
        
        when 20346.chat
."MB Shop" begin  
            npc
.open_shop(6666
                
say("Hier findest du die passenden MB's")
                
say("Viel Spaß beim Shoppen")
        
end
        
        when 20347.chat
."MB Shop" begin  
            npc
.open_shop(6667
                
say("Hier findest du die passenden MB's")
                
say("Viel Spaß beim Shoppen")
        
end
    end
end 
versuchs mal so.
Bei mir gehts
11/19/2012 22:29 iSouli~#8
PHP Code:
quest mb begin 
    state start begin 
        
function dingsta()
            return {
                [
20320] = {6600},
                [
20321] = {6600},
                [
20322] = {6600},
                [
20323] = {6600}, -- erweitern mit ID des NPC und ID des Shops
            
}
        
end

        when 20320.chat
.'MB Shop' or 203021.chat.'MB Shop' or 203022.chat.'MB Shop' or 203023.chat.'MB Shop' begin   
            npc
.open_shop(mb.dinsta()[npc.get_race()][1])  
            
say('Hier findest du die passenden MB´s'
            
say('Viel Spaß beim Shoppen'
        
end 
    end
end