LE
pedido

Preciso De Uma Talkaction Comando !evento

Por leandroskt8, 14 de jul. de 2012 em Scripts

comando !evento
9
1.3k
leandroskt8L
14 de julho de 2012 às 21:48

Preciso de uma talkaction que quando player falar !evento ser teletransportado para x lugar só poder manda comando que não tiver pz Obg.

 

 

Valendo rep+

MenoxcideM
14 de julho de 2012 às 23:18

ve se esse serve:

 

 

 

 

function onSay(cid, words, param, channel)

local tmp = getCreaturePosition(cid)

local pos = {x = 529, y = 1924, z = 6}

 

if hasCondition(cid, CONDITION_INFIGHT) == TRUE then

doPlayerSendCancel(cid, "You may not teleport while in combat.")

else

doTeleportThing(cid, pos, true)

doSendMagicEffect(tmp, CONST_ME_POFF)

doSendMagicEffect(pos, CONST_ME_FIREATTACK)

end

return true

end

leandroskt8L
15 de julho de 2012 às 06:27

Isso mesmo vlw rep ++ tiver como coloca ele para ir com blattle, + menos pk fico grato des de já

LeoxtibiaL
15 de julho de 2012 às 12:51
function onSay(cid, words, param, channel)
local tmp = getCreaturePosition(cid)
local pos = {x = 529, y = 1924, z = 6}

if getPlayerSkullType(cid) >= 3 then
doPlayerSendCancel(cid, "Você não pode ir com skull")
else
doTeleportThing(cid, pos, true)
doSendMagicEffect(tmp, CONST_ME_POFF)
doSendMagicEffect(pos, CONST_ME_FIREATTACK)
end
return true
end

leandroskt8L
17 de julho de 2012 às 13:21

/\ Obg tb rep++

leandroskt8L
23 de julho de 2012 às 17:41

tem como colocada para ser usada x level ??

niohundranittionioN
23 de julho de 2012 às 17:53

Só adicionar um if getPlayerLevel(cid)

 

function onSay(cid, words, param, channel)

local tmp = getCreaturePosition(cid)

local pos = {x = 529, y = 1924, z = 6}

 

if getPlayerLevel(cid) < X then

doPlayerSendCancel(cid, "Seu level é insuficiente.")

 

elseif getPlayerSkullType(cid) >= 3 then

doPlayerSendCancel(cid, "Você não pode ir com skull.")

 

else

doTeleportThing(cid, pos, true)

doSendMagicEffect(tmp, CONST_ME_POFF)

doSendMagicEffect(pos, CONST_ME_FIREATTACK)

end

return true

end

Você deve colocar o nível mínimo onde está escrito X ali em cima...

 

Até mais

Niohundranittionio

LeoxtibiaL
23 de julho de 2012 às 17:53

function onSay(cid, words, param, channel)
local tmp = getCreaturePosition(cid)
local pos = {x = 529, y = 1924, z = 6}
local minlevel = 100

if getPlayerLevel(cid) >= minlevel then
if getPlayerSkullType(cid) >= 3 then
doPlayerSendCancel(cid, "Você não pode ir com skull")
else
doTeleportThing(cid, pos, true)
doSendMagicEffect(tmp, CONST_ME_POFF)
doSendMagicEffect(pos, CONST_ME_FIREATTACK)
end
else
doPlayerSendCancel(cid, "Você deve ter level ".. minlevel ..".")
end
return true
end

 

@edit

Não vi que o carinha de cima tinha postado, vou deixar mesmo assim.

Editado Julho 23 por Leoxtibia

SkyLighS
23 de julho de 2012 às 17:54
function onSay(cid, words, param, channel)
local tmp = getCreaturePosition(cid)
local pos = {x = 529, y = 1924, z = 6}
local level = 10 -- O Lvl que precisa
if getPlayerSkullType(cid) and getPlayerLevel(cid,level) >= 3 then
doPlayerSendCancel(cid, "Você não pode ir com skull")
else
doTeleportThing(cid, pos, true)
doSendMagicEffect(tmp, CONST_ME_POFF)
doSendMagicEffect(pos, CONST_ME_FIREATTACK)
end
return true
end