Im trying to make a persistent hotkey that auto summon a creature after reconnecting for skilling purpose. But I cant make it to work nothing happens.
Code:auto(400,900)
local count=0
if maround('Player') > 0 then
foreach creature c do if (c.isownsummon==0)then
count=count
end
end
if count < 1 then
castspell('utevo res "rat"')
end
end