Guest User

Teleport with Effect

a guest
Jan 6th, 2024
388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.03 KB | None | 0 0
  1. --- /config/custom/L2_jMega.ini (revision 370)
  2. +++ /config/custom/L2_jMega.ini (working copy)
  3.  
  4. #=============================================================
  5. #                Anuncio de Drop dos bosses
  6. #=============================================================
  7. # Padrão: false
  8. AnnounceDropItem = true
  9.  
  10. +#=============================================================
  11. +#             Teleporte GK com efeito Mágico
  12. +#=============================================================
  13. +# Padrão: false
  14. +TeleportEffect = true
  15.  
  16.  
  17. --- java/com/l2jmega/Config.java    (revision 370)
  18. +++ java/com.l2jmega/Config.java    (working copy)
  19.  
  20.     public static boolean ANNOUNCE_DROP_ITEM;
  21. +   public static boolean Teleport_Effect;
  22.     public static boolean BLOCK_SELL_ITEMS_ADENA;
  23.     public static boolean GM_VIEW_PL_ON;
  24.     public static String NAME_TVT;
  25.  
  26. +       Teleport_Effect = Boolean.parseBoolean(l2jmega.getProperty("TeleportEffect", "false"));
  27.         ANNOUNCE_DROP_ITEM = Boolean.parseBoolean(l2jmega.getProperty("AnnounceDropItem", "false"));
  28.         BLOCK_SELL_ITEMS_ADENA  = Boolean.parseBoolean(l2jmega.getProperty("DisablePriceAdenaItems", "False"));
  29.  
  30. --- java/com/l2jmega/gameserver/model/actor/instance/Gatekeeper.java    (revision 370)
  31. +++ java/com/l2jmega/gameserver/model/actor/instance/Gatekeeper.java    (working copy)
  32.  
  33. import com.l2jmega.gameserver.model.zone.ZoneId;
  34. import com.l2jmega.gameserver.network.SystemMessageId;
  35. import com.l2jmega.gameserver.network.serverpackets.ActionFailed;
  36. +import com.l2jmega.gameserver.network.serverpackets.MagicSkillUse;
  37.  
  38.                 if (player.destroyItemByItemId("Teleport ", (list.isNoble()) ? 6651 : 57, price, this, true))
  39.                     player.teleToLocation(list, 100);
  40.                
  41. +                 if (Config.Teleport_Effect)
  42. +                 {
  43. +                     player.broadcastPacket(new MagicSkillUse(player, player, 2036, 1, 0, 0));
  44. +                   }
  45.                
  46.                 player.sendPacket(ActionFailed.STATIC_PACKET);
  47.             }
  48.         }
  49.  
Advertisement
Add Comment
Please, Sign In to add comment