Postado Julho 12, 2018 6 anos Provavelmente a função doTeleportThing não existe em seu servidor, vai ter que achar ela no forum
Postado Julho 12, 2018 6 anos 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 Julho 12, 2018 6 anos 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.
Postado Julho 12, 2018 6 anos 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
Postado Julho 12, 2018 6 anos Autor Agora não funciona e tmb não da erro na distro, e quando tenta so sai uma fumacinha, aquela fumacinha de narutibia de exhaust...
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.