Register for your free account! | Forgot your password?

You last visited: Today at 13:40

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

Advertisement



A real problem

Discussion on A real problem within the Metin2 Private Server forum part of the Metin2 category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2016
Posts: 1
Received Thanks: 0
A real problem





quest
PHP Code:
quest moon_dragon_zone begin
    state start begin
        
function setting()
            return
            {
                [
"map_index"] = 402,
                [
"ticket_vnum"] = 50152,
                [
"dungeon_entry_pos"] = {2109916237},
                [
"boss1"] = 8051,
                [
"boss2"] = 269,
                [
"spawn"] = {410385},
            }
        
end
        
        
function make_dungeon(ld_vidchannel)
            
local setting moon_dragon_zone.setting()
            
local event_flag string.format("moon_dungeon_status_%d"channel)
            
game.set_event_flag(event_flagget_time() + 60 5)
            
            
d.new_jump_party(setting.map_indexsetting.dungeon_entry_pos[1], setting.dungeon_entry_pos[2])
            
d.setf("moon_party_leader_pid"ld_vid)
            
party.setf("moon_dungeon_index"d.get_map_index())
            
            
d.spawn_mob(setting.boss1setting.spawn[1], setting.spawn[2])
            
clear_server_timer("moon_2h_left_timer"get_server_timer_arg())
            
clear_server_timer("moon_exit_timer"get_server_timer_arg())
            
server_timer("moon_2h_left_timer"60 5d.get_map_index())
        
end
        
        when login begin
            local idx 
pc.get_map_index()
            
local setting moon_dragon_zone.setting()
            if 
idx >= (setting.map_index 10000) and idx < (setting.map_index 10000 10000then
                pc
.setf("moon_drugan""limit_moon_activity"0)
                if 
pc.getqf("moon_enter") > 0 then
                    pc
.setqf("moon_enter"0)
                    return
                
end
                
                pc
.warp(10903001784000)
            
end
        end
        
        when logout begin
            local idx 
pc.get_map_index()
            
local setting moon_dragon_zone.setting()
            if 
idx >= (setting.map_index 10000) and idx < (setting.map_index 10000 10000then
                pc
.setqf("exit_time_logout"get_global_time() + 60)
                if 
pc.getqf("moon_enter") > 0 then
                    pc
.setqf("moon_enter"0)
                
end
                
                pc
.setf("moon_drugan""limit_moon_activity"get_time() + 60)
            
end
        end
        
        when 8051.kill with pc
.in_dungeon() begin
            local setting 
moon_dragon_zone.setting()
            
d.spawn_mob(setting.boss2setting.spawn[1], setting.spawn[2])
            
d.notice(" لقد قمت بتدمير ماتين الغم, واستدعاء التنين. ")
        
end
    
        when 269.kill with pc
.in_dungeon() begin
            local setting 
moon_dragon_zone.setting()
            
d.set_warp_location(2021104317885)
            
            
d.notice(" رائع,لقد استطعت هزيمة تنين القمر واحلال السلام في الكهف! ")
            
d.notice(" سيتم نقلك خارج الكهف خلال ثوان. ")
            
notice_multiline(string.format(" مجموعة %s نجحت في قتل تنين القمر ونشر السلام في المنطقة! "pc.name), notice_all)
            
            
server_timer("moon_exit_timer"300d.get_map_index())
        
end
        
        when moon_2h_left_timer
.server_timer begin
            
if d.select(get_server_timer_arg()) then
                d
.set_warp_location(2021104317885)
                
d.notice(" لقد انتهى الوقت,ولم تستطع قتل التنين! ")
                
                
server_timer("moon_exit_timer"5get_server_timer_arg())
            
end
        end
        
        when moon_exit_timer
.server_timer begin
            
if d.select(get_server_timer_arg()) then
                clear_server_timer
("moon_exit_timer"get_server_timer_arg())
                
clear_server_timer("moon_2h_left_timer"get_server_timer_arg())
                
d.setf("moon_party_leader_pid"0)
                
d.exit_all()
            
end
        end
        
        when 20413.chat
." كهف تنين القمر " begin
            local setting 
moon_dragon_zone.setting()
            
            
say_title(mob_name(20413))
            
say("")
            
say(" هل تريد ان تحارب ضد تنين القمر؟ ")
            
local agree select(" نعم "" لا ")
            if 
agree == 1 then
                say_title
(mob_name(20413))
                
say("")
                if 
not party.is_party() then
                    say
(" لتستطيع الدخول للكهف يجب ان تكون ضمن ")
                    
say(" اعضاء المجموعة. ")
                    return
                
end
                
                local party_check 
0
                
if d.find(party.getf("moon_dungeon_index")) then
                    party_check 
= (d.getf_from_map_index("moon_party_leader_pid"party.getf("moon_dungeon_index")) == party.get_leader_pid())
                
end
                
                
if d.find(party.getf("moon_dungeon_index")) and party_check then
                    
if get_global_time() > pc.getqf("exit_time_logout"then
                        say
(" لسوء الحظ, لقد اتيت متأخرا, عد الي ")
                        
say(" بعد 5 دقائق.")
                        return
                    
end
                    
                    pc
.setf("moon_dragon_zone""moon_enter"1)
                    
say(" سيتم نقلك الي مجموعتك. ")
                    
say("")
                    
wait()
                    
pc.warp(setting.dungeon_entry_pos[1] * 100setting.dungeon_entry_pos[2] * 100party.getf("moon_dungeon_index"))
                
end
                
                local event_flag 
string.format("moon_dungeon_status_%d"pc.get_channel_id())
                if 
game.get_event_flag(event_flag) > get_time() then
                    local next_time 
= (game.get_event_flag(event_flag) - get_time())
                    
say(" ان المدخل مغلق الأن. ")
                    if 
next_time 60 then
                        say
(string.format(" حاول مجددا بعد %d ثانية(s)."tonumber(next_time)))
                    else
                        
say(string.format(" حاول مجددا بعد %d دقيقة(s)."tonumber(next_time 60)))
                    
end
                    
                    
return
                
end
                
                
if not party.is_leader() then
                    say
(" يجب ان تكون قائد المجموعة, ")
                    
say(" لتستطيع الدخول الى الكهف. ")
                    return
                
end
                
                
if party.get_near_count() < 2 then
                    say
(" يجب ان يرافقك لاعب في المجموعة على الاقل, ")
                    
say(" لتستطيع الدخول الى الكهف. ")
                    return
                
end
                
                local pids 
= {party.get_member_pids()}
                
local ticketCheck true
                local notEnoughTicketMembers 
= {}
                
                for 
ipid in nextpidsnil do
                    
q.begin_other_pc_block(pid)
                    if 
pc.count_item(setting.ticket_vnum) < 1 then
                        table
.insert(notEnoughTicketMemberspc.get_name())
                        
ticketCheck false
                    end
                    
                    q
.end_other_pc_block()
                
end
                
                
if not ticketCheck then
                    say
(" لتستطيع الدخول الي الغرفة يجب  ")
                    
say(string.format(" ان يمتلك كل عضو من المجموعة %s."item_name(setting.ticket_vnum)))
                    
say("")
                    
say(" الاعضاء الأتيين لا يمتكلون الأداة:")
                    for 
iname in nextnotEnoughLevelMembersnil do
                        
say("- "..name.."")
                    
end
                    
                    
return
                
end
                
                
for ipid in nextpidsnil do
                    
q.begin_other_pc_block(pid)
                    
pc.remove_item(setting.ticket_vnum1)
                    
pc.setf("moon_dragon_zone""moon_enter"1)
                    
q.end_other_pc_block()
                
end
                
                say
(" استعد, سيتم نقلك برفقة اعضاء المجموعة, ")
                
say(" الى داخل, كهف تنين القمر. ")
                
wait()
                
moon_dragon_zone.make_dungeon(party.get_leader_pid(), pc.get_channel_id())
            
end
        end
    end
end 
KYUUBISAz is offline  
Old 02/19/2019, 19:22   #2
Administrator
 
andii's Avatar
 
elite*gold: 28390
The Black Market: 155/0/0
Join Date: Aug 2013
Posts: 9,902
Received Thanks: 2,652
Please use our collection thread for requests like that:


#closed
andii is offline  
Closed Thread


Similar Threads Similar Threads
DoS Hacks V2.4 (Real Inventory With FWM,Real Character,Real HP,Ammo Type,EspBox,+50)
02/27/2019 - Wolfteam Hacks, Bots, Cheats & Exploits - 10 Replies
Finally, DoSHacks V2.3 has been updated All Features > Freeze Weapons Mode Esp CallSign&&HP
[No Oldschool] Real-World2 | We Are Back! - It's Real, It's Fun!
08/12/2010 - Metin2 PServer Advertising - 782 Replies
http://www.abload.de/img/rw2w8c4.png Hallu. Endlich ist es wieder so weit! Real-World2 ist back. Wir entschuldigen uns nochmals dafür, dass wir damals "grundlos" abgehauen sind. Aber dies wird dieses mal nicht passiert ;)
[Release] Real Broadcast (Same as in Real Co)
04/04/2009 - CO2 PServer Guides & Releases - 36 Replies
hey my first release since im back at epvp and the owner from copals asked me for this (that is the reason why i quited his team) so here is the release from the real broadcast. Requirements: one of the lotf sources eyes hands first open the project from your source and go to client.cs, then search for; MyChar.CPs -= 5; you will see the broadcast stuff and replace the whole case for;



All times are GMT +1. The time now is 13:41.


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.