gostaria de ajuda na conversão desse sistema para TFS 0.3.6
<event type="think" name="aA" script="autoAttack.lua"/>
function onThink(cid, interval) local monster = Monster(cid) if monster ~= nil then local targets = monster:getTargetList() local currentTarget = monster:getTarget() if not currentTarget then return monster:searchTarget() end if currentTarget ~= nil then for i = 1, #targets do local target = targets[i] if target:isPlayer() then monster:addFriend(target) monster:removeTarget(target) end end local newTarget = monster:getTargetList()[1] monster:setTarget(newTarget) monster:setFollowCreature(newTarget) end end return trueend