Ir para conteúdo

(Bug) PVP


BrunooMaciell

Posts Recomendados

Estou com um bug muito chato no PVP !!

 

BUG

 

[10/03/2014 12:28:18] [Error - MoveEvents Interface]
[10/03/2014 12:28:18] data/movements/scripts/PVP/Trade_Back.lua:onStepIn
[10/03/2014 12:28:18] Description:
[10/03/2014 12:28:18] data/lib/011-string.lua:29: attempt to index local 'str' (a number value)
[10/03/2014 12:28:18] stack traceback:
[10/03/2014 12:28:18] data/lib/011-string.lua:29: in function 'explode'
[10/03/2014 12:28:18] data/movements/scripts/PVP/Trade_Back.lua:13: in function

 

 

SCRIPT

 

local tileClans = {33800, 33801, 33802, 33803, 33804, 33805, 33806, 33807, 33808}
-- psy ore win nat sea gard male rai volc
function onStepIn(cid, item, pos)
if isSummon(cid) then
return false
end
--
local storage = 171877
if isInArray(tileClans, item.actionid) then
storage = 171878
end
--
local b = string.explode(getPlayerStorageValue(cid, storage), "/")
local t = string.explode(b[1], ";") --alterado v1.8
--
if #getCreatureSummons(cid) >= 1 then
for i = 1, #getCreatureSummons(cid) do
doTeleportThing(getCreatureSummons(cid), {x=tonumber(t[1]) - 1, y=tonumber(t[2]), z=tonumber(t[3])}, false)
end
end
doTeleportThing(cid, {x=tonumber(t[1]), y=tonumber(t[2]), z=tonumber(t[3])}, false)
setPlayerStorageValue(cid, storage, -1)
return true
end

 

 

Curti++

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...