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
Todoulis
Hello guys... :)
Ok i have a problem...someone in my server..from Augment..took a skill...
Item Skill : Silence (max lvl 10)
Skill Id : 3093
And it says...During a critical attack ..the enemy gets silenced blablabla :P
Ok..so i went to gameserver/data/skills/3000-3099
And i found this:
<skill id="3093" levels="10" name="Item Skill: Silence">
<table name="#chance"> 2 2 2 3 3 3 4 4 5 5 </table>
<table name="#triggeredLevel"> 1 2 3 4 5 6 7 8 9 10 </table>
<set name="target" val="TARGET_SELF"/>
<set name="skillType" val="BUFF"/>
<set name="operateType" val="OP_PASSIVE"/>
<set name="chanceType" val="ON_HIT"/>
<set name="activationChance" val="#chance"/>
<set name="triggeredId" val="5176"/>
<set name="triggeredLevel" val="#triggeredLevel"/>
</skill>
Ok i am not newbie with..fixing skills..but.. i know i can replace #chance with a number..but my problem is that...
If i put one number...
example
<skill id="3093" levels="10" name="Item Skill: Silence">
<table name="#chance"> 2 2 2 3 3 3 4 4 5 5 </table>
<table name="#triggeredLevel"> 1 2 3 4 5 6 7 8 9 10 </table>
<set name="target" val="TARGET_SELF"/>
<set name="skillType" val="BUFF"/>
<set name="operateType" val="OP_PASSIVE"/>
<set name="chanceType" val="ON_HIT"/>
<set name="activationChance" val="5"/>
<set name="triggeredId" val="5176"/>
<set name="triggeredLevel" val="#triggeredLevel"/>
</skill>
Is it 5% or what? :/
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.