Guest User

Untitled

a guest
Oct 18th, 2020
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. In: l2jserver / gameserver / network / clientpackets / RequestMagicSkillUse.java
  2.  
  3. in the method -> runImpl ()
  4.  
  5. search for:
  6.  
  7. // Check the validity of the skill
  8. if (skill! = null)
  9. {
  10.  
  11. Add:
  12. + if (activeChar.isInYourZoneName ())
  13. + {
  14. + // Prohibits buffs In YourZoneName
  15. + if (skill.getId () == 1234 || skill.getId () == 1234)
  16. + {
  17. + activeChar.sendMessage ("It is not possible to use" + skill.getName () + "Inside This Zone!");
  18. + activeChar.sendPacket (ActionFailed.STATIC_PACKET);
  19. + return;
  20. +}
  21. +}
Advertisement
Add Comment
Please, Sign In to add comment