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
Loren
pedia otan to anigo na to kano edit m lei auta:
SHOW_GM_LOGIN #net/sf/l2j/gameserver/Announcements '()Lnet/sf/l2j/gameserver/Announcements;
announceToAll PLAYER_SPAWN_PROTECTION
setProtection getX getY getZ spawnMe (III)V getAI *()Lnet/sf/l2j/gameserver/ai/L2CharacterAI; &net/sf/l2j/gameserver/ai/CtrlIntention AI_INTENTION_IDLE (Lnet/sf/l2j/gameserver/ai/CtrlIntention; &net/sf/l2j/gameserver/ai/L2CharacterAI setIntention +(Lnet/sf/l2j/gameserver/ai/CtrlIntention;)V setTarget )(Lnet/sf/l2j/gameserver/model/L2Object;)VA Anet/sf/l2j/gameserver/datatables/MapRegionTable$TeleportWhereType TeleportWhereType InnerClasses Town CLnet/sf/l2j/gameserver/datatables/MapRegionTable$TeleportWhereType; teleToLocation F(Lnet/sf/l2j/gameserver/datatables/MapRegionTable$TeleportWhereType;)V *net/sf/l2j/gameserver/model/entity/L2Event active connectionLossData Ljava/util/HashMap; java/util/HashMap containsKey (Ljava/lang/Object;)Z isOnEvent <(Lnet/sf/l2j/gameserver/model/actor/instance/L2PcInstance;)Z restoreChar restoreAndTeleChar net/sf/l2j/gameserver/SevenSigns $()Lnet/sf/l2j/gameserver/SevenSigns; isSealValidationPeriod
sendPacket C(Lnet/sf/l2j/gameserver/network/serverpackets/L2GameServerPacket;)V STORE_SKILL_COOLTIME restoreEffects
ALLOW_WEDDING getPartnerId isMaried getInventory 0()Lnet/sf/l2j/gameserver/model/item/PcInventory; ,net/sf/l2j/gameserver/model/item/PcInventory getItemByItemId /(I)Lnet/sf/l2j/gameserver/model/L2ItemInstance; destroyItem h(Ljava/lang/String;Lnet/sf/l2j/gameserver/model/L2ItemInstance;Lnet/sf/l2j/gameserver/model/L2Object;Z)Z updateDatabase getAccountName info
getAllEffects )()[Lnet/sf/l2j/gameserver/model/L2Effect; $net/sf/l2j/gameserver/model/L2Effect
getEffectType
EffectType 3()Lnet/sf/l2j/gameserver/model/L2Effect$EffectType; /net/sf/l2j/gameserver/model/L2Effect$EffectType HEAL_OVER_TIME 1Lnet/sf/l2j/gameserver/model/L2Effect$EffectType; stopEffects 4(Lnet/sf/l2j/gameserver/model/L2Effect$EffectType;)V removeEffect )(Lnet/sf/l2j/gameserver/model/L2Effect;)V COMBAT_POINT_HEAL_OVER_TIME getAugmentedItems /()[Lnet/sf/l2j/gameserver/model/L2ItemInstance; *net/sf/l2j/gameserver/model/L2ItemInstance
isEquipped getAugmentation .()Lnet/sf/l2j/gameserver/model/L2Augmentation; *net/sf/l2j/gameserver/model/L2Augmentation
applyBonus getMacroses )()Lnet/sf/l2j/gameserver/model/MacroList; %net/sf/l2j/gameserver/model/MacroList
sendUpdate DONATOR_DELETE_RENTED_ITEMS donatorDeleteDelayedRentedItems -net/sf/l2j/gameserver/network/SystemMessageId WELCOME_TO_LINEAGE /Lnet/sf/l2j/gameserver/network/SystemMessageId; 2(Lnet/sf/l2j/gameserver/network/SystemMessageId;)V SHOW_L2J_LICENSE S1_S2 addString O(Ljava/lang/String;)Lnet/sf/l2j/gameserver/network/serverpackets/SystemMessage; 'net/sf/l2j/gameserver/LoginServerThread +()Lnet/sf/l2j/gameserver/LoginServerThread;
getServerName SERVER_VERSION SERVER_BUILD_DATE sendCurrentPeriodMsg showAnnouncements 2net/sf/l2j/gameserver/instancemanager/CrownManager 6()Lnet/sf/l2j/gameserver/instancemanager/CrownManager; checkCrowns 'net/sf/l2j/gameserver/model/quest/Quest playerEnter checkBanChat getPvpKills PVP_AMOUNT1 PVP_COLOR_SYSTEM_ENABLED updatePvPColor
getPkKills
PK_AMOUNT1 PK_COLOR_SYSTEM_ENABLED
updatePkColor ALLOW_AUTOHERBS_CMD getAutoLootHerbs ALLOW_WITHDRAW_CWH_CMD getCanWithdrawCWH isDonator DONATOR_NAME_COLOR sendMessage isKoof ENABLE_FACTION_KOOFS_NOOBS KOOFS_NAME_COLOR KOOFS_NAME_TEAM isNoob NOOBS_NAME_COLOR NOOBS_NAME_TEAM ONLINE_PLAYERS_AT_STARTUP
getAllPlayers ()Ljava/util/Collection; java/util/Collection size PLAYERS_ONLINE_TRICK addNumber >(I)Lnet/sf/l2j/gameserver/network/serverpackets/SystemMessage; 5net/sf/l2j/gameserver/instancemanager/PetitionManager 9()Lnet/sf/l2j/gameserver/instancemanager/PetitionManager; checkPetitionMessages SHOW_HTML_WELCOME ,net/sf/l2j/gameserver/services/WindowService
sendWindow `(Lnet/sf/l2j/gameserver/model/actor/instance/L2PcInstance;Ljava/lang/String;Ljava/lang/String;)V SHOW_HTML_NEWBIE LEVEL_HTML_NEWBIE CHECK_SKILLS_ON_ENTER ALT_GAME_SKILL_LEARN checkAllowedSkills getClanId getClan &()Lnet/sf/l2j/gameserver/model/L2Clan; `(Lnet/sf/l2j/gameserver/model/L2Clan;Lnet/sf/l2j/gameserver/model/actor/instance/L2PcInstance;)V '(Lnet/sf/l2j/gameserver/model/L2Clan;)V isAlikeDead ,(Lnet/sf/l2j/gameserver/model/L2Character;)V 'net/sf/l2j/gameserver/model/entity/Hero +()Lnet/sf/l2j/gameserver/model/entity/Hero; getHeroes ()Ljava/util/Map; java/lang/Integer valueOf (I)Ljava/lang/Integer;
java/util/Map setHero setOnlineStatus
onPlayerEnter -net/sf/l2j/gameserver/datatables/PcColorTable 1()Lnet/sf/l2j/gameserver/datatables/PcColorTable; process NPCBUFFER_FEATURE_ENABLED 1net/sf/l2j/gameserver/datatables/CharSchemesTable 5()Lnet/sf/l2j/gameserver/datatables/CharSchemesTable;
onPlayerLogin ;net/sf/l2j/gameserver/instancemanager/RaidBossPointsManager
loadPoints isCursedWeaponEquiped :net/sf/l2j/gameserver/instancemanager/CursedWeaponsManager >()Lnet/sf/l2j/gameserver/instancemanager/CursedWeaponsManager; getCursedWeaponEquipedId getCursedWeapon -(I)Lnet/sf/l2j/gameserver/model/CursedWeapon; (net/sf/l2j/gameserver/model/CursedWeapon
cursedOnLogin -net/sf/l2j/gameserver/model/olympiad/Olympiad 1()Lnet/sf/l2j/gameserver/model/olympiad/Olympiad; playerInStadia <net/sf/l2j/gameserver/instancemanager/DimensionalRiftManager @()Lnet/sf/l2j/gameserver/instancemanager/DimensionalRiftManager; checkIfInRiftZone (IIIZ)Z teleportToWaitingRoom getClanJoinExpiryTime ()J java/lang/System currentTimeMillis CLAN_MEMBERSHIP_TERMINATED SET_LVL_ON_START HIGH_LEVEL_ON_START_FOR_SUBCLASS isSubClassActive addSp (I)Z 2net/sf/l2j/gameserver/instancemanager/SiegeManager 6()Lnet/sf/l2j/gameserver/instancemanager/SiegeManager; onEnterWorld 6net/sf/l2j/gameserver/instancemanager/FortSiegeManager :()Lnet/sf/l2j/gameserver/instancemanager/FortSiegeManager; getSieges ()Ljava/util/List; java/util/List iterator ()Ljava/util/Iterator; java/util/Iterator hasNext next ()Ljava/lang/Object; getIsInProgress checkIsAttacker '(Lnet/sf/l2j/gameserver/model/L2Clan;)Z
setSiegeState (B)V checkIsDefender 5net/sf/l2j/gameserver/instancemanager/ClanHallManager 9()Lnet/sf/l2j/gameserver/instancemanager/ClanHallManager; getClanHallByOwner S(Lnet/sf/l2j/gameserver/model/L2Clan;)Lnet/sf/l2j/gameserver/model/entity/ClanHall; +net/sf/l2j/gameserver/model/entity/ClanHall getPaid fPAYMENT_FOR_YOUR_CLAN_HALL_HAS_NOT_BEEN_MADE_PLEASE_MAKE_PAYMENT_TO_YOUR_CLAN_WAREHOUSE_BY_S1_TOMORROW
getSiegeState ()B isInsideZone ;net/sf/l2j/gameserver/communitybbs/Manager/RegionBBSManager ?()Lnet/sf/l2j/gameserver/communitybbs/Manager/RegionBBSManager; changeCommunityBoard 8net/sf/l2j/gameserver/network/serverpackets/ActionFailed
STATIC_PACKET :Lnet/sf/l2j/gameserver/network/serverpackets/ActionFailed; ALLOW_REMOTE_CLASS_MASTERS ,net/sf/l2j/gameserver/model/base/PlayerClass values 1()[Lnet/sf/l2j/gameserver/model/base/PlayerClass;
getClassId ,()Lnet/sf/l2j/gameserver/model/base/ClassId; (net/sf/l2j/gameserver/model/base/ClassId getId /()Lnet/sf/l2j/gameserver/model/base/ClassLevel; +net/sf/l2j/gameserver/model/base/ClassLevel First @net/sf/l2j/gameserver/model/actor/instance/L2ClassMasterInstance ClassMaster BLnet/sf/l2j/gameserver/model/actor/instance/L2ClassMasterInstance; onAction Second Third getItems isEquipable getItem *()Lnet/sf/l2j/gameserver/templates/L2Item; &net/sf/l2j/gameserver/templates/L2Item getType2 getEnchantLevel ENCHANT_MAX_ALLOWED_WEAPON Λ(Ljava/lang/String;Lnet/sf/l2j/gameserver/model/L2ItemInstance;Lnet/sf/l2j/gameserver/model/actor/instance/L2PcInstance;Lnet/sf/l2j/gameserver/model/L2Object;)Lnet/sf/l2j/gameserver/model/L2ItemInstance; Cnet/sf/l2j/gameserver/model/actor/instance/L2PcInstance$PunishLevel PunishLevel JAIL ELnet/sf/l2j/gameserver/model/actor/instance/L2PcInstance$PunishLevel; setPunishLevel I(Lnet/sf/l2j/gameserver/model/actor/instance/L2PcInstance$PunishLevel;I)V DEFAULT_PUNISH net/sf/l2j/gameserver/util/Util handleIllegalPlayerAction O(Lnet/sf/l2j/gameserver/model/actor/instance/L2PcInstance;Ljava/lang/String;I)V -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ENCHANT_MAX_ALLOWED_ARMOR ENCHANT_MAX_ALLOWED_JEWELRY 3net/sf/l2j/gameserver/instancemanager/CoupleManager 7()Lnet/sf/l2j/gameserver/instancemanager/CoupleManager;
getCouples ()Ljavolution/util/FastList; javolution/util/FastList getPlayer1Id getPlayer2Id 8² 9
akatalabistika gt?
(M LEI KIALA ALLA DN XORAGAN NA TA POST EDO)
2 answers to this question
Recommended Posts