Jump to content

[Freya] Ctf Fully Configurable!


FFs

Recommended Posts

Capture the Flag - Freya - Last Rev

 

Freatures:

 

- Possibility to turn if ON/OFF into l2jmods.properties

- Time interval configurable into l2jmods.properties

- Red and blue glow for teams like during a party duel

- Commands

- Admin Commands

 

This code is based on the one here: http://www.l2jserver.com/forum/viewtopic.php?f=73&t=11576

 

Credits:

 

Nerimah - L2JServer

 

Download:

 

http://www.mediafire.com/?u5i7hswl57ffsla

 

Tested:

 

23/06/11 - Tested and Working!

 

Installation:

 

Read: "how_to_install.txt" into the .rar file.

 

Enjoy it!

 


 

Fix for old revisions - 25/06/11:

That code will fix errors on PcStat.java and L2PcInstance.java and add some lines at SystemMessageId.java

 

 

### Eclipse Workspace Patch 1.0
#P L2J_Server
Index: java/com/l2jserver/gameserver/model/actor/stat/PcStat.java
===================================================================
--- java/com/l2jserver/gameserver/model/actor/stat/PcStat.java	(revision 4668)
+++ java/com/l2jserver/gameserver/model/actor/stat/PcStat.java	(working copy)
@@ -21,6 +21,7 @@
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.actor.instance.L2PetInstance;
import com.l2jserver.gameserver.model.base.Experience;
+import com.l2jserver.gameserver.model.entity.CTF;
import com.l2jserver.gameserver.model.entity.RecoBonus;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.network.SystemMessageId;
@@ -235,6 +236,13 @@
			getActiveChar().sendPacket(SystemMessage.getSystemMessage(SystemMessageId.YOU_INCREASED_YOUR_LEVEL));

			L2ClassMasterInstance.showQuestionMark(getActiveChar());
+			
+			if (getActiveChar().isInFunEvent())
+			{
+				if (getActiveChar()._inEventCTF && CTF._maxlvl == getLevel() && !CTF._started)
+					CTF.removePlayer(getActiveChar());
+				getActiveChar().sendMessage("Your event sign up was canceled.");
+			}
		}

		getActiveChar().rewardSkills(); // Give Expertise skill of this level

### Eclipse Workspace Patch 1.0
#P L2J_Server
Index: java/com/l2jserver/gameserver/network/SystemMessageId.java
===================================================================
--- java/com/l2jserver/gameserver/network/SystemMessageId.java	(revision 4668)
+++ java/com/l2jserver/gameserver/network/SystemMessageId.java	(working copy)
@@ -14693,6 +14693,12 @@
	public static final SystemMessageId THOMAS_D_TURKEY_DISAPPEARED;

	/**
+	 * ID: 6506<br>
+	 * Message: You cannot mount a Steed while holding a flag!
+	 */	
+	public static SystemMessageId YOU_CANNOT_MOUNT_A_STEED_WHILE_HOLDING_A_FLAG = null;
+	
+	/**
	 * Array containing all SystemMessageIds<br>
	 * Important: Always initialize with a length of the highest SystemMessageId + 1!!!
	 */
@@ -17116,6 +17122,7 @@
		THOMAS_D_TURKEY_APPEARED = new SystemMessageId(6503);
		THOMAS_D_TURKEY_DEFETED = new SystemMessageId(6504);
		THOMAS_D_TURKEY_DISAPPEARED = new SystemMessageId(6505);
+		YOU_CANNOT_MOUNT_A_STEED_WHILE_HOLDING_A_FLAG = new SystemMessageId(6506);

		buildFastLookupTable();
	}
### Eclipse Workspace Patch 1.0
#P L2J_Server
Index: java/config/l2jmods.properties
===================================================================
--- java/config/l2jmods.properties	(revision 4668)
+++ java/config/l2jmods.properties	(working copy)
@@ -221,6 +242,62 @@

# ---------------------------------------------------------------------------
+# Setting for Capture The Flag
+# ---------------------------------------------------------------------------
+#This parameter is to turn on/off the auto CTF at server start .
+#If True, it writes into gameserver console: CTFEventEngine: Started.
+#If Flase, it writes into gameserver console: CTFEventEngine: Engine is disabled.
+
+CTFEventEnabled = True  
+
+#This is where you will chose the time where the CTF Event will take place automatically
+# Times CTF will occur (24h format)
+CTFEventInterval = 7:00,11:00,15:00,19:00,23:00,3:00
+
+# CTFEvenTeams = NO|BALANCE|SHUFFLE
+# NO means: not even teams.
+# BALANCE means: Players can only join team with lowest player count.
+# SHUFFLE means: Players can only participate to the event and not direct to a team. Teams will be shuffled on teams teleport.
+CTFEvenTeams = SHUFFLE
+
+# Allow voiced command on CTF Event?
+CTFAllowVoiceCommand = False
+
+# Players that are not participating in CTF can target ctf participants?
+CTFAllowInterference = False
+
+# CTF participants can use potions?
+CTFAllowPotions = False
+
+# CTF participants can summon by item?
+CTFAllowSummon = False
+
+# Remove all effects of CTF participants on event start?
+CTFOnStartRemoveAllEffects = True
+
+# Unsummon pet of CTF participants on event start?
+CTFOnStartUnsummonPet = True
+
+# On revive participants regain full HP/MP/CP?
+CTFReviveRecovery = False
+
+# Announce all team statistics
+CTFAnnounceTeamStats = False
+
+# Announce reward
+CTFAnnounceReward = False
+
+# Players with cursed weapon are allowed to join?
+CTFJoinWithCursedWeapon = True
+
+# Delay on revive when dead, NOTE: 20000 equals to 20 seconds, minimum 1000 (1 second)
+CTFReviveDelay = 20000
+
+# Would you like to have a base for the players to have first, then teleport into battle?
+# If True, You must set-up in CTF admin panel
+CTFTeleportToBaseFirst = True
+
+# ---------------------------------------------------------------------------
# L2J Banking System
# ---------------------------------------------------------------------------
# Enable/Disable Banking System

 

Fix by:

- FFs

 


 

New Update (28/06/11):

 

- Team color glow fixed

- CTF intervals fixed

 

Download:

 

http://www.mediafire.com/?okvxhauyctanbjd

Link to comment
Share on other sites

i don't think so i added patch in last rev and it giving me error in some lines

u wanna screen, huh ?

 

If to him works, that mean u're newbie and u're not able to add a shit like this.

Link to comment
Share on other sites

@BlackDevilDev - Thanx :)

@ss42ss - Tell me how its works for u :)

@serverl2 - Np, if you are happy, i'm happy

@marwan - I need a screen to belive it

@Legend™ - Tell me in what file gives you an error

Link to comment
Share on other sites

Gonna test and provide feedback if it works and maybe possible errors..... (Im sure that there are no problems about compiling...) ....

 

Thanks FFs for your share!

 

Np pipiou21, test it and tell us :), but what i said.... you will have no problems with the event, i tested it

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




  • Posts

    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchihamkt.mysellix.io/ Join our server for more products : https://discord.gg/hood-services https://campsite.bio/utchihaamkt  
    • Server Rates: » Xp 500x. » Sp 500x. » Aden 500x. » Drop 1x. » PartyXp 2x. » PartySp 2x. » Starting character level -61. Enchant rates: » Safe enchant +4. » Blessed and simple scrolls max enchant (+16). » Crystal scrolls max enchant (+20). » Simple enchant scrolls chance – 65%. » Blessed enchant scrolls chance – 100%. » Crystal enchant scrolls chance – 50% Augmentations: » Mid life stone skill chance – 5%. » High life stone skill chance – 10%. » Top life stone skill chance – 20%. » Augments 1+1 Unique features: » Main town – Giran » Automatic-Manual Potions. » Working 2 castle sieges. (Giran-Aden) » SPS cancel lasts 10 seconds and than buffs come back. » Stackable scrolls, lifestones, book of giants. » Unique pvp zone » More then 11 active raid bosses. » Wedding system. » Unique farming areas. » Npc skill enchanter. » Full npc buffer with auto buff. » Max count of buffs – 55. » Max subclasses – 4. » Free and no quest class change. » Free and no quest sub class. » Raid boss drop nobless item. » No weight limit. » Unique protection anti-hwy armor for archers/daggers etc. » Ingame password change. » Top pvp/pk/online ranks NPC. » Unique monsters & NPC. » Interlude retail skills. » Server up-time [24/7] [99]%. » Perfect class balance (all class can kill all class depending on players skill and setup knowledge,gear,augmentations). » Announcements on double kills triple kills etc. » Announcements on Grand Boss death , with the name of the killer as well as clan name of the player. » Information Npc in game with all servers infromations. Custom server gear : 1). Titanium Armor Lv.1 2). Epic Armor Lv.2 3). Epic Weapons-Kamikaze-Black S grade (Same Stats) 4). Demonic-Angelic Wings-Baium Hair-Custom Accessories (SameStats) 5). Custom Fighter/Mage tattoo Lv1-Lv2-Lv3 6). Shirt (STR,CON,INT +1) 7). Custom Shields Server Commands: .tvtjoin .tvtleave – Join or leave tvt event. .ctfjoin .ctfleave – Join or leave ctf event. .dmjoin .dmleave – Join of leave dm event. .online – current online players count. .repair – repairs stuck character in world. .menu – opens online menu panel. .exit – PVP zone exit in case you are bullied. .changepassword - Opens online menu then u can change ur password in game. .farm - Enable/disable autofarm Event system: » TVT event » CTF event » DM event » Tournament Event » Party Zone » Unique event shop. Olympiad game: » Retail olympiad game. » Competition period [1] week. » Olympiad start time [18:00] end [00:00] GMT+2. » New Heroes every Sunday.
    • Tomorrow grand opening lests go 🙂 
  • Topics

×
×
  • Create New...