re pedia exo l2jserver me compile kai mesa sta altsettings den iparxi tpt gia to npc class master i malon den tha to exi etc sto l2jserver epsaksa sta other rate sta options den brika tpt ti na kano
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
goustakis
re pedia exo l2jserver me compile kai mesa sta altsettings den iparxi tpt gia to npc class master i malon den tha to exi etc sto l2jserver epsaksa sta other rate sta options den brika tpt ti na kano
#-------------------------------------------------------------
# Class Master
#-------------------------------------------------------------
# Config for special Class Master npc that can change players occupation
# If you need change occupation only use quest then set this to False (Default)
# Syntax: occupation number;[required item id(count)],[],...;[reward item id(count)],[],...;occupation number...
# Examples:
#
# ConfigClassMaster=1;[];[];2;[];[];3;[];[]
# 1st occupation change for 100.000 Adena (item id 57)
# 2nd occupation change for 1.000.0000 Adena (item id 57)
# 3rd occupation change for 10.000.0000 Adena (item id 57) and 1.000.000 Ancient Adena (item id 5575)
# on 3rd occupation change player will be rewarded with 1 Book of Giants (item id 6622)
#
# ConfigClassMaster=1;[];[];2;[];[];3;[];[]
# 1st, 2nd, 3rd occupation change for free, without rewards
ConfigClassMaster = False
# Spawn Class Master npc if you have any in spawnlist. Default = False
SpawnClassMaster = False
# Allows Strider Update
ClassMasterUpdateStrider = False
gia na fiaksete to npc class master se l2jserver se interlude pate altsettings kai diorthoste afta
#-------------------------------------------------------------
# Skills config
#-------------------------------------------------------------
# Allow use Event Managers for change occupation
# If you need change occupation only use quest then set this to False
# Default = False
AllowClassMasters = True
# Life crystal needed to learn clan skills
LifeCrystalNeeded = True
# Spell Book needed to learn skills
SpBookNeeded = True
# Book needed to enchant skills
EnchantSkillSpBookNeeded = True
# Alternative skill learn rules:
# - all classes can learn all skills
# - skills of another class costs x2 SP
# - skills of another race costs x2 SP
# - skills of fighters/mages costs x3 SP
AltGameSkillLearn = True
# Allow player sub-class addition without checking for unique quest items.
AltSubClassWithoutQuests = True
9 answers to this question
Recommended Posts