Register for your free account! | Forgot your password?

You last visited: Today at 02:45

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

Advertisement



Automatic Ox Event System (Untimely)

Discussion on Automatic Ox Event System (Untimely) within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
Erza²'s Avatar
 
elite*gold: 0
Join Date: Mar 2013
Posts: 3
Received Thanks: 1
Automatic Ox Event System (Untimely)



PHP Code:
--------------------------------------------------------------
--- For 
Epvp
--- Erza²
--- Automatic Ox Event
--------------------------------------------------------------
quest automaticoxevent begin
    state start begin
        
-- Dialogue with Uriel
        when 20011.chat
."GM: Automatic Ox Event" with pc.is_gm() and pc.get_name() == "Erza" begin
            say_title
(mob_name(npc.get_race())..":")
            
say("")
            
            
say("Do you want to open the Ox Event? ")
            
say("")
            
local s select(locale.yes,locale.no)
            if(
== 2then return end
            say_title
(mob_name(npc.get_race())..":")
            
say("")
            
            
say("Ox opened the event!. ")
            
say("Please wait. ")
            
server_timer("countdown",10)
            
game.set_event_flag("automatic_oxevent_status",1)
        
end
        
        
--- Start Countdown !.
        
when countdown.server_timer begin
            
if(game.get_event_flag("automatic_oxevent_status") == 0then
                notice_all
("an unexpected error occurred")
                
notice_all("closing event!. ")
            else
                
notice_all("<Automatic-OxEvent> Ox opened the event!. ")
                
notice_all("<Automatic-OxEvent> 5 Minutes the countdown has begun and Entries will be closed at the end of 5 minutes.. ")
                
server_timer("countdownone",60)
            
end
        end
        
        
--- CountDown 2
        when countdownone
.server_timer begin
            
if(game.get_event_flag("automatic_oxevent_status") == 0then
                notice_all
("an unexpected error occurred")
                
notice_all("closing event !. ")
            else
                
notice_all("<Automatic-OxEvent> Ox closing entries : 4 minutes left")
                
server_timer("countdowntwo",60)
            
end
        end
        
        
--- CountDown 3
        when countdowntwo
.server_timer begin
            
if(game.get_event_flag("automatic_oxevent_status") == 0then
                notice_all
("an unexpected error occurred")
                
notice_all("closing event !. ")
            else
                
notice_all("<Automatic-OxEvent> Ox closing entries : 3 minutes left")
                
server_timer("countdownthre",60)
            
end
        end
        
        
--- CountDown 4
        when countdownthre
.server_timer begin
            
if(game.get_event_flag("automatic_oxevent_status") == 0then
                notice_all
("an unexpected error occurred")
                
notice_all("closing event!. ")
            else
                
notice_all("<Automatic-OxEvent> Ox closing entries : 2 minutes left")
                
server_timer("countdownfour",60)
            
end
        end
        
        
--- CountDown 5
        when countdownfour
.server_timer begin
            
if(game.get_event_flag("automatic_oxevent_status") == 0then
                notice_all
("an unexpected error occurred")
                
notice_all("closing event!. ")
            else
                
notice_all("<Automatic-OxEvent> Ox closing entries : 1 minutes left")
                
server_timer("countdownfive",60)
            
end
        end
        
        
--- Countdown 6
        when countdownfive
.server_timer begin
            
if(game.get_event_flag("automatic_oxevent_status") == 0then
                notice_all
("an unexpected error occurred")
                
notice_all("closing event!. ")
            else
                
notice_all("<Automatic-OxEvent> Ox entries closed. ")
                
notice_all("<Automatic-OxEvent> Join as a spectator!. ")
                
server_timer("playercheck",5)
                
game.set_event_flag("automatic_oxevent_status",2)
            
end
        end
        
        
--- Player Check
        when playercheck
.server_timer begin
            
if(oxevent.get_attender() == 0then
                notice_all
("<Automatic-OxEvent> Event is closed because ; There's no one inside.. ")
                
game.set_event_flag("automatic_oxevent_status",0)
            else
                
server_timer("startox",5)
            
end
        end
        
        
--- Start Ox Event
        when startox
.server_timer begin
            setskin
(NOWINDOW)
            
quiz oxevent.quiz(1,30)
            if(
quiz == 0then
                notice_all
("an unexpected error occurred")
                
notice_all("closing event!. ")
                
game.set_event_flag("automatic_oxevent_status",0)
                
warp_all_to_village()
            elseif(
quiz == 1then
                
if(oxevent.get_attender() == 1then
                    game
.set_event_flag("automatic_oxevent_status",0)
                    
notice_all("<Automatic-OxEvent> Event is over. See you soon ")
                    
warp_all_to_village()
                else
                    
server_timer("startoxone",40)
                
end
            
else
                
notice_all("an unexpected error occurred")
                
notice_all("closing event!. ")
                
game.set_event_flag("automatic_oxevent_status",0)
                
warp_all_to_village()
            
end
        end
        
        
--- Start Ox 1
        when startoxone
.server_timer begin
            setskin
(NOWINDOW)
            
quiz oxevent.quiz(1,30)
            if(
quiz == 0then
                notice_all
("an unexpected error occurred")
                
notice_all("closing event!. ")
                
game.set_event_flag("automatic_oxevent_status",0)
                
warp_all_to_village()
            elseif(
quiz == 1then
                
if(oxevent.get_attender() == 1then
                    game
.set_event_flag("automatic_oxevent_status",0)
                    
notice_all("<Automatic-OxEvent> Event is over. See you soon ")
                    
warp_all_to_village()
                else
                    
server_timer("startox",40)
                
end
            
else
                
notice_all("an unexpected error occurred")
                
notice_all("closing event!. ")
                
game.set_event_flag("automatic_oxevent_status",0)
                
warp_all_to_village()
            
end
        end
        
        when 20011.chat
."Ox Event !. " begin
            say_title
(mob_name(npc.get_race())..":")
            
say("")
            ---
            if(
game.get_event_flag("automatic_oxevent_status") == 1then
            say
("Do you want to enter the effectiveness of the Ox")
            
say("")
            
local s select(locale.yes,locale.no)
            if(
== 2then return end
            pc
.warp(89650024600)
            elseif(
game.get_event_flag("automatic_oxevent_status") == 2then
            say
("Do you want to enter the effectiveness of the Ox")
            
say("")
            
local s select(locale.yes,locale.no)
            if(
== 2then return end
            pc
.warp(89630028900)
            elseif(
game.get_event_flag("automatic_oxevent_status") == 0then
            say
("The effectiveness of the Ox now closed")
            
say("")
            
end
        end
    end
end 
- Tested ( Photo to be added )
- There is no time
- If you can't --> Send Private Message

King Regards
Mfg Erza²



Attached Files
File Type: zip automaticoxevent.zip (1.1 KB, 297 views)
Erza² is offline  
Old 03/23/2013, 10:03   #2
 
Erza''s Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 150
Received Thanks: 38
There is already such a release, but thx for release it again and thx for trololo my name.. haha --'

Erza'
Erza' is offline  
Thanks
1 User
Old 03/23/2013, 10:23   #3
 
Erza²'s Avatar
 
elite*gold: 0
Join Date: Mar 2013
Posts: 3
Received Thanks: 1
Quote:
Originally Posted by Erza' View Post
There is already such a release, but thx for release it again and thx for trololo my name.. haha --'

Erza'
^^ but different
Erza² is offline  
Old 05/08/2014, 14:59   #4
 
drunkwolfs's Avatar
 
elite*gold: 0
Join Date: Aug 2011
Posts: 64
Received Thanks: 11
Does not work if GM not in OX map.
2089M
drunkwolfs is offline  
Reply

Tags
automatic, erza, oxevent, system, untimely


Similar Threads Similar Threads
[Release]Paygol Automatic System
04/18/2013 - Metin2 PServer Guides & Strategies - 26 Replies
Hi epvp, I created a IPN (Instant Payment Notification) system. Creates a file named "teste.php" (example) - this is a IPN system...: <?php //ligação à base de dados $ligacao = mysql_connect("hostname", "user", "pass") ; mysql_select_db("account", $ligacao);
[MEGA RELEASE]Automatic Ox-Event System
03/23/2013 - Metin2 PServer Guides & Strategies - 25 Replies
--]-- quest oxevents begin state start begin function open() if(oxevent.open() == 0) then return 0 elseif(oxevent.open() == 1) then return 1 else
Automatic Scoring System (AP)
02/18/2013 - Shaiya Private Server - 5 Replies
Hi I have the following point system that automatically committed automated AP system, the same figure is a one-to- 23 hours in the game not to be alone, even committed despite my tsar 1 point I wonder if I have the following code, I did a mistake or there is missing something you have processed the following code to MySQL mysql my system 2008R2 I want our servers to enable automatic point system So long as the game points to win clients and itemmal item scores will buy it. I found I just...
[NEED]Automatic Payment System
01/21/2013 - Metin2 Private Server - 2 Replies
Hello Epvp Are there any automatic payment system for metin2 servers? I wanna use one for my P.Server so when someone donate automatic take the coins and i am taking the money to an account! If Someone knows plzz tell me.!
[Automatic] Ox-Event // Umfrage
07/29/2011 - Metin2 Private Server - 8 Replies
Hallöchen, da irgendwer in dem Thread -> release-besserer-ox-manage-quest-mit-o ex-verlassen-quest-usw.html schrieb die Quest sei nicht wirklich besonders er hätte sich über eine automatisch ablaufende Quest mehr gefreut hab cih den Grund satz der questes da mal genommen und sie automatisiert so das sie alleine ablaufen mann muss lediglich nur noch sagen okay start das teil dann wartet man bis welche drinn sind schließt den zugang er bleibt für 3 minuten noch offen geht dann automatisch...



All times are GMT +1. The time now is 02:45.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.