LU
pedido

TALKACTION QUE DE TP

Por Luquinh4, 16 de mar. de 2013 em Scripts

6
800
Luquinh4L
16 de março de 2013 às 13:15

Quero um talkaction que teleportasse o player para tal position!

 

Que só pode teleporta se tiver sem battle e em area pz!

SlicerS
16 de março de 2013 às 13:24

 

local toPos = {x = 1, y = 1, z = 1} --pos pra onde o player vai ser teleportado

function onSay(cid, words, param)
if getCreatureCondition(cid, CONDITION_INFIGHT) then
  return doPlayerSendTextMessage(cid, 27, "You can't do that while is in battle!")
elseif not getTileInfo(getPlayerPosition(cid)).protection then
  return doPlayerSendTextMessage(cid, 27, "You need be in Protection Zone to use this command!")
end

doTeleportThing(cid, toPos, false)
doSendMagicEffect(getPlayerPosition(cid), 21)
return true
end

 

 

tag:

<talkaction words="xxxx" event="script" value="yyyy.lua"/>

Luquinh4L
16 de março de 2013 às 13:36

 

local toPos = {x = 1, y = 1, z = 1} --pos pra onde o player vai ser teleportado

function onSay(cid, words, param)
if getCreatureCondition(cid, CONDITION_INFIGHT) then
  return doPlayerSendTextMessage(cid, 27, "You can't do that while is in battle!")
elseif not getTileInfo(getPlayerPosition(cid)).protection then
  return doPlayerSendTextMessage(cid, 27, "You need be in Protection Zone to use this command!")
end

doTeleportThing(cid, toPos, false)
doSendMagicEffect(getPlayerPosition(cid), 21)
return true
end

 

 

tag:

<talkaction words="xxxx" event="script" value="yyyy.lua"/>

Jaja edito se funfo ok ? rep + por ajudar ja

SkyLighS
Luquinh4L
16 de março de 2013 às 19:12

duvida resolvida, move ae

BananaFightB
16 de março de 2013 às 20:37

Duvida Sanada, Tópico Fechado.