bogo Posted October 24, 2023 Share Posted October 24, 2023 I want to make a castle wars script that can attack any nearby players from the opposite team. Is this supported? I can only find the "attack nearest player" in the wilderness menu but that doesn't work for me in the castlewars game. Does "interact with player" / "Attack" work for this? If so what would I put as name/ID? Has anyone made an LMS script where the same principle applies? Quote Link to comment Share on other sites More sharing options...
Wishy Posted October 25, 2023 Share Posted October 25, 2023 LMS is not possible. Castle wars however. Should be. Providing we have a method to attack another player outside the wilderness. For the "player name" just put * It should support wildcard. Check the API Quote Link to comment Share on other sites More sharing options...
FushigiBot Posted October 25, 2023 Share Posted October 25, 2023 Not sure if this will work but try using the "Interact with Player" method then just type "*" in the name and "Attack" in the action. Quote Link to comment Share on other sites More sharing options...
bogo Posted October 28, 2023 Author Share Posted October 28, 2023 "*" works, however it will try to attack anyone including members of my team. Any idea how to make it only attack members of the opposite team? I've managed to make a boolean to identify whether I have a sara or zamorak cape based on the cape ID numbers, however I can't find out how to make it only attack a player with a certain team cape. Thanks for helping Quote Link to comment Share on other sites More sharing options...
07BotClient Posted October 31, 2023 Share Posted October 31, 2023 On 10/28/2023 at 5:00 AM, bogo said: "*" works, however it will try to attack anyone including members of my team. Any idea how to make it only attack members of the opposite team? I've managed to make a boolean to identify whether I have a sara or zamorak cape based on the cape ID numbers, however I can't find out how to make it only attack a player with a certain team cape. Thanks for helping I don't know jack about scripting, just a lurking man with a bit of logical knowledge. Seems like you need the bolean to check for the cape first. Does player have Zammy cape? If No, search again, if Yes, Go-to Attack player action Quote Link to comment Share on other sites More sharing options...
bogo Posted November 3, 2023 Author Share Posted November 3, 2023 I've set up a boolean to determine which team i'm in based on my cape. The script then recognises if there is a player in the area with the opposite team cape -> if yes, Attack nearest player. Only problem is, if there are multiple players in the area and the closest player is from my own team then it will try to attack my own team. Any suggestions? Quote Link to comment Share on other sites More sharing options...