You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
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
mixalhs
gia se ola ta alania!!!
pws mporw na fixarw to rate apo ena skill px ...
<skill id="1056" levels="12" name="Cancellation">
<table name="#mpConsume_Init"> 9 10 11 11 11 12 12 13 13 13 14 14 </table>
<table name="#mpConsume"> 35 38 41 43 44 46 48 49 51 52 53 55 </table>
<table name="#magicLvl"> 48 52 56 58 60 62 64 66 68 70 72 74 </table>
<set name="mpInitialConsume" val="#mpConsume_Init"/>
<set name="mpConsume" val="#mpConsume"/>
<set name="magicLvl" val="#magicLvl"/>
<set name="power" val="5"/>
<set name="target" val="TARGET_ONE"/>
<set name="reuseDelay" val="125300"/>
<set name="hitTime" val="6000"/>
<set name="skillType" val="CANCEL"/>
<set name="isMagic" val="true"/>
<set name="operateType" val="OP_ACTIVE"/>
<set name="castRange" val="600"/>
<set name="effectRange" val="1100"/>
<set name="negateStats" val="BUFF"/>
<set name="negatePower" val="8.0"/>
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.