<talkaction log="yes" words="!sub" access="0" event="script" value="script.lua"/>
function onSay(cid, words, param)
local pos = getCreaturePosition(cid)
local topos = {x=pos.x,y=pos.y,z=pos.z-1}
doAreaCombatHealth(cid, 0, topos, 0, 0, 0, 255)
local thingPos = getThingfromPos(topos)
if thingPos.itemid == 1555 then
doTeleportThing(cid,topos,false)
end
return TRUE
end





info
Grupo: Campones
Registrado: 23/08/12
Posts: 31
Reputação: 0
Ola, existem como fazer um script que verifica se o ID do piso do andar acima é 1555,
então quando o jogador digitar: !sub
ele vai para o andar acima?
Tentei fazer algumas coisinhas aqui pelo pouco conhecimento que tenho, mas não obtive sucesso.