Sanchez Posted January 13, 2019 Share Posted January 13, 2019 (edited) Hello, after the last patch (40.40+) SafeHouse.addSafeHouse (ISWorldObjectContextMenu.lua) works only for the first safehouse claim, so player/admin can capture only the single one safehouse. Before that patch if you disable that limit with some simple lua. changes, player/admin can capture more than one safehouse. For example change ISWorldObjectContextMenu.lua: if not safehouse and clickedSquare:getBuilding() and clickedSquare:getBuilding():getDef() then local reason = SafeHouse.canBeSafehouse(clickedSquare, playerObj); if reason then local option = context:addOption(getText("ContextMenu_SafehouseClaim"), worldobjects, ISWorldObjectContextMenu.onTakeSafeHouse, clickedSquare, player); if not (getPlayer():getAccessLevel() == "Admin") and reason ~= "" then local toolTip = ISToolTip:new(); toolTip:initialise(); toolTip:setVisible(false); toolTip.description = reason; option.notAvailable = true; option.toolTip = toolTip; end end end I have added not (getPlayer():getAccessLevel() == "Admin") it allows admin capture more than 1 safehouse. Now i can't capture more than one safehouse even if i exceed this limit with lua, "Claim Safehouse" option is available and clickable, but when i click it nothing happens. Can anyone help me to solve this problem, please? Edited January 13, 2019 by Sanchez Link to comment Share on other sites More sharing options...
Zombie#24 Posted January 14, 2019 Share Posted January 14, 2019 This started a few updates ago. Admins can't claim more then one house. Players can only be a part of one safehouse. It sucks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now