Hello.
This code works well. It removes buff with double click, but If you preffer remove buff with ALT + mouse click, place this code in AbnormalStatusWnd.uc
function OnLButtonDown(WindowHandle a_WindowHandle, int X, int Y)
{
local Rect windowBounds;
local int targetRow;
local int targetCol;
local StatusIconInfo info;
local SkillInfo skillInfo;
if (IsKeyDown(IK_alt) == false)
return;
// Find window position
windowBounds = Me.GetRect();
// Process clicks outside of window frame only
if (X > (windowBounds.nX + NSTATUSICON_FRAMESIZE))
{
// Calc row and col of targeted icon
targetRow = (Y - windowBounds.nY) / NSTATUSICON_SIZE;
targetCol = (X - windowBounds.nX - NSTATUSICON_FRAMESIZE) / NSTATUSICON_SIZE;
// Store status info of targeted icon
StatusIcon.GetItem(targetRow, targetCol, info);
// Store actual skill info and make sure it is exists
if (GetSkillInfo(info.ClassID, info.Level, skillInfo))
{
// Request server to stop skill effect
// Usage: _dispel:<int:skill_id>,<int :skill_level>
// Example: _dispel:313,8
RequestBypassToServer ( "_dispel:" $ string ( skillInfo. SkillID ) $ "," $ string ( skillInfo. SkillLevel ) ) ) ;
}
}
}
Question
l2evidence
re paidia exw interlude
exw zitisei kiales fores voitheia gia ta stats ths dynasty
deite ligo sas parakalw ti lathos exw kanei?
<skill id="9050" levels="1" name="Dynasty Light Set">
<!-- Done by Inferiun -->
<set name="power" val="0.0"/>
<set name="target" val="TARGET_SELF"/>
<set name="skillType" val="BUFF"/>
<set name="operateType" val="OP_PASSIVE"/>
<set name="castRange" val="-1"/>
<set name="effectRange" val="-1"/>
<for>
<add val='219' order='0x10' stat='pAtk'/>
<add val='10000' order='0x40' stat='MaxCP'/>
<add val='10000' order='0x40' stat='MaxHP'/>
<add val='20' order='0x10' stat='mDef'/>
<add val='20' order='0x10' stat='mDef'/>
<add val='190' order='0x10' stat='pDef'/>
<add val='190' order='0x10' stat='pDef'/>
<add val='190' order='0x10' stat='pDef'/>
<add val='20' order='0x40' stat='darkRes'/> <!-- Dark resistence -->
<add order="0x40" stat="maxHp" val="393"/> <!-- hp +393 -->
<add order="0x40" stat="rEvas" val="1.5"/> <!-- Evasion+1.5 -->
<add order="0x40" stat="accCombat" val="1.5"/> <!-- Accuren +1.5 -->
<add order="0x40" stat="DEX" val="1"/> <!-- DEX +1 -->
<sub order="0x40" stat="CON" val="1"/> <!-- CON -1 -->
</for>
</skill>
2 answers to this question
Recommended Posts