So, atm I'm using this script
init start
local POSX, POSY = 33519, 32463 -- Position to place wild growth (POSX - POSY).
local Rune = "wild growth rune" -- Name of Rune to shoot.
local WildGrowthID = 2130 -- ID of placed Rune on ground (Wild Growth: 2130).
init end
auto(100)
if topitem(POSX, POSY, $posz).id ~= WildGrowthID and itemcount(Rune) > 0 and (cooldown(SPELL_GROUP_ATTACK) == 0) AND topitem(POSX, POSY, $posz).id ~= player.id then
settargeting("no")
useitemon(Rune, 0, ground(POSX, POSY, $posz))
wait(250)
settargeting("yes")
end
It checks if there's a wildgrowth on the sqm, checks if it can throw it, and then does so.
The problem is the
"topitem(POSX, POSY, $posz).id ~= player.id", it throws a bug.
So my question is, how do I check if a player is standing on an SQM ?