Ir para conteúdo

Featured Replies

  • Respostas 15
  • Visualizações 808
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • esqueci pra setar storage pra 0     local storage, storage1 = 8910,158787 -- storage local position = {x=1541, y=1157, z=7} local voc, effect = 8, 2 function onSay(cid, param, word) if g

Posted Images

Postado
local storage, storage1 = 8910,158787 -- storage
local position = {x=1541, y=1157, z=7} --Position pra onde o player vai ao usar a spell
local voc, effect = 8, 2
function onSay(cid, param, word)
if getPlayerVocation(cid) == voc then
        if getPlayerStorageValue(cid, storage) <= 0 then
            setPlayerStorageValue(cid, storage, 1)
            doSendMagicEffect(getCreaturePosition(cid), effect)
		local pos = getCreaturePosition(cid)
		setPlayerStorageValue(cid, storage1, ":"..pos.x..","..pos.y..","..pos.z)
        doTeleportThing(cid, position)
        else
		local npos = getPlayerStorageValue(cid, storage1):sub(2):explode(",")
		doTeleportThing(cid, {x = npos[1], y = npos[2], z = npos[3]})
            doSendMagicEffect(getCreaturePosition(cid), effect)
        end
    end
    return true
end

 

Postado
  • Autor
9 minutos atrás, Vodkart disse:

local storage, storage1 = 8910,158787 -- storage
local position = {x=1541, y=1157, z=7} --Position pra onde o player vai ao usar a spell
local voc, effect = 8, 2
function onSay(cid, param, word)
if getPlayerVocation(cid) == voc then
        if getPlayerStorageValue(cid, storage) <= 0 then
            setPlayerStorageValue(cid, storage, 1)
            doSendMagicEffect(getCreaturePosition(cid), effect)
		local pos = getCreaturePosition(cid)
		setPlayerStorageValue(cid, storage1, ":"..pos.x..","..pos.y..","..pos.z)
        doTeleportThing(cid, position)
        else
		local npos = getPlayerStorageValue(cid, storage1):sub(2):explode(",")
		doTeleportThing(cid, {x = npos[1], y = npos[2], z = npos[3]})
            doSendMagicEffect(getCreaturePosition(cid), effect)
        end
    end
    return true
end

 

 

Erro ainda meu amigo.

 

image.thumb.png.0c1e33286af14c221c56e9b653011d5e.png

Postado
local storage, storage1 = 8910,158787 -- storage
local position = {x=1541, y=1157, z=7} --Position pra onde o player vai ao usar a spell
local voc, effect = 8, 2
function onSay(cid, param, word)
if getPlayerVocation(cid) == voc then
        if getPlayerStorageValue(cid, storage) <= 0 then
            setPlayerStorageValue(cid, storage, 1)
		local pos = getCreaturePosition(cid)
		setPlayerStorageValue(cid, storage1, ":"..pos.x..",:"..pos.y..",:"..pos.z)
        	doTeleportThing(cid, position)
            	doSendMagicEffect(getCreaturePosition(cid), effect)
        else
		local w = tostring(getPlayerStorageValue(cid, storage1)):gsub(':', ''):explode(',')
		doTeleportThing(cid, {x = w[1], y = w[2], z = w[3]})
            doSendMagicEffect(getCreaturePosition(cid), effect)
        end
    end
    return true
end

 

TESTA EM UMA NOVA CONTA

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo