Apply item skills on player enter method.

This commit is contained in:
MobiusDevelopment
2021-11-01 10:57:29 +00:00
parent a1ae250a2a
commit eb2f13f997
38 changed files with 76 additions and 76 deletions
@@ -10045,7 +10045,10 @@ public class PlayerInstance extends Playable
} }
} }
// Buff and status icons // Apply item skills.
_inventory.applyItemSkills();
// Buff and status icons.
if (Config.STORE_SKILL_COOLTIME) if (Config.STORE_SKILL_COOLTIME)
{ {
restoreEffects(); restoreEffects();
@@ -318,9 +318,6 @@ public class EnterWorld implements IClientIncomingPacket
// Send Teleport Bookmark List // Send Teleport Bookmark List
client.sendPacket(new ExGetBookMarkInfoPacket(player)); client.sendPacket(new ExGetBookMarkInfoPacket(player));
// Apply item skills.
player.getInventory().applyItemSkills();
// Send Item List // Send Item List
client.sendPacket(new ItemList(player, false)); client.sendPacket(new ItemList(player, false));
@@ -10048,7 +10048,10 @@ public class PlayerInstance extends Playable
} }
} }
// Buff and status icons // Apply item skills.
_inventory.applyItemSkills();
// Buff and status icons.
if (Config.STORE_SKILL_COOLTIME) if (Config.STORE_SKILL_COOLTIME)
{ {
restoreEffects(); restoreEffects();
@@ -323,9 +323,6 @@ public class EnterWorld implements IClientIncomingPacket
// Send Teleport Bookmark List // Send Teleport Bookmark List
client.sendPacket(new ExGetBookMarkInfoPacket(player)); client.sendPacket(new ExGetBookMarkInfoPacket(player));
// Apply item skills.
player.getInventory().applyItemSkills();
// Send Item List // Send Item List
client.sendPacket(new ItemList(player, false)); client.sendPacket(new ItemList(player, false));
@@ -10050,7 +10050,10 @@ public class PlayerInstance extends Playable
} }
} }
// Buff and status icons // Apply item skills.
_inventory.applyItemSkills();
// Buff and status icons.
if (Config.STORE_SKILL_COOLTIME) if (Config.STORE_SKILL_COOLTIME)
{ {
restoreEffects(); restoreEffects();
@@ -323,9 +323,6 @@ public class EnterWorld implements IClientIncomingPacket
// Send Teleport Bookmark List // Send Teleport Bookmark List
client.sendPacket(new ExGetBookMarkInfoPacket(player)); client.sendPacket(new ExGetBookMarkInfoPacket(player));
// Apply item skills.
player.getInventory().applyItemSkills();
// Send Item List // Send Item List
client.sendPacket(new ItemList(player, false)); client.sendPacket(new ItemList(player, false));
@@ -10041,7 +10041,10 @@ public class PlayerInstance extends Playable
} }
} }
// Buff and status icons // Apply item skills.
_inventory.applyItemSkills();
// Buff and status icons.
if (Config.STORE_SKILL_COOLTIME) if (Config.STORE_SKILL_COOLTIME)
{ {
restoreEffects(); restoreEffects();
@@ -323,9 +323,6 @@ public class EnterWorld implements IClientIncomingPacket
// Send Teleport Bookmark List // Send Teleport Bookmark List
client.sendPacket(new ExGetBookMarkInfoPacket(player)); client.sendPacket(new ExGetBookMarkInfoPacket(player));
// Apply item skills.
player.getInventory().applyItemSkills();
// Send Item List // Send Item List
client.sendPacket(new ItemList(player, false)); client.sendPacket(new ItemList(player, false));
@@ -10031,7 +10031,10 @@ public class PlayerInstance extends Playable
} }
} }
// Buff and status icons // Apply item skills.
_inventory.applyItemSkills();
// Buff and status icons.
if (Config.STORE_SKILL_COOLTIME) if (Config.STORE_SKILL_COOLTIME)
{ {
restoreEffects(); restoreEffects();
@@ -322,9 +322,6 @@ public class EnterWorld implements IClientIncomingPacket
// Send Teleport Bookmark List // Send Teleport Bookmark List
client.sendPacket(new ExGetBookMarkInfoPacket(player)); client.sendPacket(new ExGetBookMarkInfoPacket(player));
// Apply item skills.
player.getInventory().applyItemSkills();
// Send Item List // Send Item List
client.sendPacket(new ItemList(1, player)); client.sendPacket(new ItemList(1, player));
client.sendPacket(new ItemList(2, player)); client.sendPacket(new ItemList(2, player));
@@ -10031,7 +10031,10 @@ public class PlayerInstance extends Playable
} }
} }
// Buff and status icons // Apply item skills.
_inventory.applyItemSkills();
// Buff and status icons.
if (Config.STORE_SKILL_COOLTIME) if (Config.STORE_SKILL_COOLTIME)
{ {
restoreEffects(); restoreEffects();
@@ -322,9 +322,6 @@ public class EnterWorld implements IClientIncomingPacket
// Send Teleport Bookmark List // Send Teleport Bookmark List
client.sendPacket(new ExGetBookMarkInfoPacket(player)); client.sendPacket(new ExGetBookMarkInfoPacket(player));
// Apply item skills.
player.getInventory().applyItemSkills();
// Send Item List // Send Item List
client.sendPacket(new ItemList(1, player)); client.sendPacket(new ItemList(1, player));
client.sendPacket(new ItemList(2, player)); client.sendPacket(new ItemList(2, player));
@@ -10037,7 +10037,10 @@ public class PlayerInstance extends Playable
} }
} }
// Buff and status icons // Apply item skills.
_inventory.applyItemSkills();
// Buff and status icons.
if (Config.STORE_SKILL_COOLTIME) if (Config.STORE_SKILL_COOLTIME)
{ {
restoreEffects(); restoreEffects();
@@ -322,9 +322,6 @@ public class EnterWorld implements IClientIncomingPacket
// Send Teleport Bookmark List // Send Teleport Bookmark List
client.sendPacket(new ExGetBookMarkInfoPacket(player)); client.sendPacket(new ExGetBookMarkInfoPacket(player));
// Apply item skills.
player.getInventory().applyItemSkills();
// Send Item List // Send Item List
client.sendPacket(new ItemList(1, player)); client.sendPacket(new ItemList(1, player));
client.sendPacket(new ItemList(2, player)); client.sendPacket(new ItemList(2, player));
@@ -10058,7 +10058,10 @@ public class PlayerInstance extends Playable
} }
} }
// Buff and status icons // Apply item skills.
_inventory.applyItemSkills();
// Buff and status icons.
if (Config.STORE_SKILL_COOLTIME) if (Config.STORE_SKILL_COOLTIME)
{ {
restoreEffects(); restoreEffects();
@@ -326,9 +326,6 @@ public class EnterWorld implements IClientIncomingPacket
// Send Teleport Bookmark List // Send Teleport Bookmark List
client.sendPacket(new ExGetBookMarkInfoPacket(player)); client.sendPacket(new ExGetBookMarkInfoPacket(player));
// Apply item skills.
player.getInventory().applyItemSkills();
// Send Item List // Send Item List
client.sendPacket(new ItemList(1, player)); client.sendPacket(new ItemList(1, player));
client.sendPacket(new ItemList(2, player)); client.sendPacket(new ItemList(2, player));
@@ -10160,7 +10160,10 @@ public class PlayerInstance extends Playable
} }
} }
// Buff and status icons // Apply item skills.
_inventory.applyItemSkills();
// Buff and status icons.
if (Config.STORE_SKILL_COOLTIME) if (Config.STORE_SKILL_COOLTIME)
{ {
restoreEffects(); restoreEffects();
@@ -336,9 +336,6 @@ public class EnterWorld implements IClientIncomingPacket
// Send Teleport Bookmark List // Send Teleport Bookmark List
client.sendPacket(new ExGetBookMarkInfoPacket(player)); client.sendPacket(new ExGetBookMarkInfoPacket(player));
// Apply item skills.
player.getInventory().applyItemSkills();
// Send Item List // Send Item List
client.sendPacket(new ItemList(1, player)); client.sendPacket(new ItemList(1, player));
client.sendPacket(new ItemList(2, player)); client.sendPacket(new ItemList(2, player));
@@ -10186,7 +10186,10 @@ public class PlayerInstance extends Playable
} }
} }
// Buff and status icons // Apply item skills.
_inventory.applyItemSkills();
// Buff and status icons.
if (Config.STORE_SKILL_COOLTIME) if (Config.STORE_SKILL_COOLTIME)
{ {
restoreEffects(); restoreEffects();
@@ -338,9 +338,6 @@ public class EnterWorld implements IClientIncomingPacket
// Send Teleport Bookmark List // Send Teleport Bookmark List
client.sendPacket(new ExGetBookMarkInfoPacket(player)); client.sendPacket(new ExGetBookMarkInfoPacket(player));
// Apply item skills.
player.getInventory().applyItemSkills();
// Send Item List // Send Item List
client.sendPacket(new ItemList(1, player)); client.sendPacket(new ItemList(1, player));
client.sendPacket(new ItemList(2, player)); client.sendPacket(new ItemList(2, player));
@@ -9947,7 +9947,10 @@ public class PlayerInstance extends Playable
} }
} }
// Buff and status icons // Apply item skills.
_inventory.applyItemSkills();
// Buff and status icons.
if (Config.STORE_SKILL_COOLTIME) if (Config.STORE_SKILL_COOLTIME)
{ {
restoreEffects(); restoreEffects();
@@ -321,9 +321,6 @@ public class EnterWorld implements IClientIncomingPacket
// Send Teleport Bookmark List // Send Teleport Bookmark List
client.sendPacket(new ExGetBookMarkInfoPacket(player)); client.sendPacket(new ExGetBookMarkInfoPacket(player));
// Apply item skills.
player.getInventory().applyItemSkills();
// Send Item List // Send Item List
client.sendPacket(new ItemList(player, false)); client.sendPacket(new ItemList(player, false));
@@ -9947,7 +9947,10 @@ public class PlayerInstance extends Playable
} }
} }
// Buff and status icons // Apply item skills.
_inventory.applyItemSkills();
// Buff and status icons.
if (Config.STORE_SKILL_COOLTIME) if (Config.STORE_SKILL_COOLTIME)
{ {
restoreEffects(); restoreEffects();
@@ -321,9 +321,6 @@ public class EnterWorld implements IClientIncomingPacket
// Send Teleport Bookmark List // Send Teleport Bookmark List
client.sendPacket(new ExGetBookMarkInfoPacket(player)); client.sendPacket(new ExGetBookMarkInfoPacket(player));
// Apply item skills.
player.getInventory().applyItemSkills();
// Send Item List // Send Item List
client.sendPacket(new ItemList(player, false)); client.sendPacket(new ItemList(player, false));
@@ -9933,7 +9933,10 @@ public class PlayerInstance extends Playable
} }
} }
// Buff and status icons // Apply item skills.
_inventory.applyItemSkills();
// Buff and status icons.
if (Config.STORE_SKILL_COOLTIME) if (Config.STORE_SKILL_COOLTIME)
{ {
restoreEffects(); restoreEffects();
@@ -322,9 +322,6 @@ public class EnterWorld implements IClientIncomingPacket
// Send Teleport Bookmark List // Send Teleport Bookmark List
client.sendPacket(new ExGetBookMarkInfoPacket(player)); client.sendPacket(new ExGetBookMarkInfoPacket(player));
// Apply item skills.
player.getInventory().applyItemSkills();
// Send Item List // Send Item List
client.sendPacket(new ItemList(1, player)); client.sendPacket(new ItemList(1, player));
client.sendPacket(new ItemList(2, player)); client.sendPacket(new ItemList(2, player));
@@ -9960,7 +9960,10 @@ public class PlayerInstance extends Playable
} }
} }
// Buff and status icons // Apply item skills.
_inventory.applyItemSkills();
// Buff and status icons.
if (Config.STORE_SKILL_COOLTIME) if (Config.STORE_SKILL_COOLTIME)
{ {
restoreEffects(); restoreEffects();
@@ -322,9 +322,6 @@ public class EnterWorld implements IClientIncomingPacket
// Send Teleport Bookmark List // Send Teleport Bookmark List
client.sendPacket(new ExGetBookMarkInfoPacket(player)); client.sendPacket(new ExGetBookMarkInfoPacket(player));
// Apply item skills.
player.getInventory().applyItemSkills();
// Send Item List // Send Item List
client.sendPacket(new ItemList(1, player)); client.sendPacket(new ItemList(1, player));
client.sendPacket(new ItemList(2, player)); client.sendPacket(new ItemList(2, player));
@@ -9960,7 +9960,10 @@ public class PlayerInstance extends Playable
} }
} }
// Buff and status icons // Apply item skills.
_inventory.applyItemSkills();
// Buff and status icons.
if (Config.STORE_SKILL_COOLTIME) if (Config.STORE_SKILL_COOLTIME)
{ {
restoreEffects(); restoreEffects();
@@ -322,9 +322,6 @@ public class EnterWorld implements IClientIncomingPacket
// Send Teleport Bookmark List // Send Teleport Bookmark List
client.sendPacket(new ExGetBookMarkInfoPacket(player)); client.sendPacket(new ExGetBookMarkInfoPacket(player));
// Apply item skills.
player.getInventory().applyItemSkills();
// Send Item List // Send Item List
client.sendPacket(new ItemList(1, player)); client.sendPacket(new ItemList(1, player));
client.sendPacket(new ItemList(2, player)); client.sendPacket(new ItemList(2, player));
@@ -9915,7 +9915,10 @@ public class PlayerInstance extends Playable
} }
} }
// Buff and status icons // Apply item skills.
_inventory.applyItemSkills();
// Buff and status icons.
if (Config.STORE_SKILL_COOLTIME) if (Config.STORE_SKILL_COOLTIME)
{ {
restoreEffects(); restoreEffects();
@@ -326,9 +326,6 @@ public class EnterWorld implements IClientIncomingPacket
// Send Teleport Bookmark List // Send Teleport Bookmark List
client.sendPacket(new ExGetBookMarkInfoPacket(player)); client.sendPacket(new ExGetBookMarkInfoPacket(player));
// Apply item skills.
player.getInventory().applyItemSkills();
// Send Item List // Send Item List
client.sendPacket(new ItemList(1, player)); client.sendPacket(new ItemList(1, player));
client.sendPacket(new ItemList(2, player)); client.sendPacket(new ItemList(2, player));
@@ -9935,7 +9935,10 @@ public class PlayerInstance extends Playable
} }
} }
// Buff and status icons // Apply item skills.
_inventory.applyItemSkills();
// Buff and status icons.
if (Config.STORE_SKILL_COOLTIME) if (Config.STORE_SKILL_COOLTIME)
{ {
restoreEffects(); restoreEffects();
@@ -319,9 +319,6 @@ public class EnterWorld implements IClientIncomingPacket
// Send Teleport Bookmark List // Send Teleport Bookmark List
client.sendPacket(new ExGetBookMarkInfoPacket(player)); client.sendPacket(new ExGetBookMarkInfoPacket(player));
// Apply item skills.
player.getInventory().applyItemSkills();
// Send Item List // Send Item List
client.sendPacket(new ItemList(player, false)); client.sendPacket(new ItemList(player, false));
@@ -10069,7 +10069,10 @@ public class PlayerInstance extends Playable
} }
} }
// Buff and status icons // Apply item skills.
_inventory.applyItemSkills();
// Buff and status icons.
if (Config.STORE_SKILL_COOLTIME) if (Config.STORE_SKILL_COOLTIME)
{ {
restoreEffects(); restoreEffects();
@@ -326,9 +326,6 @@ public class EnterWorld implements IClientIncomingPacket
// Send Teleport Bookmark List // Send Teleport Bookmark List
client.sendPacket(new ExGetBookMarkInfoPacket(player)); client.sendPacket(new ExGetBookMarkInfoPacket(player));
// Apply item skills.
player.getInventory().applyItemSkills();
// Send Item List // Send Item List
client.sendPacket(new ItemList(1, player)); client.sendPacket(new ItemList(1, player));
client.sendPacket(new ItemList(2, player)); client.sendPacket(new ItemList(2, player));
@@ -10135,7 +10135,10 @@ public class PlayerInstance extends Playable
} }
} }
// Buff and status icons // Apply item skills.
_inventory.applyItemSkills();
// Buff and status icons.
if (Config.STORE_SKILL_COOLTIME) if (Config.STORE_SKILL_COOLTIME)
{ {
restoreEffects(); restoreEffects();
@@ -330,9 +330,6 @@ public class EnterWorld implements IClientIncomingPacket
// Send Teleport Bookmark List // Send Teleport Bookmark List
client.sendPacket(new ExGetBookMarkInfoPacket(player)); client.sendPacket(new ExGetBookMarkInfoPacket(player));
// Apply item skills.
player.getInventory().applyItemSkills();
// Send Item List // Send Item List
client.sendPacket(new ItemList(1, player)); client.sendPacket(new ItemList(1, player));
client.sendPacket(new ItemList(2, player)); client.sendPacket(new ItemList(2, player));