Jump to content
  • 0

[Help] Cancel Code


Question

Posted

Hello,I wanted to ask if any developer can help me to find/write a code.

I want make Cancel skills work only on olympiad games!

Skills: Cancellation - 1056

Steal Divinity - 1440

Touch of Death - 342

 

and if there any skills I forgot..add them too please!!

 

For Freya Client CT2.5

8 answers to this question

Recommended Posts

  • 0
Posted

The point of such section isn't to give you code you can apply on your server and "kktygtfo", it's to help ppl writing it.

 

There's an skillhandler for all cancel type skills, begin by that. Write something, and show here if not working.

  • 0
Posted

The point of such section isn't to give you code you can apply on your server and "kktygtfo", it's to help ppl writing it.

 

There's an skillhandler for all cancel type skills, begin by that. Write something, and show here if not working.

ok thnx for info :)

and if u can be more specifically..

Gameserver\java\com\l2jserver\gameserver\handler\IskillHandler

or

Gameserver\java\com\l2jserver\gameserver\handler\SkillHandler

 

  • 0
Posted


### Eclipse Workspace Patch 1.0
#P testGameserver
Index: java/net/sf/l2j/gameserver/handler/skillhandlers/Disablers.java
===================================================================
--- java/net/sf/l2j/gameserver/handler/skillhandlers/Disablers.java	(revision 5117)
+++ java/net/sf/l2j/gameserver/handler/skillhandlers/Disablers.java	(working copy)
@@ -445,6 +445,12 @@
                     // cancel
                     if (skill.getId() == 1056)
                     {
+                    	if(!((L2PcInstance) activeChar).isInOlympiadMode())
+                		{
+                			((L2PcInstance) activeChar).sendMessage("You can use this skill in olympiad only");
+                			return;
+                		}
+                    		
                     	int lvlmodifier= 52+skill.getMagicLevel()*2;
                     	if(skill.getMagicLevel()==12) lvlmodifier = (Experience.MAX_LEVEL - 1);
                     	int landrate = 90;

 

this is for 1056 id, now i think you can do the others as well.

  • 0
Posted


### Eclipse Workspace Patch 1.0
#P testGameserver
Index: java/net/sf/l2j/gameserver/handler/skillhandlers/Disablers.java
===================================================================
--- java/net/sf/l2j/gameserver/handler/skillhandlers/Disablers.java	(revision 5117)
+++ java/net/sf/l2j/gameserver/handler/skillhandlers/Disablers.java	(working copy)
@@ -445,6 +445,12 @@
                     // cancel
                     if (skill.getId() == 1056)
                     {
+                    	if(!((L2PcInstance) activeChar).isInOlympiadMode())
+                		{
+                			((L2PcInstance) activeChar).sendMessage("You can use this skill in olympiad only");
+                			return;
+                		}
+                    		
                     	int lvlmodifier= 52+skill.getMagicLevel()*2;
                     	if(skill.getMagicLevel()==12) lvlmodifier = (Experience.MAX_LEVEL - 1);
                     	int landrate = 90;

 

this is for 1056 id, now i think you can do the others as well.

 

Thnx but sorry I didn't saw I need it for freya client...I do not have "Disablers.java" file on my package...

anyone also has ideas?

  • 0
Posted

Rofl. This sh1t with items/skills restriction while you're at the olympiad already exist!

 


### Eclipse Workspace Patch 1.0
#P stats
Index: skills/00300-00399.xml
===================================================================
--- skills/00300-00399.xml	(revision 8641)
+++ skills/00300-00399.xml	(working copy)
@@ -1193,6 +1193,9 @@
		<enchant1 name="magicLvl" val="#enchantMagicLvl" />
		<enchant1 name="hpConsume" val="#ench1hpConsume" />
		<enchant2 name="magicLvl" val="#enchantMagicLvl" />
+		<cond msgId="1509">
+			<player olympiad="false" />
+		</cond>
		<for>
			<effect name="Debuff" abnormalTime="120" val="0" effectPower="80" effectType="DEBUFF" abnormalLvl="1" abnormalType="touch_of_death">
				<mul order="0x30" stat="maxCp" val="0.1" />
Index: skills/01400-01499.xml
===================================================================
--- skills/01400-01499.xml	(revision 8641)
+++ skills/01400-01499.xml	(working copy)
@@ -1158,6 +1158,9 @@
		<set name="operateType" val="OP_ACTIVE" />
		<set name="castRange" val="600" />
		<set name="effectRange" val="1100" />
+		<cond msgId="1509">
+			<player olympiad="false" />
+		</cond>
	</skill>
	<skill id="1441" levels="3" name="Soul to Empower">
		<!-- CT2.5 retail confirmed & Updated to H5 -->
Index: skills/01000-01099.xml
===================================================================
--- skills/01000-01099.xml	(revision 8641)
+++ skills/01000-01099.xml	(working copy)
@@ -1090,6 +1090,9 @@
		<set name="castRange" val="600" />
		<set name="effectRange" val="1100" />
		<set name="maxNegated" val="5" />
+		<cond msgId="1509">
+			<player olympiad="false" />
+		</cond>
	</skill>
	<skill id="1059" levels="3" name="Empower" enchantGroup1="1" enchantGroup2="1">
		<table name="#enchantMagicLvl"> 76 76 76 77 77 77 78 78 78 79 79 79 80 80 80 81 81 81 82 82 82 83 83 83 84 84 84 85 85 85 </table>

  • 0
Posted

Just add this line to skills you want only to be used in olly:

<cond msgId="1509">

<player olympiad="false" />

</cond>

 

Find skill in data/stats/skills and add this line to skill you want to use in olly only

 

 

 

  • 0
Posted

none helped me,but thnx for trying,close topic so spam will stop Thnx

If you judge people "spam" your topics with answers, avoid to post in this section.

 

Topic closed.

Guest
This topic is now closed to further replies.


  • Posts

    • SOCNET — is a universal service combining a digital goods store, an SMM panel, and a Telegram bot for purchasing Telegram Stars; here you will find TikTok, Instagram, Reddit, Twitter, Telegram, Facebook, LinkedIn, WhatsApp, SnapChat, YouTube, Google, Discord accounts, emails (Outlook, Hotmail, Gmail, Rambler, Firstmail, and others), access to ChatGPT 5, gift cards, and premium subscriptions to many services — all at the best prices! We are currently actively looking for new suppliers for various product categories, which include: Priority list of positions: — Snapchat old and new accounts | With snapscores | Geo: Europe/USA | Full access via email/phone number — Reddit old accounts (brute or cracked origin, self-regs) with post and comment karma from 100 up to 100,000+ | Full access with email included — LinkedIn old accounts with real connections | Geo: Europe/USA | Full email access + active 2FA password — Instagram old accounts (2010-2023) | Full email access (possibly with attached 2FA password) — Facebook old accounts (2010-2023) | Full email access (possibly with attached 2FA password) | With friends or without friends | Geo: Europe/USA/Asia — Threads accounts | Full email access (possibly with attached 2FA password) — TikTok/Facebook/Google ADS Agency advertising accounts We are also open to considering other product categories from you, feel free to contact us through the details listed below in this thread! ⚡ Terms of cooperation: ⚡ 1. You prepare a preliminary description of your product 2. We publish your product in our online store and Telegram bots (in both Russian and English). 3. After the product is sold in our stores, we transfer the funds to you by any convenient method within 24 hours from the moment of sale (any cryptocurrency, PayPal, Payeer, TG Stars, and other methods)   ‼ If you have doubts about working with us or are afraid to send the product first, we agree to work through an escrow service of a trusted provider, or you can simply check out the huge base of reviews about our services in this Google document (reviews from our website, Telegram bot, and other platforms where our products are listed). Document ⭐ We invite you to COOPERATE and EARN with us ⭐ Do you want to sell your product or service in our stores and earn money? Become our partner or propose mutually beneficial cooperation? Become our wholesale client and receive the best conditions and discounts? You can contact us through the CONTACTS listed in this thread. We build a reliable partnership network in all areas of online business. We are ready to participate in joint content creation, giveaways, and events! If you work in digital, traffic, accounts, or media and other fields — let’s discuss possible cooperation. We value quality, transparency, and growth. If this resonates with you — write to us, we are open to dialogue! Our current list of partners ⭐ Our contacts ⭐ ➡ Telegram ➡ WhatsApp ➡ Email: solomonbog@socnet.store ➡ Discord: socnet_support ⭐ Our online store ⭐ SOCNET.STORE ⭐ Our Telegram bot for purchasing Telegram Stars ⭐ SOCNET.CC ⭐ Our SMM Panel for social media promotion ⭐ SOCNET.PRO ⭐ Telegram shop ⭐ SOCNET.SHOP   ✅ News resources ➡ Telegram channel ➡ Discord server ➡ WhatsApp channel
    • SOCNET — is a universal service combining a digital goods store, an SMM panel, and a Telegram bot for purchasing Telegram Stars; here you will find TikTok, Instagram, Reddit, Twitter, Telegram, Facebook, LinkedIn, WhatsApp, SnapChat, YouTube, Google, Discord accounts, emails (Outlook, Hotmail, Gmail, Rambler, Firstmail, and others), access to ChatGPT 5, gift cards, and premium subscriptions to many services — all at the best prices! We are currently actively looking for new suppliers for various product categories, which include: Priority list of positions: — Snapchat old and new accounts | With snapscores | Geo: Europe/USA | Full access via email/phone number — Reddit old accounts (brute or cracked origin, self-regs) with post and comment karma from 100 up to 100,000+ | Full access with email included — LinkedIn old accounts with real connections | Geo: Europe/USA | Full email access + active 2FA password — Instagram old accounts (2010-2023) | Full email access (possibly with attached 2FA password) — Facebook old accounts (2010-2023) | Full email access (possibly with attached 2FA password) | With friends or without friends | Geo: Europe/USA/Asia — Threads accounts | Full email access (possibly with attached 2FA password) — TikTok/Facebook/Google ADS Agency advertising accounts We are also open to considering other product categories from you, feel free to contact us through the details listed below in this thread! ⚡ Terms of cooperation: ⚡ 1. You prepare a preliminary description of your product 2. We publish your product in our online store and Telegram bots (in both Russian and English). 3. After the product is sold in our stores, we transfer the funds to you by any convenient method within 24 hours from the moment of sale (any cryptocurrency, PayPal, Payeer, TG Stars, and other methods)   ‼ If you have doubts about working with us or are afraid to send the product first, we agree to work through an escrow service of a trusted provider, or you can simply check out the huge base of reviews about our services in this Google document (reviews from our website, Telegram bot, and other platforms where our products are listed). Document ⭐ We invite you to COOPERATE and EARN with us ⭐ Do you want to sell your product or service in our stores and earn money? Become our partner or propose mutually beneficial cooperation? Become our wholesale client and receive the best conditions and discounts? You can contact us through the CONTACTS listed in this thread. We build a reliable partnership network in all areas of online business. We are ready to participate in joint content creation, giveaways, and events! If you work in digital, traffic, accounts, or media and other fields — let’s discuss possible cooperation. We value quality, transparency, and growth. If this resonates with you — write to us, we are open to dialogue! Our current list of partners ⭐ Our contacts ⭐ ➡ Telegram ➡ WhatsApp ➡ Email: solomonbog@socnet.store ➡ Discord: socnet_support ⭐ Our online store ⭐ SOCNET.STORE ⭐ Our Telegram bot for purchasing Telegram Stars ⭐ SOCNET.CC ⭐ Our SMM Panel for social media promotion ⭐ SOCNET.PRO ⭐ Telegram shop ⭐ SOCNET.SHOP   ✅ News resources ➡ Telegram channel ➡ Discord server ➡ WhatsApp channel
    • sell adena, items, account l2rebon signature x1 - 1kk = 1 dollars l2reborn x10 - 500kk = 4 dollars E-Global x Lu4 - 1kk = 2 dollars BOHPTS - x20-x500 TOP PRICE DISCORD - GODDARDSHOP TELEGRAM - MMOPROMO THE BEST PRICES IN THE WORLD OF LINEAGE 2
    • Can you reupload system patch?
    • he was my customer many years ago, i setup his acp and some statistics on his website, plus some security it is big difference than "friend"   its more dissapointment than hate, take example acis, how many years still development. PS: you know i was selling websites and i still sell donate panels for l2 servers right?
  • 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