É o seguinte, o tile já ta todo certinho e talz, mas não to conseguindo por a função pra ele teleportar também. Bom, ta ae a Script:[sP
function onStepIn(cid, item, position, fromPosition) local itemid,count = 5956,1 if item.actionid == 29529 and getPlayerItemCount(cid, itemid) < count then doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Você precisa de "..count.." "..getItemNameById(itemid).." para passar aqui.") doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return true end doPlayerRemoveItem(cid, 5956, 1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Sua Jornada Pokemon esta prestes a começar!") return true end
Pergunta
wdot456 1
É o seguinte, o tile já ta todo certinho e talz, mas não to conseguindo por a função pra ele teleportar também. Bom, ta ae a Script:[sP
function onStepIn(cid, item, position, fromPosition)
local itemid,count = 5956,1
if item.actionid == 29529 and getPlayerItemCount(cid, itemid) < count then
doTeleportThing(cid, fromPosition, true)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Você precisa de "..count.." "..getItemNameById(itemid).." para passar aqui.")
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
return true
end
doPlayerRemoveItem(cid, 5956, 1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Sua Jornada Pokemon esta prestes a começar!")
return true
end
Link para o comentário
https://xtibia.com/forum/topic/221165-ajuda-tile-que-teleporta/Compartilhar em outros sites
3 respostass a esta questão
Posts Recomendados