Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: java/net/sf/l2j/Config.java
- ===================================================================
- --- java/net/sf/l2j/Config.java (revision 84)
- +++ java/net/sf/l2j/Config.java (working copy)
- + public static boolean ALLOW_WYVERN_RESTRITION_CITY;
- + ALLOW_WYVERN_RESTRITION_CITY = server.getProperty("MountRequest", false);
- ===================================================================
- --- java/net/sf/l2j/gameserver/model/zone/type/TownZone.java (revision 0)
- +++ java/net/sf/l2j/gameserver/model/zone/type/TownZone.java (working copy)
- @@ -0,0 +1,84 @@
- @Override
- protected void onEnter(Creature character)
- {
- if (Config.ZONE_TOWN == 1 && character instanceof Player && ((Player) character).getSiegeState() != 0)
- return;
- + // Dismount player, if mounted.
- + if (!Config.ALLOW_WYVERN_RESTRITION_CITY && character instanceof Player && ((Player) character).isMounted())
- + {
- + ((Player) character).dismount();
- + character.sendMessage("Você não pode usar montaria enquanto estiver na Cidade.");
- + }
- if (_isPeaceZone && Config.ZONE_TOWN != 2)
- character.setInsideZone(ZoneId.PEACE, true);
- character.setInsideZone(ZoneId.TOWN, true);
- }
- ===================================================================
- --- gameserver\config/server.properties (revision 0)
- +++ gameserver\config/server.properties (working copy)
- +# =================================================================
- +# Dismount Pet TowZone
- +# =================================================================
- + # Dismount player in city.
- + MountRequest = False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement