BR

Tile Que Teleporta E Da Item

Por brendorox, 05 de out. de 2011 em Archived

script
2
635
brendoroxB
05 de outubro de 2011 às 07:33

Ola gente to querendo um script em um tile

Que quando voce passa encima dele e teleportado para a sua town e ganha tal item

alguem pode ajudar?

Editado Outubro 5 por brendohehe

MulizeuM
05 de outubro de 2011 às 14:30

Ta ai:

 

function onStepIn(cid, item, position, fromposition)
tile = {x=59,y=466,z=7} --posição tile
storage = 30001 -- nao mude

if isPlayer(cid) then
local status = getPlayerStorageValue(cid,storage)
if status == -1 then
doTeleportThing(cid,getTownTemplePosition(getPlayerTown(cid)))
doPlayerAddItem(cid,2160,50) -- item que sera adc
setPlayerStorageValue(cid,storage,1)
else
doPlayerSendTextMessage(cid,25,'vc ja pegou seu item')
end
end
end

 

 

 

tag:

<movevent event="StepIn" actionid="xxxx" script="nome do arquivo.lua" />

Editado Outubro 5 por mulizeu