Jump to content

Recommended Posts

Posted

Good Morning, Good Afternoon and Good Night

 

I came here to bring you something that I created

 

What did he do?

 

It inhibits the Skill selected by a configuration does not work until the Olympiad Starts up completely, and in the end it is usually returned.

 

doubt:

 

Plus it does not leave the skill works during the fight?

 

Not only it inhibits 60 seconds and when you give the 20 or 5 seconds depending on your Rev it is released for use

 

Tested on L2Jfrozen, and L2JDream L2Jbrasil and working perfectly!

 

 

Index: java/com/it/br/Config.java
=============================================
--- java/com/it/br/Config.java	(revision 306)
+++ java/com/it/br/Config.java	(revision 307)
	public static boolean ALLOW_SKILL_AUGMENTS_IN_OLYM;
+	public static boolean OLY_SKILL_PROTECT;
+	public static List<Integer> OLY_SKILL_LIST = new FastList<Integer>();

			ALLOW_SKILL_AUGMENTS_IN_OLYM = Boolean.parseBoolean(Olym.getProperty("AllowSkillAugmentInOlym", "True"));
+			OLY_SKILL_PROTECT = Boolean.parseBoolean(Olym.getProperty("OlySkillProtect", "True"));
+			for (String id : Olym.getProperty("OllySkillId","0").split(","))
+	    	{
+				OLY_SKILL_LIST.add(Integer.parseInt(id));
+	    	}
Index: java/com/it/br/gameserver/model/OlympiadGame;
==============================================================
--- java/com/it/br/gameserver/model/OlympiadGame;	(revision 306)
+++ java/com/it/br/gameserver/model/OlympiadGame;	(revision 307)
	protected void removals()
	{
		if(_aborted)
			return;

		for(L2PcInstance player : _players)
		{
			try
			{
+				if (Config.OLY_SKILL_PROTECT)
+				{
+					for(L2Skill skill : player.getAllSkills())
+					{
+						if (Config.OLY_SKILL_LIST.contains(skill.getId()))
+							player.disableSkill(skill.getId());
+						player.sendPacket(new ExShowScreenMessage ("This skill can not be used", 4000));
+					}
+				}

	protected void PlayersStatusBack()
	{
		for(L2PcInstance player : _players)
		{
			try
			{
				player.setCurrentCp(player.getMaxCp());
				player.setCurrentHp(player.getMaxHp());
				player.setCurrentMp(player.getMaxMp());

+				if (Config.OLY_SKILL_PROTECT)
+				{
+					for(L2Skill skill : player.getAllSkills())
+					{
+						if (Config.OLY_SKILL_LIST.contains(skill.getId()))
+							player.enableSkill(skill.getId());
+						player.updateEffectIcons();
+						player.sendPacket(new ExShowScreenMessage ("His skill can be used normally", 5000));
+					}
+				}

	protected void additions()
	{
		for(L2PcInstance player : _players)
		{
			try
			{
+				if (Config.OLY_SKILL_PROTECT)
+				{
+					for(L2Skill skill : player.getAllSkills())
+					{
+						if (Config.OLY_SKILL_LIST.contains(skill.getId()))
+							player.enableSkill(skill.getId());
+						player.updateEffectIcons();
+						player.sendPacket(new ExShowScreenMessage ("You can use your skill", 3000));
+					}
+				}

	protected boolean makeCompetitionStart()
	{
		if(_aborted)
			return false;

			try
			{
			for(L2PcInstance player : _players)
			{
				player.setIsOlympiadStart(true);
+				if (Config.OLY_SKILL_PROTECT)
+				{
+					for(L2Skill skill : player.getAllSkills())
+					{
+						if (Config.OLY_SKILL_LIST.contains(skill.getId()))
+							player.enableSkill(skill.getId());
+							player.updateEffectIcons();
+					}
+				}

  • 1 year later...
  • 3 weeks later...

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
    • Added: Promo Code System An admin can add promo codes from the admin panel. Promo code example: VIPBONUS777 Item ID and quantity, multiple gifts can be added Total number of promo codes issued (0 = unlimited) Promo code start date Promo code expiration date User verification and IP check   View demo: Demo  
    • SocNet is looking for new suppliers! — Snapchat accounts  — Reddit accounts with karma  — LinkedIn accounts with real connections Message us or contact support — let’s discuss terms! We’re also open to other partnership opportunities. Our Online Store Offers: ➡ Accounts: Telegram, Facebook, Reddit, Twitter (X), Instagram, YouTube, TikTok, Discord, VK, LinkedIn, GitHub, Snapchat, Gmail, Emails (Outlook, Firstmail, Rambler, Onet, Gazeta, GMX, Yahoo, Proton, Web.de), Google Voice, Google Ads ➡ Premium Subscriptions: Telegram Premium, Twitter Premium X, YouTube Premium, Spotify Premium, Netflix Premium, Discord Nitro, ChatGPT Plus/PRO, XBOX Game Pass ➡ Additional Services: Telegram Stars, Proxies (IPv4, IPv6, ISP, Mobile), VPN (Outline, WireGuard, etc.), VDS/RDP Servers SMM Panel Services: ➡ Use our SMM Panel to boost Facebook, Instagram, Telegram, Spotify, Soundcloud, YouTube, Reddit, Threads, Kick, Discord, LinkedIn, Likee, VK, Twitch, Kwai, Reddit, website traffic, TikTok, TrustPilot, Apple Music, Tripadvisor, Snapchat, and more. Promo code for store discount: PARTNER8 (8% off) Get $1 trial balance for the SMM Panel: Submit a ticket titled “Get Trial Bonus” via our website (Support) ➡ Go to the SMM Panel (clickable) or contact us through the bot Our Key Products: ➡ Online Store: Click ➡ Telegram Shop Bot: Click ➡ SMM Panel: Click Payments accepted: Bank cards · Crypto · Other popular methods Returning buyers receive extra discounts and promo codes! Support: ➡ Telegram: https://t.me/solomon_bog ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ Email: solomonbog@socnet.store ➡ Telegram Channel: https://t.me/accsforyou_shop You can also use these contacts to: — Discuss bulk orders — Form partnerships (Current partners: https://socnet.bgng.io/partners ) — Become our supplier SocNet — your digital goods & subscription store
    • SocNet is looking for new suppliers! — Snapchat accounts  — Reddit accounts with karma  — LinkedIn accounts with real connections Message us or contact support — let’s discuss terms! We’re also open to other partnership opportunities. Our Online Store Offers: ➡ Accounts: Telegram, Facebook, Reddit, Twitter (X), Instagram, YouTube, TikTok, Discord, VK, LinkedIn, GitHub, Snapchat, Gmail, Emails (Outlook, Firstmail, Rambler, Onet, Gazeta, GMX, Yahoo, Proton, Web.de), Google Voice, Google Ads ➡ Premium Subscriptions: Telegram Premium, Twitter Premium X, YouTube Premium, Spotify Premium, Netflix Premium, Discord Nitro, ChatGPT Plus/PRO, XBOX Game Pass ➡ Additional Services: Telegram Stars, Proxies (IPv4, IPv6, ISP, Mobile), VPN (Outline, WireGuard, etc.), VDS/RDP Servers SMM Panel Services: ➡ Use our SMM Panel to boost Facebook, Instagram, Telegram, Spotify, Soundcloud, YouTube, Reddit, Threads, Kick, Discord, LinkedIn, Likee, VK, Twitch, Kwai, Reddit, website traffic, TikTok, TrustPilot, Apple Music, Tripadvisor, Snapchat, and more. Promo code for store discount: PARTNER8 (8% off) Get $1 trial balance for the SMM Panel: Submit a ticket titled “Get Trial Bonus” via our website (Support) ➡ Go to the SMM Panel (clickable) or contact us through the bot Our Key Products: ➡ Online Store: Click ➡ Telegram Shop Bot: Click ➡ SMM Panel: Click Payments accepted: Bank cards · Crypto · Other popular methods Returning buyers receive extra discounts and promo codes! Support: ➡ Telegram: https://t.me/solomon_bog ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ Email: solomonbog@socnet.store ➡ Telegram Channel: https://t.me/accsforyou_shop You can also use these contacts to: — Discuss bulk orders — Form partnerships (Current partners: https://socnet.bgng.io/partners ) — Become our supplier SocNet — your digital goods & subscription store
    • SocNet is looking for new suppliers! — Snapchat accounts  — Reddit accounts with karma  — LinkedIn accounts with real connections Message us or contact support — let’s discuss terms! We’re also open to other partnership opportunities. Our Online Store Offers: ➡ Accounts: Telegram, Facebook, Reddit, Twitter (X), Instagram, YouTube, TikTok, Discord, VK, LinkedIn, GitHub, Snapchat, Gmail, Emails (Outlook, Firstmail, Rambler, Onet, Gazeta, GMX, Yahoo, Proton, Web.de), Google Voice, Google Ads ➡ Premium Subscriptions: Telegram Premium, Twitter Premium X, YouTube Premium, Spotify Premium, Netflix Premium, Discord Nitro, ChatGPT Plus/PRO, XBOX Game Pass ➡ Additional Services: Telegram Stars, Proxies (IPv4, IPv6, ISP, Mobile), VPN (Outline, WireGuard, etc.), VDS/RDP Servers SMM Panel Services: ➡ Use our SMM Panel to boost Facebook, Instagram, Telegram, Spotify, Soundcloud, YouTube, Reddit, Threads, Kick, Discord, LinkedIn, Likee, VK, Twitch, Kwai, Reddit, website traffic, TikTok, TrustPilot, Apple Music, Tripadvisor, Snapchat, and more. Promo code for store discount: PARTNER8 (8% off) Get $1 trial balance for the SMM Panel: Submit a ticket titled “Get Trial Bonus” via our website (Support) ➡ Go to the SMM Panel (clickable) or contact us through the bot Our Key Products: ➡ Online Store: Click ➡ Telegram Shop Bot: Click ➡ SMM Panel: Click Payments accepted: Bank cards · Crypto · Other popular methods Returning buyers receive extra discounts and promo codes! Support: ➡ Telegram: https://t.me/solomon_bog ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ Email: solomonbog@socnet.store ➡ Telegram Channel: https://t.me/accsforyou_shop You can also use these contacts to: — Discuss bulk orders — Form partnerships (Current partners: https://socnet.bgng.io/partners ) — Become our supplier SocNet — your digital goods & subscription store
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock