metin2 make prob

11/16/2011 15:40 xRise#1
moin leute ich hab bei make ausführen was gefunden

syntax error : [string "start"]:1: <eof> expected near `elseif'
level_nachricht.quest:26:Abort trap (core dumped)

Hir die quest von level_nachricht:
quest lvl_nachricht begin
state start begin
when levelup begin
elseif pc.get_level() == 50 then
notice_all("".. pc.get_name() .." hat gerade das")
notice_all("Level 50 erreicht!")
notice_all("Viel Spass auf WorldOfLegend")
elseif pc.get_level() == 75 then
notice_all("".. pc.get_name() .." hat gerade das")
notice_all("Level 75 erreicht!")
notice_all("Viel Spass auf WorldOfLegend")
elseif pc.get_level() == 100 then
notice_all("".. pc.get_name() .." hat gerade das")
notice_all("Level 100 erreicht!")
notice_all("Viel Spass auf WorldOfLegend")
elseif pc.get_level() == 125 then
notice_all("".. pc.get_name() .." hat gerade das")
notice_all("Level 125 erreicht!")
notice_all("Viel Spass auf WorldOfLegend")
end
end
end
end
end
11/16/2011 17:43 Marcoly#2
Versuche es mal so:

PHP Code:
quest lvl_nachricht begin
    state start begin
        when levelup begin
            
if pc.get_level() == 50 then
                notice_all
("".. pc.get_name() .." hat gerade das")
                
notice_all("Level 50 erreicht!")
                
notice_all("Viel Spass auf WorldOfLegend")
            elseif 
pc.get_level() == 75 then
                notice_all
("".. pc.get_name() .." hat gerade das")
                
notice_all("Level 75 erreicht!")
                
notice_all("Viel Spass auf WorldOfLegend")
            elseif 
pc.get_level() == 100 then
                notice_all
("".. pc.get_name() .." hat gerade das")
                
notice_all("Level 100 erreicht!")
                
notice_all("Viel Spass auf WorldOfLegend")
            elseif 
pc.get_level() == 125 then
                notice_all
("".. pc.get_name() .." hat gerade das")
                
notice_all("Level 125 erreicht!")
                
notice_all("Viel Spass auf WorldOfLegend")
                
end
            end
        end
    end
end 
MfG Marco_A