Guest User

mod plugin example

a guest
Jun 3rd, 2023
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. require "Private"
  2.  
  3. local original_canBeCaptured = Private.canBeCaptured;
  4. Private.canBeCaptured = function(square)
  5.     -- replace isPVPZone with function that check if player is inside area that doesn't allow capture
  6.     if isPVPZone(square) then
  7.         return getText("Explain why safehouse can't be captured (e.g. nonPVP zone)");
  8.     end
  9.  
  10.     return original_canBeCaptured(square);
  11. end
Advertisement
Add Comment
Please, Sign In to add comment