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
evala twra auta ta stats sto stats/skills gia dynasty alla pali tpt
<?xml version='1.0' encoding='utf-8'?>
<list>
<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>
<skill id="9051" levels="1" name="Dynasty Heavy 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='pAtkSpd'/>
<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='20' order='0x40' stat='darkRes'/> <!-- Dark resistence -->
<add order="0x40" stat="maxHp" val="393"/> <!-- hp +393 -->
<mul order="0x30" stat="pDef" val="1.0524"/> <!-- P. Def. +5.24% -->
<add order="0x40" stat="STR" val="1"/> <!-- STR +1 -->
<sub order="0x40" stat="DEX" val="1"/> <!-- DEX -1 -->
</for>
</skill>
<skill id="9052" levels="1" name="Dynasty Robe 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='mAtkSpd'/>
<add val='219' order='0x10' stat='mAtk'/>
<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='219' order='0x10' stat='pDef'/>
<add val='20' order='0x40' stat='darkRes'/> <!-- Dark resistence -->
<add order="0x40" stat="maxMp" val="257"/> <!-- hp +257 -->
<mul order="0x30" stat="mAtkSpd" val="1.0524"/> <!-- Casting Spd. +5,24% -->
<add order="0x40" stat="MEN" val="1"/> <!-- MEN +1 -->
<sub order="0x40" stat="INT" val="1"/> <!-- INT -1 -->
</for>
</skill>
</list>
ti mporeina ftaiei
1 answer to this question
Recommended Posts