Two things to flag before the troubleshooting.
First, botting is against RuneScape's rules and it is a reliable route to a permanent ban. No amount of performance tuning changes that, and it's worth weighing before you invest more time in it.
Second, the lag itself. Soul Wars is one of the most crowded activities in the game, and crowding plus an older Mac is a rough combination — a dedicated graphics card makes a real difference, and so does lowering your draw distance and disabling shadows. Playing at quieter hours helps too, since the area simply has fewer entities to render.