Register for your free account! | Forgot your password?

You last visited: Today at 12:48

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

Advertisement



[RELEASE]Castle War

Discussion on [RELEASE]Castle War within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2013
Posts: 154
Received Thanks: 507
Thumbs up [RELEASE]Castle War



PHP Code:
--[[  
    -- 
Castle War   
    
-- Quest Writer By HaveBeen™  
    
-- For EPVP   
]]--  
quest castlewar begin  
    state start begin  
      
    
function check()  
        
local gmlist = {"HaveBeen"} -- Enter the names of GameMaster 
        
for 1,table.getn(gmlist),do  
            if(
gmlist[i] == pc.get_name()) then  
                
return true  
            
else  
                return 
false  
            end  
        end  
    end  
      
    when letter with castlewar
.check() == true begin  
        send_letter
("Castle War")  
    
end  
    when button 
or info begin  
    say_title
("Castle War: ")  
    
say("")  
    --  
    if(
game.get_event_flag("castlewar_status") == 0then  
    say_reward
("Hello "..pc.name)  
    
say_reward("Do you want to open the Battle of the castle? ")  
    
local s select(locale.yes,locale.no)  
    if(
== 2then return end  
    say_title
("Castle War: ")  
    
say("")  
    --  
    
local amount = {100,500,1000,1500} -- Amount of Homicide xD  
    local luck 
number(1,table.getn(amount))  
    
game.set_event_flag("castlewar_kills",amount[luck]) 
    
game.set_event_flag("empire_1",game.get_event_flag("castlewar_kills")) 
    
game.set_event_flag("empire_2",game.get_event_flag("castlewar_kills")) 
    
game.set_event_flag("empire_3",game.get_event_flag("castlewar_kills")) 
    
game.set_event_flag("castlewar_status",1)  
    
say_reward("The castle was opened war.. ")  
    --  
    
notice_all("The Castle was opened war!. ")  
    elseif(
game.get_event_flag("castlewar_status") == 1then  
    say_reward
("Hello "..pc.name)  
    
say_reward("Do you want to turn off the War of the castle? ")  
    
local s select(locale.yes,locale.no)  
    if(
== 2then return end  
    say_title
("Castle War: ")  
    
say("")  
    --  
    
say("Castle war closed.. ")  
    
game.set_event_flag("castlewar_status",0)  
    
game.set_event_flag("castlewar_kills",0)  
    
game.set_event_flag("empire_1",0)  
    
game.set_event_flag("empire_2",0)  
    
game.set_event_flag("empire_3",0)  
        
end  
    end  
      
    when 11001.chat
."Join the Battle of the castle" or 11003.chat."Join the Battle of the castle" or 11005.chat."Join the Battle of the castle" with game.get_event_flag("castlewar_status") == 1 begin  
    say_title
(mob_name(npc.get_race())..":")  
    
say("")  
    ---  
    if(
pc.get_level() < 75then  
    
return say_reward("75 can not go below the level of.. ")  
    
end  
    say
("Do you want to join war? ")  
    
say("")  
    
local s select(locale.yes,locale.no)  
    if(
== 1then  
    pc
.warp(x,y)  
        
end  
    end  
      
    when login with pc
.get_map_index() == xxx begin  
        
if(game.get_event_flag("castlewar_status") == 0then  
            warp_to_village
()  
        else  
            
say_title("Castle War Information: ")  
            
say("")  
            ---  
            
say("Total number of enemies "..game.get_event_flag("castlewar_kills"))
            
say("Good luck.. ")  
        
end  
    end  
      
    when kill with npc
.is_pc() and npc.empire != pc.empire and pc.get_map_index() == xxx begin  
        game
.set_event_flag("empire_"..pc.get_empire(),game.get_event_flag("empire_"..pc.get_empire())+1)  
        
local empirename = {"Shinsoo","Chunjo","Jinno"}  
        
chat(empirename[pc.get_empire()].." "..game.get_event_flag("empire_"..pc.get_empire()).." Points Wins! ")  
        if(
game.get_event_flag("empire_"..pc.get_empire()) == game.get_event_flag("castlewar_kills")) then  
            
if(pc.get_empire() == 1then -- Shinsoo  
                notice_in_map
("Shinsoo Won The War! ")  
                
game.set_event_flag("empire_1",0)  
                
game.set_event_flag("empire_2",0)  
                
game.set_event_flag("empire_3",0)  
                
game.set_event_flag("castlewar_kills",0)  
                
game.set_event_flag("castlewar_status",0)  
                
warp_all_to_village()  
            elseif(
pc.get_empire() == 2then -- Chunjo  
                notice_in_map
("Chunjo Won The War! ")  
                
game.set_event_flag("empire_1",0)  
                
game.set_event_flag("empire_2",0)  
                
game.set_event_flag("empire_3",0)  
                
game.set_event_flag("castlewar_kills",0)  
                
game.set_event_flag("castlewar_status",0)  
                
warp_all_to_village()  
            elseif(
pc.get_empire() == 3then -- Jinno  
                notice_in_map
("Jinno Won The War! ")  
                
game.set_event_flag("empire_1",0)  
                
game.set_event_flag("empire_2",0)  
                
game.set_event_flag("empire_3",0)  
                
game.set_event_flag("castlewar_kills",0)  
                
game.set_event_flag("castlewar_status",0)  
                
warp_all_to_village()  
                
end  
            end  
        end  
    end  
end 
Written for this quest only epvp

## Edit the mapindex
## Edit the x and y coordinats..

## I'm sorry I forgot something

## The number of killings in the table is selected(Automatic)..
## local amount = {100,500,1000,1500} -- Change the number of xD


King Regards
Mfg HaveBeen™

HaveBeen™ is offline  
Thanks
23 Users
Old 03/14/2013, 21:21   #2
 
LuggexD's Avatar
 
elite*gold: 30
Join Date: Aug 2009
Posts: 114
Received Thanks: 43
What should we do with this quest if we don't have the matching map .
LuggexD is offline  
Old 03/14/2013, 21:22   #3
 
stσям™'s Avatar
 
elite*gold: 350
Join Date: Oct 2011
Posts: 176
Received Thanks: 49
Thanks 4 share
stσям™ is offline  
Thanks
1 User
Old 03/14/2013, 21:26   #4
 
Red Firestar's Avatar
 
elite*gold: 0
The Black Market: 185/0/0
Join Date: Jul 2012
Posts: 5,520
Received Thanks: 1,350
Thanks <3
Red Firestar is offline  
Thanks
1 User
Old 03/14/2013, 21:28   #5
 
elite*gold: 0
Join Date: Mar 2013
Posts: 154
Received Thanks: 507
Quote:
Originally Posted by LuggexD View Post
What should we do with this quest if we don't have the matching map .
Threeway use the map
HaveBeen™ is offline  
Old 03/14/2013, 21:31   #6
 
elite*gold: 0
Join Date: Jul 2012
Posts: 4
Received Thanks: 2
Perfect
DocTooR is offline  
Thanks
1 User
Old 03/14/2013, 21:42   #7
 
elite*gold: 0
Join Date: Feb 2013
Posts: 268
Received Thanks: 425
Thanks 4 share
Baum' is offline  
Thanks
3 Users
Old 03/14/2013, 22:13   #8
 
☆RealPain's Avatar
 
elite*gold: 85
Join Date: Aug 2009
Posts: 177
Received Thanks: 39
Thanks 4 Share
*and Nice Work*

☆RealPain
☆RealPain is offline  
Thanks
1 User
Old 03/14/2013, 22:37   #9
 
-TÜRK-'s Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 328
Received Thanks: 435
thanks dude ^^
-TÜRK- is offline  
Thanks
1 User
Old 03/14/2013, 23:28   #10
 
elite*gold: 0
Join Date: Dec 2012
Posts: 27
Received Thanks: 2
Quote:
Originally Posted by HaveBeen™ View Post


PHP Code:
--[[
    -- 
Castle War 
    
-- Quest Writer By HaveBeen™
    
-- For EPVP 
]]--
quest castlewar begin
    state start begin
    
    
function check()
        
local gmlist = {"HaveBeen"}
        for 
1,table.getn(gmlist),do
            if(
gmlist[i] == pc.get_name()) then
                
return true
            
else
                return 
false
            end
        end
    end
    
    when letter with castlewar
.check() == true begin
        send_letter
("Castle War")
    
end
    when button 
or info begin
    say_title
("Castle War: ")
    
say("")
    --
    if(
game.get_event_flag("castlewar_status") == 0then
    say_reward
("Hello "..pc.name)
    
say_reward("Do you want to open the Battle of the castle? ")
    
local s select(locale.yes,locale.no)
    if(
== 2then return end
    say_title
("Castle War: ")
    
say("")
    --
    
local amount = {100,500,1000,1500} -- Amount of Homicide xD
    local luck 
number(1,table.getn(amount))
    
game.set_event_flag("castlewar_kills",amount[luck])
    
game.set_event_flag("castlewar_status",1)
    
say_reward("The castle was opened war.. ")
    --
    
notice_all("The Castle was opened war!. ")
    elseif(
game.get_event_flag("castlewar_status") == 1then
    say_reward
("Hello "..pc.name)
    
say_reward("Do you want to turn off the War of the castle? ")
    
local s select(locale.yes,locale.no)
    if(
== 2then return end
    say_title
("Castle War: ")
    
say("")
    --
    
say("Castle war closed.. ")
    
game.set_event_flag("castlewar_status",0)
    
game.set_event_flag("castlewar_kills",0)
    
game.set_event_flag("empire_1",0)
    
game.set_event_flag("empire_2",0)
    
game.set_event_flag("empire_3",0)
        
end
    end
    
    when 11001.chat
."Join the Battle of the castle" or 11003.chat."Join the Battle of the castle" or 11005.chat."Join the Battle of the castle" with game.get_event_flag("castlewar_status") == 1 begin
    say_title
(mob_name(npc.get_race())..":")
    
say("")
    ---
    if(
pc.get_level() < 75then
    
return say_reward("75 can not go below the level of.. ")
    
end
    say
("Do you want to join war? ")
    
say("")
    
local s select(locale.yes,locale.no)
    if(
== 1then
    pc
.warp(x,y)
        
end
    end
    
    when login with pc
.get_map_index() == xxx begin
        
if(game.get_event_flag("castlewar_status") == 0then
            warp_to_village
()
        else
            
say_title("Castle War Information: ")
            
say("")
            ---
            
say("Total number of enemies "..game.get_event_flag("empire_"..pc.get_empire()))
            
say("Good luck.. ")
        
end
    end
    
    when kill with npc
.is_pc() and npc.empire != pc.empire and pc.get_map_index() == xxx begin
        game
.set_event_flag("empire_"..pc.get_empire(),game.get_event_flag("empire_"..pc.get_empire())+1)
        
local empirename = {"Shinsoo","Chunjo","Jinno"}
        
chat(empirename[pc.get_empire()].." "..game.get_event_flag("empire_"..pc.get_empire()).." Points Wins! ")
        if(
game.get_event_flag("empire_"..pc.get_empire()) == game.get_event_flag("castlewar_kills")) then
            
if(pc.get_empire() == 1then -- Shinsoo
                notice_in_map
("Shinsoo Won The War! ")
                
game.set_event_flag("empire_1",0)
                
game.set_event_flag("empire_2",0)
                
game.set_event_flag("empire_3",0)
                
game.set_event_flag("castlewar_kills",0)
                
game.set_event_flag("castlewar_status",0)
                
warp_all_to_village()
            elseif(
pc.get_empire() == 2then -- Chunjo
                notice_in_map
("Chunjo Won The War! ")
                
game.set_event_flag("empire_1",0)
                
game.set_event_flag("empire_2",0)
                
game.set_event_flag("empire_3",0)
                
game.set_event_flag("castlewar_kills",0)
                
game.set_event_flag("castlewar_status",0)
                
warp_all_to_village()
            elseif(
pc.get_empire() == 3then -- Jinno
                notice_in_map
("Jinno Won The War! ")
                
game.set_event_flag("empire_1",0)
                
game.set_event_flag("empire_2",0)
                
game.set_event_flag("empire_3",0)
                
game.set_event_flag("castlewar_kills",0)
                
game.set_event_flag("castlewar_status",0)
                
warp_all_to_village()
                
end
            end
        end
    end
end 
Written for this quest only epvp

## Edit the mapindex
## Edit the x and y coordinats..

King Regards
Mfg HaveBeen™

Thanks for the release... but this quest does not work for me...
LastSpartan300 is offline  
Old 03/15/2013, 05:58   #11
 
elite*gold: 0
Join Date: Mar 2013
Posts: 154
Received Thanks: 507
Quote:
Originally Posted by LastSpartan300 View Post
Thanks for the release... but this quest does not work for me...
PHP Code:
local gmlist = {"HaveBeen"
Edit this place
HaveBeen™ is offline  
Old 03/15/2013, 10:15   #12
 
elite*gold: 0
Join Date: Aug 2012
Posts: 836
Received Thanks: 250
Skyƒusioη is offline  
Thanks
1 User
Old 03/15/2013, 10:39   #13
 
elite*gold: 0
Join Date: Dec 2012
Posts: 27
Received Thanks: 2
Quote:
Originally Posted by HaveBeen™ View Post
PHP Code:
local gmlist = {"HaveBeen"
Edit this place
I edited the name , map index , etc but when i was supposed to choose the "Amount of Homicide" nothing appeared... The quest only starts the war.
And in the npc( 11001, 11003, 11005 ) i am the only one who can see the war button...

Thanks again!
LastSpartan300 is offline  
Old 03/15/2013, 12:17   #14
 
elite*gold: 0
Join Date: Mar 2013
Posts: 154
Received Thanks: 507
Quote:
Originally Posted by LastSpartan300 View Post
I edited the name , map index , etc but when i was supposed to choose the "Amount of Homicide" nothing appeared... The quest only starts the war.
And in the npc( 11001, 11003, 11005 ) i am the only one who can see the war button...

Thanks again!
Amount of homicide => the number of enemies killed

I'm Sorry fixed now try it now ^^
HaveBeen™ is offline  
Old 03/16/2013, 10:01   #15
 
KingHunter3's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 4
Received Thanks: 3
nice work
KingHunter3 is offline  
Thanks
1 User
Reply

Tags
castle, havebeen, tm, war


Similar Threads Similar Threads
[Release] Complete Silkroad Castle New Website
07/29/2016 - SRO PServer Guides & Releases - 21 Replies
http://imageshack.us/a/img571/6413/silkroadcastle. jpg Pasword: www.silkroadcastle.com Silkroad Castle Change DB connection in files: news.php, config.php (maye be others aswell explore yourself) What this include?
[NEW MARCH 2012 UPDATE]Castle Ville Hack Tool | Free Coins Crown Reputation Castle an
10/10/2012 - Facebook - 5 Replies
Finally, we are done our Latest CastleVille Hack and you can now check it out below. This is the second version of it and visit this site regularly for updates on it. We will be sure to update you guys on the latest version of this CastleVille cheats. Feel free to post comments below if you like the bot or not. We appreciate any comments that you can give. http://modsplatform.files.wordpress.com/2012/03/c astleville2.jpg?w=604 Castleville Cheat Engine 2012 Features: Coins Hack Crown...
[Release] Cant buy Castle FIX
03/16/2012 - EO PServer Guides & Releases - 3 Replies
this is just a little release because some people don't know how to fix the castle on Revo DB when it wont let you buy it, here is the fix delete from cq_dynanpc where id >= 51219 and id <= 51219; INSERT INTO `cq_dynanpc` VALUES ('51219', '0', '1', 'RoyalCastle', '47', '98900', '0000', '0000', '-1', '1000', '292', '444', '3800900', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0', '0', '0', '0', 'None', '0000', '0000', '0000', '0000', '01', '0000', '0000', '0000', '0000',...



All times are GMT +2. The time now is 12:48.


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