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
~Tomy~
Geia sas paidia molis ekana compile ena pack L2J ala mou vgazei to exeis error:
[javac] Note: D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\java\net\sf\l2j\gameserver\GeoEngine.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
Ayto ine olo mazi yparxi kapoio problima i einai ok?
Buildfile: D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build.xml
clean:
init:
[mkdir] Created dir: D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build
[mkdir] Created dir: D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\classes
[mkdir] Created dir: D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\dist
[mkdir] Created dir: D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\dist\login
[mkdir] Created dir: D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\dist\gameserver
version:
compile:
[javac] Compiling 1214 source files to D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\classes
[javac] Note: D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\java\net\sf\l2j\gameserver\GeoEngine.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
jar:
[jar] Building jar: D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\l2jserver.jar
[copy] Copying 1 file to D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\dist\login
[copy] Copying 1 file to D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\dist\gameserver
dist:
[copy] Copying 3 files to D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\dist\login
[copy] Copying 2 files to D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\dist\gameserver
[copy] Copying 4 files to D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\dist\login
[copy] Copying 8 files to D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\dist\gameserver
[copy] Copying 2 files to D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\dist
[copy] Copying 6 files to D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\dist
[copy] Copying 7 files to D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\dist\login
[copy] Copying 3 files to D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\dist\gameserver
[mkdir] Created dir: D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\dist\gameserver\log
[mkdir] Created dir: D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\dist\login\log
[mkdir] Created dir: D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\dist\gameserver\hibernate-mapping
[mkdir] Created dir: D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\dist\login\config
[copy] Copying 16 files to D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\dist\gameserver\config
[copy] Copying 2 files to D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\dist\login\config
[mkdir] Created dir: D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\dist\gameserver\data
[copy] Copying 1 file to D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\dist\gameserver\data
[mkdir] Created dir: D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\dist\gameserver\data\geodata
[copy] Copying 1 file to D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\dist\gameserver\data\geodata
[mkdir] Created dir: D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\dist\gameserver\data\pathnode
[copy] Copying 1 file to D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\dist\gameserver\data\pathnode
[zip] Building zip: D:\Program Files\EA Games\ECLIPSE WorkSpace\L2_GameServer_It\build\l2j-server.zip
BUILD SUCCESSFUL
Total time: 16 seconds
3 answers to this question
Recommended Posts