Congratulações! Script criativo e bem feito. Poderia fazer uma talk para parar de se mover automaticamente usando storage ou até mesmo o stopEvent.
Rep+. Até.
Por meubkk, 09 de mai. de 2011 em Actions e Talkactions
info
Grupo: Infante
Registrado: 13/10/08
Posts: 1.6k
Reputação: +420
Char no Tibia: Demonbholder

Congratulações! Script criativo e bem feito. Poderia fazer uma talk para parar de se mover automaticamente usando storage ou até mesmo o stopEvent.
Rep+. Até.
info
Grupo: Campones
Registrado: 12/04/11
Posts: 3
Reputação: +8
ANDAR AUTOMATICO
Com esse script seu char pode andar automatico vc só precisa controlar pelas setas
vai na pasta talkactions/scripts e e crie um aquivo chamado auto.lua
e cole o seguinte script :
function isWalkable(pos, creature, proj, pz)-- by Nord if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid == 0 then return false end if getTopCreature(pos).uid > 0 and creature then return false end cr = getThingFromPos({x = pos.x, y = pos.y, z = pos.z, stackpos = STACKPOS_TOP_CREATURE}) if isPlayer(cr.uid) or isMonster(cr.uid) then return false end if getTileInfo(pos).protection and pz then return false, true end local n = not proj and 3 or 2 for i = 0, 255 do pos.stackpos = i local tile = getTileThingByPos(pos) if tile.itemid ~= 0 and not isCreature(tile.uid) then if hasProperty(tile.uid, n) or hasProperty(tile.uid, 7) then return false end end end return true end function MoveAutomatic(cid) if isWalkable(getPositionByDirection(getThingPos(cid), getCreatureLookDir(cid), 1)) then doTeleportThing(cid, getPositionByDirection(getThingPos(cid), getCreatureLookDir(cid), 1)) mayNotMove(cid, true) addEvent(MoveAutomatic, 200, cid) else doSendAnimatedText(getThingPos(cid), "OFF", math.random(250)) mayNotMove(cid, false) return true end end function onSay(cid, words, param) doSendAnimatedText(getThingPos(cid), "AUTOMATIC", math.random(250)) MoveAutomatic(cid) return true enddepois vá no talkactions.xml e use a seguinte tag:
e pronto, é só falar !auto que ele anda sozinho, depois só controlar o lado pra virar, qndo ele tromba em algo automaticamente ele para de andar.
Obrigado.