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.
×
×
  • Create New...