Crie um arquivo chamado premiumsqm.lua em data\movements\scripts:
function onStepIn(cid, item, pos)
pos1 = {x=, y=, z=, stackpos=1}
item1 = getThingfromPos(pos1)
if item.actionid == xxxx then
if isPlayer(cid) == 1 then
if getPlayerPremiumDays(cid) >= 1 then
else
doTeleportThing(cid, pos1, 0)
doPlayerSendTextMessage(cid,22,'You must have premium account!')
end
end
end
return 1
end
pos1 = {x=, y=, z=, stackpos=1} --- Posiçao que o player será jogado caso nao ter premium
doPlayerSendTextMessage(cid,22,'You must have premium account!') --- Mensagem que retorna ao jogador
if item.actionid == xxxx then --- ActionID que vai no tile
Em movements.XML:
<movevent event="StepIn" actionid="XXX" script="premiumsqm.lua"/>
Atençao para o actionID, deve ser o mesmo que esta no tile sendo assim o mesmo que esta no script anterior.



info
Grupo: Campones
Registrado: 22/08/11
Posts: 3
Reputação: 0
Char no Tibia: Peckets
RESOLVIDO !
Editado Agosto 30 por Peckets