So i want to make vengeance give buff only if any people are nearby. Current XML:
<skill id="368" toLevel="1" name="Vengeance">
<icon>icon.skill0368</icon>
<abnormalLvl>3</abnormalLvl>
<abnormalTime>30</abnormalTime>
<abnormalType>PD_UP_SPECIAL</abnormalType>
<affectLimit>10-10</affectLimit>
<affectRange>200</affectRange>
<effectPoint>-8784</effectPoint>
<hitTime>1000</hitTime>
<magicLvl>77</magicLvl>
<mpConsume>35</mpConsume>
<operateType>A3</operateType>
<reuseDelay>900000</reuseDelay>
<basicProperty>NONE</basicProperty>
<magicCriticalRate>5</magicCriticalRate>
<targetType>SELF</targetType>
<affectScope>POINT_BLANK</affectScope>
<affectObject>NOT_FRIEND</affectObject>
<conditions>
<condition name="EquipShield" />
</conditions>
<selfEffects>
<effect name="MagicalDefence">
<amount>4050</amount>
<mode>DIFF</mode>
</effect>
<effect name="PhysicalDefence">
<amount>5400</amount>
<mode>DIFF</mode>
</effect>
<effect name="ResistDispelByCategory">
<amount>-80</amount>
<slot>BUFF</slot>
</effect>
<effect name="Speed">
<amount>-40</amount>
<mode>PER</mode>
</effect>
</selfEffects>
</skill>
Tried to add: <effect name="Vengeance" />, got effecthandler for it, but question is in which overrided function i should perform the checks if the people are nearby? l2jmobius.