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
TheArchitect™
paidia exw ena problhme me tis armor mou alla den mporw na to brw an mporei na to entopisei kapoios as me help psaxnw edw kai mia wra.....
table error [Err] 1136 - Column count doesn't match value count at row 1
[Msg] Finished - Unsuccessfully
SQL
INSERT INTO `armor` VALUES ('9640', '9640', 'Blaze claret Helm', 'head', 'true', 'none', '570', 'cloth', 's', '0', '-1', '69', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9641', '9641', 'Blaze claret Breastplate', 'chest', 'true', 'heavy', '9780', 'leather', 's', '0', '-1', '278', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9642', '9642', 'Blaze claret Gaiter', 'legs', 'true', 'none', '580', 'leather', 's', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9642', '9642', 'Blaze claret Gauntlet', 'gloves', 'true', 'none', '580', 'leather', 's', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9643', '9643', 'Blaze claret boots', 'feet', 'true', 'none', '1130', 'blood_steel', 's', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9644', '9644', 'Blaze claret Brigandine', 'fullarmor', 'true', 'light', '5400', 'leather', 's', '0', '-1', '209', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9645', '9645', 'Blaze claret Leggings', 'legs', 'true', 'none', '580', 'leather', 's', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9646', '9646', 'Blaze claret Leather Gloves', 'gloves', 'true', 'none', '580', 'leather', 's', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9647', '9647', 'Blaze claret Boots', 'feet', 'true', 'none', '1130', 'blood_steel', 's', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9648', '9648', 'Blaze claret Tunic', 'fullarmor', 'true', 'magic', '2450', 'leather', 's', '0', '-1', '139', '0', '665', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9649', '9649', 'Blaze claret stockings', 'legs', 'true', 'none', '580', 'leather', 's', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9650', '9650', 'Blaze claret Silk Gloves', 'gloves', 'true', 'none', '580', 'leather', 's', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9651', '9651', 'Blaze claret Sandals', 'feet', 'true', 'none', '1130', 'blood_steel', 's', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
19 answers to this question
Recommended Posts