Guest User

Untitled

a guest
Dec 11th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. public void onActionRequest()
  2. {
  3. if (isSpawnProtected())
  4. {
  5. sendPacket(SystemMessage.getSystemMessage(SystemMessageId.YOU_ARE_NO_LONGER_PROTECTED_FROM_AGGRESSIVE_MONSTERS));
  6.  
  7. if (Config.RESTORE_SERVITOR_ON_RECONNECT && getPet() == null && CharSummonTable.getInstance().getServitors().containsKey(getObjectId()))
  8. CharSummonTable.getInstance().restoreServitor(this);
  9. if (Config.RESTORE_PET_ON_RECONNECT && getPet() == null && CharSummonTable.getInstance().getPets().containsKey(getObjectId()))
  10. CharSummonTable.getInstance().restorePet(this);
  11. }
  12.  
  13. if (isTeleportProtected())
  14. sendMessage("Teleport spawn protection ended.");
  15.  
  16. getEventInfo().onAction();
  17.  
  18. setProtection(false);
  19. setTeleportProtection(false);
  20. }
Add Comment
Please, Sign In to add comment