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
Vampirenios
ston server exw ena prob overlord dn trone dmg k skane pola ti allazw apo edw gia na mn skane dmg auto eine to skill tous
<skill id="1245" levels="14" name="Steal Essence" enchantGroup1="2" enchantGroup2="2" enchantGroup3="2">
<table name="#ench1Power"> 109 109 110 111 111 112 113 113 114 115 115 116 116 117 118 118 119 120 120 121 122 122 123 124 124 125 125 126 127 127 </table>
<table name="#enchantMagicLvl"> 76 76 76 77 77 77 78 78 78 79 79 79 80 80 80 81 81 81 82 82 82 82 83 83 83 84 84 85 85 85 </table>
<table name="#ench2mpInitialConsume"> 34 34 34 33 33 32 32 31 31 30 30 29 29 28 28 27 27 26 26 26 25 25 24 24 23 23 22 22 21 21 </table>
<table name="#ench2mpConsume"> 139 138 136 134 132 130 128 126 124 122 121 119 117 115 113 111 109 107 106 104 102 100 98 96 94 92 91 89 87 85 </table>
<table name="#mpInitialConsume"> 18 20 22 24 26 27 28 29 30 31 32 33 34 35 </table>
<table name="#mpConsume"> 74 80 90 98 107 111 116 120 124 128 132 136 139 142 </table>
<table name="#magicLvl"> 40 44 48 52 56 58 60 62 64 66 68 70 72 74 </table>
<table name="#power"> 52 58 65 72 78 82 85 89 92 96 99 102 105 108 </table>
<table name="#ench3absorbPart"> 0.8 0.81 0.82 0.82 0.83 0.84 0.84 0.85 0.86 0.86 0.87 0.88 0.88 0.89 0.9 0.9 0.91 0.92 0.92 0.93 0.94 0.94 0.95 0.96 0.96 0.97 0.98 0.98 0.99 1 </table>
<set name="mpInitialConsume" val="#mpInitialConsume" />
<set name="mpConsume" val="#mpConsume" />
<set name="magicLvl" val="#magicLvl" />
<set name="power" val="#power" />
<set name="target" val="TARGET_ONE" />
<set name="reuseDelay" val="2000" />
<set name="hitTime" val="4000" />
<set name="skillType" val="DRAIN" />
<set name="isMagic" val="true" />
<set name="operateType" val="OP_ACTIVE" />
<set name="castRange" val="900" />
<set name="effectRange" val="1400" />
<set name="absorbPart" val="0.8" /> <!-- absorbs 80% of damage -->
<enchant1 name="magicLvl" val="#enchantMagicLvl" />
<enchant1 name="power" val="#ench1Power" />
<enchant2 name="magicLvl" val="#enchantMagicLvl" />
<enchant2 name="mpConsume" val="#ench2mpConsume" />
<enchant2 name="mpInitialConsume" val="#ench2mpInitialConsume" />
<enchant3 name="magicLvl" val="#enchantMagicLvl" />
<enchant3 name="absorbPart" val="#ench3absorbPart" />
1 answer 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.