From e02e0c5cba6e83986da6fdce9c69a9201f9a271f Mon Sep 17 00:00:00 2001 From: L0ne_W0lf Date: Tue, 9 Sep 2008 17:33:10 +0000 Subject: Enabled WoE SE to be run independently of WoE. Let's see how long it is before something blows up, or Ultramage pulls out his hair while cursing my existence. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13202 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/script.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'src/map/script.c') diff --git a/src/map/script.c b/src/map/script.c index dc1a0fa6d..ceb0dab50 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -9079,6 +9079,22 @@ BUILDIN_FUNC(agitend) return 0; } +BUILDIN_FUNC(agitstart2) +{ + if(agit2_flag==1) return 0; // Agit2 already Start. + agit2_flag=1; + guild_agit2_start(); + return 0; +} + +BUILDIN_FUNC(agitend2) +{ + if(agit2_flag==0) return 0; // Agit2 already End. + agit2_flag=0; + guild_agit2_end(); + return 0; +} + /*========================================== * Returns whether woe is on or off. // choice script *------------------------------------------*/ @@ -9088,6 +9104,15 @@ BUILDIN_FUNC(agitcheck) return 0; } +/*========================================== + * Returns whether woese is on or off. // choice script + *------------------------------------------*/ +BUILDIN_FUNC(agitcheck2) +{ + script_pushint(st,agit2_flag); + return 0; +} + /// Sets the guild_id of this npc. /// /// flagemblem ; @@ -13419,5 +13444,9 @@ struct script_function buildin_func[] = { BUILDIN_DEF(mercenary_get_faith,"i"), BUILDIN_DEF(mercenary_set_calls,"ii"), BUILDIN_DEF(mercenary_set_faith,"ii"), + // WoE SE + BUILDIN_DEF(agitstart2,""), + BUILDIN_DEF(agitend2,""), + BUILDIN_DEF(agitcheck2,""), {NULL,NULL,NULL}, }; -- cgit v1.2.3-70-g09d2