Jump to content
  • 0

remove skills in olympiad


Question

Posted

hello.

 

ive added a skill for more max mp and every player in my server has that skill (its passive). my problem is that it unbalances oly so is there a way to remove it when players enter to an oly match? just remove the skill and then add it again when the match is over. thats all. is there a way to do it please?

 

i would search for other "remove skills" shares and i would adapt them to oly but i couldnt find any thats why im asking for your help guys.

 

so i say again what i need: i just need when somebody enters to an oly match a certain passive skill he has to be removed. the skill id is 9999 if this helps u :P

 

aaaaa and thanks in advance xD

Recommended Posts

  • 0
Posted

why every time u answer to everyone else except me? did i do something wrong? why u dont help me??? :(

Since no one talking to you i will try too help  :)

 

Assassina you can restrict usage of this skill by adding couple lines in skill xml

 

just an example of skil that dont work in oly mode

<skill id="456" levels="1" name="Symbol of Resistance">

<set name="target" val="TARGET_SELF" />

<set name="skillType" val="SIGNET" />

<set name="operateType" val="OP_ACTIVE" />

<set name="hitTime" val="5000" />

<set name="staticHitTime" val="true" />

<set name="reuseDelay" val="1800000" />

<set name="skillRadius" val="180" />

<set name="staticReuse" val="true" />

<set name="magicLvl" val="80" />

<set name="effectNpcId" val="13018" />

<set name="effectId" val="5125" />

<set name="power" val="200" />

<set name="itemConsumeId" val="8875" />

<set name="itemConsumeCount" val="1" />

<set name="mpInitialConsume" val="36" />

<set name="mpConsume" val="44" />

<cond msgId="1509">

<player olympiad="false" />

</cond>

<for>

<effect count="24" name="Signet" time="5" val="0" />

</for>

</skill>

 

so lines marked with red you need to put in you skill

tested and works on l2jserver

  • 0
Posted

sorry this doesnt work because i want the skill to be removed not to make the character unable to use it because its a passive skill so it doesnt really matter if u are unable to use it since u still have it in your skill list. it should be removed from every characters pasive skill list once they enter oly. :-\

 

something else pleeeeeeeeeeeeeeeese :(

  • 0
Posted

oh sorry

but i will keep it in mind if find a solution i will reply

please reply even if u dont find a solution so we can keep the topic on top because in a few minutes it will be third already xD

  • 0
Posted

i dont know if this will work, but try

<skill id="456" levels="1" name="Symbol of Resistance">

<set name="target" val="TARGET_SELF" />

<set name="skillType" val="SIGNET" />

<set name="operateType" val="OP_ACTIVE" />

<set name="hitTime" val="5000" />

<set name="staticHitTime" val="true" />

<set name="reuseDelay" val="1800000" />

<set name="skillRadius" val="180" />

<set name="staticReuse" val="true" />

<set name="magicLvl" val="80" />

<set name="effectNpcId" val="13018" />

<set name="effectId" val="5125" />

<set name="power" val="200" />

<set name="itemConsumeId" val="8875" />

<set name="itemConsumeCount" val="1" />

<set name="mpInitialConsume" val="36" />

<set name="mpConsume" val="44" />

<for>

<effect count="24" name="Signet" time="5" val="0">

<and>

                                                <player olympiad="false" />

</and>

              </effect>

</for>

</skill>

 

  • 0
Posted

sorry this doesnt work because i want the skill to be removed not to make the character unable to use it because its a passive skill so it doesnt really matter if u are unable to use it since u still have it in your skill list. it should be removed from every characters pasive skill list once they enter oly. :-\

 

something else pleeeeeeeeeeeeeeeese :(

  • 0
Posted

Search doCast method

 


        if(this instanceof L2PcInstance && ((L2PcInstance)this).isInOlympiadMode() && 
        		(skill.getId() == 1) || (skill.getId() == 2))
        {
        	SystemMessage sm = new SystemMessage(SystemMessageId.THIS_SKILL_IS_NOT_AVAILABLE_FOR_THE_OLYMPIAD_EVENT);
        	sendPacket(sm);
        	return;
        }

  • 0
Posted

Search doCast method

 


       if(this instanceof L2PcInstance && ((L2PcInstance)this).isInOlympiadMode() && 
       		(skill.getId() == 1) || (skill.getId() == 2))
       {
       	SystemMessage sm = new SystemMessage(SystemMessageId.THIS_SKILL_IS_NOT_AVAILABLE_FOR_THE_OLYMPIAD_EVENT);
       	sendPacket(sm);
       	return;
       }

no man its a passive skill. as apo2459 said i need something like the removal of the clan skills but i want to be able to change the skills id because the clan skills are not removed through id it just says "remove all clan skills from the passive skill list".

 

im just saying its a passive skill so it should be REMOVED not unable to be used.

  • 0
Posted

it's same shit.

Just instead of unable to use make it remove.

  • 0
Posted

im not sure if it will work. can u at least tell me where to add it pleaseeee? i tried to add it under this:

 

		public void doCast(L2Skill skill)
       {
		super.doCast(skill);

 

but it didnt work..... it had error in eclipse.

  • 0
Posted

im not sure if it will work. can u at least tell me where to add it pleaseeee? i tried to add it under this:

 

		public void doCast(L2Skill skill)
        {
		super.doCast(skill);

 

but it didnt work..... it had error in eclipse.

L2Character

Guest
This topic is now closed to further replies.


  • Posts

    • Where's the proof? I can tell you're a scammer.
    • Where was I called a scammer? Is there any proof, etc.? There are a lot of reviews about our store online, etc. https://zhyk.org/forum/showthread.php?t=1108673
    • U was reported as scammer in your previos topic why u create new topic?
    • 🔍 Inventory 1.0 is a next-generation inventory system that stands out with its special minimal clothing system. Carefully designed and prepared according to the highest standards of your server, it not only enhances your gaming experience but also contributes to your server's infrastructure. ⚙️ Supported: QB-CORE Features: ✅ Instant Delivery: All products you purchase will be instantly assigned to your account as soon as your payment is completed. ✅ Clothing System: With the special animated clothing configurations in your inventory, you will be able to change outfits with ease. Experience a unique roleplaying experience with high-quality animations and customizable clothing options. ✅ Minimalist Inventory System: This inventory system, with its visuals, animations, and mechanics, offers maximum efficiency without overwhelming your screen and limiting your roleplaying experience. It’s designed to be user-friendly while enhancing your roleplaying experience. ✅ Continuous Updates: The content in the inventory is regularly updated with innovative features added. New animations, additional clothing options, and cutting-edge features ensure a fresh and dynamic experience. ✅ Easy Setup and Compatibility: Compatible with QB-CORE, this system is easy to install and optimized for quick integration into your server. It works seamlessly with a simple drag-and-drop method. ✅ Performance Optimization: The system is optimized to avoid low FPS and performance drops. All features of the inventory run smoothly without affecting your server’s performance. ✅ Multilingual Support: With support for different languages, you can cater to an international player base and build a larger community on your server. ✅ Flexible Customization Options: You can fully customize the inventory according to your needs and server rules. Choose between different outfits and animations to create a unique gaming experience. ✅ Comprehensive Help and Support: With 24/7 support, you can quickly resolve any issues you encounter. Our technical support and user guides are always here to assist you. Shop Now! Take your game to the next level with Inventory 1.0  and enjoy its unique features. Get ready to make a real difference in your roleplaying experience!   --------------------------TEBEX: https://matza.tebex.io/package/7174862 --------------------------
  • 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