KL

Conversão TFS 1.0 > TFS 0.3.6

Por klipstyle, 13 de abr. de 2016 em Scripts

tfs1
tfs1.0
tfs036
tfs0.3.6
converter
conversão
help
script
1
1.3k
klipstyleK
13 de abril de 2016 às 14:31

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