kito2
www.masteria.net
Hello, I need a script that works on a interval defined on the .xml... The idea of the script is to move the player between 8 possible position, choosed in a random way... Can anyone help me on this?
I made this script:
I don't know how to make it randomly and use a table with positions.
I made this script:
LUA:
function onThink(pid, interval)
local specificFloor = {x = 49, y = 24, z = 6}
local z = getTopCreature(specificFloor).uid
if isPlayer(z) then
doTeleportThing(z, getTownTemplePosition(getPlayerTown(z)))
doSendMagicEffect(getThingPos(z), 12)
end
return true
end
I don't know how to make it randomly and use a table with positions.