Register for your free account! | Forgot your password?

You last visited: Today at 08:36

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



what the pb

Discussion on what the pb within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2016
Posts: 3
Received Thanks: 0
what the pb

I want to help in this quest i don't know what the problem

PHP Code:
quest alfa_fish begin
    state start begin
    when 20013.chat
." حدث الصيد " with pc.is_gm() begin
        say_title
(" مسابقة الصيد ")
            
say("")
            
say(" حدث الصيد ")
            
say("")
            
local chois select("  إلغاء  ""  تعطيل  "" تفعيل ")
            if 
chois == 1 then
                game
.set_event_flag("fish",1)
                
say_title(" حدث الصيد ")
                
say(" حدث الصيد ")
                
notice_all(" لقد بدأ حدث الصيد , أذهب للصيأاد وأقتني صناارتكـ بأسرع وقت .. ")
            elseif 
chois == 2 then
                game
.set_event_flag("fish",0)
                
say_title(" حدث الصيد ")
                
say(" حدث الصيد ")
                
notice_all(" لقد أنتهىء حـدث ألصـيد , أترك ألصنارة وأذهب للقتأل .. ")
            else
                return
            
end
            when 20013.take with item
.get_vnum() == 27804 begin
                
if game.get_event_flag("fish") == 1 then
                    say_title
(" حدث الصيد ")
                    
say(" لقد أحضرت معك السمك ")
                    
say(" يا لك من صياد بارع ")
                    
say(" سوف يتم إستبدال هذه السمكة بـ 5 أحجار مائية ")
                    
say(" واذا جمعت العدد الكافي  ")
                    
say(" سيتم مكافئتك بعد إنتهاء الحدث ")
                    
pc.remove_item(27804)
                    
pc.give_item2(27991,5)
                 else
                   return
                
end   
            end
            
            when 20013.take with item
.get_vnum() == 27803 begin
                
if game.get_event_flag("fish") == 1 then
                    say_title
(" حدث الصيد ")
                    
say(" لقد أحضرت معك السمك ")
                    
say(" يا لك من صياد بارع ")
                    
say(" سوف يتم إستبدال هذه السمكة بـ 2 أحجار مائية ")
                    
say(" واذا جمعت العدد الكافي  ")
                    
say(" سيتم مكافئتك بعد إنتهاء الحدث ")
                    
pc.remove_item(27803)
                    
pc.give_item2(27991,2)
                 else
                   return
                
end   
            end
            
            when 20013.chat begin
            
if game.get_event_flag("fish") == 0 then
                say_title
(" حدث الصيد ")
                
say(" حسنا لقد إنتهى حدث الصيد ")
                
say(" إذا كنت تملك فيمكنك إستبدالها بجائزة قيمة ")
                
wait()
                
say(" كم تمتلك من الحجر المائي؟ ")
                
local choisa select("  إلغاء  ""  20  "" 10 ")
                    if 
choisa == 1 then
                        local it 
pc.count_item(27991)
                        if 
it 10 then
                        say
(" إنك لا تمتلك العدد الكافي من الأحجار المائية ")
                        return
                        else
                        
say(" حسنا إنك تمتلك العدد الكافي من  ")
                        
say(" سيتم إستبدالها بصندوق المسابقات ")
                        
pc.remove_item(27991)
                        
pc.give_item2(71159)
                    elseif 
choisa == 2 then
                        local it 
pc.count_item(27991)
                        if 
it 5 then
                        say
(" إنك لا تمتلك العدد الكافي من الأحجار المائية ")
                        return
                        else
                        
say(" حسنا إنك تمتلك العدد الكافي من الأحجار المائية ")
                        
say(" سيتم إستبدالها بـ 2 صندوق مسابقات")
                        
pc.remove_item(27991)
                        
pc.give_item2(71159,2)    
                    else
                        return
                    
end                        
                end        
                    
            
else
                return
            
end
        end
    end
end 

Is there any one who can help me ?
T3oDNa is offline  
Old 07/27/2016, 19:47   #2
 
MetinAeon's Avatar
 
elite*gold: 0
Join Date: Jun 2016
Posts: 22
Received Thanks: 1
Need to add 2 more "end".

Here 1:
pc.remove_item(27991)
pc.give_item2(71159)
end
elseif choisa == 2 then

Here 2:
pc.remove_item(27991)
pc.give_item2(71159,2)
end
else
return
end
MetinAeon is offline  
Old 07/27/2016, 21:06   #3
 
elite*gold: 0
Join Date: Jan 2016
Posts: 3
Received Thanks: 0
PHP Code:
QUEST alfa_fish
STATE 
start
WHEN  
20013.chat (" ▒▒▒ ▒▒▒▒▒ ")
        
with pc is_gm ( ) 


PHP Code:
quest alfa_fish begin
    state start begin
    when 20013.chat
." حدث الصيد " with pc.is_gm() begin
        say_title
(" مسابقة الصيد ")
            
say("")
            
say(" حدث الصيد ")
            
say("")
            
local chois select("  إلغاء  ""  تعطيل  "" تفعيل ")
            if 
chois == 1 then
                game
.set_event_flag("fish",1)
                
say_title(" حدث الصيد ")
                
say(" حدث الصيد ")
                
notice_all(" لقد بدأ حدث الصيد , أذهب للصيأاد وأقتني صناارتكـ بأسرع وقت .. ")
            elseif 
chois == 2 then
                game
.set_event_flag("fish",0)
                
say_title(" حدث الصيد ")
                
say(" حدث الصيد ")
                
notice_all(" لقد أنتهىء حـدث ألصـيد , أترك ألصنارة وأذهب للقتأل .. ")
            else
                return
            
end
            when 20013.take with item
.get_vnum() == 27804 begin
                
if game.get_event_flag("fish") == 1 then
                    say_title
(" حدث الصيد ")
                    
say(" لقد أحضرت معك السمك ")
                    
say(" يا لك من صياد بارع ")
                    
say(" سوف يتم إستبدال هذه السمكة بـ 5 أحجار مائية ")
                    
say(" واذا جمعت العدد الكافي  ")
                    
say(" سيتم مكافئتك بعد إنتهاء الحدث ")
                    
pc.remove_item(27804)
                    
pc.give_item2(27991,5)
                 else
                   return
                
end   
            end
            
            when 20013.take with item
.get_vnum() == 27803 begin
                
if game.get_event_flag("fish") == 1 then
                    say_title
(" حدث الصيد ")
                    
say(" لقد أحضرت معك السمك ")
                    
say(" يا لك من صياد بارع ")
                    
say(" سوف يتم إستبدال هذه السمكة بـ 2 أحجار مائية ")
                    
say(" واذا جمعت العدد الكافي  ")
                    
say(" سيتم مكافئتك بعد إنتهاء الحدث ")
                    
pc.remove_item(27803)
                    
pc.give_item2(27991,2)
                 else
                   return
                
end   
            end
            
            when 20013.chat begin
            
if game.get_event_flag("fish") == 0 then
                say_title
(" حدث الصيد ")
                
say(" حسنا لقد إنتهى حدث الصيد ")
                
say(" إذا كنت تملك فيمكنك إستبدالها بجائزة قيمة ")
                
wait()
                
say(" كم تمتلك من الحجر المائي؟ ")
                
local choisa select("  إلغاء  ""  20  "" 10 ")
                    if 
choisa == 1 then
                        local it 
pc.count_item(27991)
                        if 
it 10 then
                            say
(" إنك لا تمتلك العدد الكافي من الأحجار المائية ")
                            return
                        else
                           
say(" حسنا إنك تمتلك العدد الكافي من  ")
                           
say(" سيتم إستبدالها بصندوق المسابقات ")
                           
pc.remove_item(27991)
                           
pc.give_item2(71159)
                        
end
                    
elseif choisa == 2 then
                        local it 
pc.count_item(27991)
                        if 
it 5 then
                            say
(" إنك لا تمتلك العدد الكافي من الأحجار المائية ")
                            return
                        else
                            
say(" حسنا إنك تمتلك العدد الكافي من الأحجار المائية ")
                            
say(" سيتم إستبدالها بـ 2 صندوق مسابقات")
                            
pc.remove_item(27991)
                            
pc.give_item2(71159,2)    
                        
end
                    
else
                        return
                    
end                        
                end        
                    
            
else
                return
            
end
        end
    end
end 
The same problem
T3oDNa is offline  
Reply




All times are GMT +1. The time now is 08:37.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.