L2JMobius

High Five Disable the use of teleport on CB while in event

Invoke · 6 · 5305

Offline Invoke

  • Heir
  • **
    • Posts: 18
Hello i have noticed that you can use the teleport on specific places inside the event zone

which in my case the zone happens to be the coliseum,

I could use the Teleport from CommunityBoard inside the doors and teleport anywhere i wanted .

So a small fix:
- Open the HomeBoard.java
- Find this

Code: [Select]
else if (command.startsWith("_bbsteleport"))
- Add this

Code: [Select]
else if (command.startsWith("_bbsteleport") && !player.isOnEvent())


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16011
I would recommend this.
Code: [Select]
Index: dist/game/data/scripts/handlers/communityboard/HomeBoard.java
===================================================================
--- dist/game/data/scripts/handlers/communityboard/HomeBoard.java (revision 7034)
+++ dist/game/data/scripts/handlers/communityboard/HomeBoard.java (working copy)
@@ -89,7 +89,7 @@
  break;
  }
  }
- return commandCheck && (player.isCastingNow() || player.isCastingSimultaneouslyNow() || player.isInCombat() || player.isInDuel() || player.isInOlympiadMode() || player.isInsideZone(ZoneId.SIEGE) || player.isInsideZone(ZoneId.PVP));
+ return commandCheck && (player.isCastingNow() || player.isCastingSimultaneouslyNow() || player.isInCombat() || player.isInDuel() || player.isInOlympiadMode() || player.isInsideZone(ZoneId.SIEGE) || player.isInsideZone(ZoneId.PVP) || (player.getPvpFlag() > 0) || player.isAlikeDead() || player.isOnEvent());
  };
 
  public static final Predicate<PlayerInstance> KARMA_CHECK = player -> Config.COMMUNITYBOARD_KARMA_DISABLED && (player.getKarma() > 0);


Offline Invoke

  • Heir
  • **
    • Posts: 18
yes i thought about it but maybe some Users would like their players to be able to use at least the community board for  buffer instead, thats why i added the condition on the command :)


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16011
In my opinion all community related functions should be disabled.

What could happen?
Player complain that cannot use community board while flagged?
Player complain that cannot use community board while dead or in fake death?
Player complain that cannot use community board while participating on an event?

Really? GTFO player! ;D