|
You last visited: Today at 02:53
Advertisement
[RELEASE]Castle War
Discussion on [RELEASE]Castle War within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.
03/14/2013, 20:55
|
#1
|
elite*gold: 0
Join Date: Mar 2013
Posts: 154
Received Thanks: 506
|
[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 i = 1,table.getn(gmlist),1 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") == 0) then
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(s == 2) then 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") == 1) then
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(s == 2) then 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() < 75) then
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(s == 1) then
pc.warp(x,y)
end
end
when login with pc.get_map_index() == xxx begin
if(game.get_event_flag("castlewar_status") == 0) then
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() == 1) then -- 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() == 2) then -- 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() == 3) then -- 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™
|
|
|
03/14/2013, 21:21
|
#2
|
elite*gold: 30
Join Date: Aug 2009
Posts: 119
Received Thanks: 44
|
What should we do with this quest if we don't have the matching map .
|
|
|
03/14/2013, 21:22
|
#3
|
elite*gold: 350
Join Date: Oct 2011
Posts: 176
Received Thanks: 49
|
Thanks 4 share
|
|
|
03/14/2013, 21:26
|
#4
|
elite*gold: 0
Join Date: Jul 2012
Posts: 5,520
Received Thanks: 1,350
|
Thanks <3
|
|
|
03/14/2013, 21:28
|
#5
|
elite*gold: 0
Join Date: Mar 2013
Posts: 154
Received Thanks: 506
|
Quote:
Originally Posted by LuggexD
What should we do with this quest if we don't have the matching map .
|
 Threeway use the map
|
|
|
03/14/2013, 21:31
|
#6
|
elite*gold: 0
Join Date: Jul 2012
Posts: 4
Received Thanks: 2
|
Perfect
|
|
|
03/14/2013, 21:42
|
#7
|
elite*gold: 0
Join Date: Feb 2013
Posts: 268
Received Thanks: 425
|
Thanks 4 share
|
|
|
03/14/2013, 22:13
|
#8
|
elite*gold: 85
Join Date: Aug 2009
Posts: 177
Received Thanks: 39
|
Thanks 4 Share 
*and Nice Work*
☆RealPain
|
|
|
03/14/2013, 22:37
|
#9
|
elite*gold: 0
Join Date: Jan 2010
Posts: 328
Received Thanks: 434
|
thanks dude ^^
|
|
|
03/14/2013, 23:28
|
#10
|
elite*gold: 0
Join Date: Dec 2012
Posts: 27
Received Thanks: 2
|
Quote:
Originally Posted by HaveBeen™
PHP Code:
--[[
-- Castle War
-- Quest Writer By : HaveBeen™
-- For EPVP
]]--
quest castlewar begin
state start begin
function check()
local gmlist = {"HaveBeen"}
for i = 1,table.getn(gmlist),1 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") == 0) then
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(s == 2) then 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") == 1) then
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(s == 2) then 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() < 75) then
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(s == 1) then
pc.warp(x,y)
end
end
when login with pc.get_map_index() == xxx begin
if(game.get_event_flag("castlewar_status") == 0) then
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() == 1) then -- 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() == 2) then -- 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() == 3) then -- 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...
|
|
|
03/15/2013, 05:58
|
#11
|
elite*gold: 0
Join Date: Mar 2013
Posts: 154
Received Thanks: 506
|
Quote:
Originally Posted by LastSpartan300
Thanks for the release... but this quest does not work for me...
|
PHP Code:
local gmlist = {"HaveBeen"}
Edit this place
|
|
|
03/15/2013, 10:15
|
#12
|
elite*gold: 0
Join Date: Aug 2012
Posts: 836
Received Thanks: 250
|
|
|
|
03/15/2013, 10:39
|
#13
|
elite*gold: 0
Join Date: Dec 2012
Posts: 27
Received Thanks: 2
|
Quote:
Originally Posted by HaveBeen™
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!
|
|
|
03/15/2013, 12:17
|
#14
|
elite*gold: 0
Join Date: Mar 2013
Posts: 154
Received Thanks: 506
|
Quote:
Originally Posted by LastSpartan300
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 ^^
|
|
|
03/16/2013, 10:01
|
#15
|
elite*gold: 0
Join Date: Apr 2009
Posts: 4
Received Thanks: 3
|
nice work
|
|
|
 |
|
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 +1. The time now is 02:55.
|
|