[Ajuda] Tile que Teleporta

wdot456
em Scripts

wdot456

Pokemon Imperial
avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 21/06/12Posts: 33

É 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

 

 

Omega

o/
avatar
Marquês
Marquês

INFOS

Grupo: MarquêsRegistrado: 17/06/07Posts: 1165Gênero: MasculinoChar no Tibia: Nenhum


function onStepIn(cid, item, position, fromPosition)

local toPos = {x=123, y=345, z=7} -- Aqui a posição para onde o jogador será transportado

local itemid,count = 5956,1

if item.actionid == 29529 then

if 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)

else

doPlayerRemoveItem(cid, itemid, count)

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Sua Jornada Pokemon esta prestes a começar!")

doTeleportThing(cid, toPos)

end

end

return true

end

wdot456

Pokemon Imperial
avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 21/06/12Posts: 33

Vlw cara funcionou Certin REP+ ^^ Vou postar uma outra duvida de script, espero que c possa me ajudar kkk

Alexclusive

Um bom Veterano...
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 25/10/12Posts: 2399Gênero: MasculinoChar no Tibia: Nuncative

Tópico movido para a seção de dúvidas e pedidos resolvidos.

 

CURTA O FACEBOOK DO Ekz.

graphic_design.png  Seja um incentivador de pessoas. O mundo já tem críticos demais.  hardware_19.png