FL
dúvida

[Ajuda] Npc Reborn 8.54 [Ajuda]

Por Flaah, 26 de jul. de 2012 em Scripts

script
npc
tibia
brasil
server
reborn
resert
otserv
50
6.9k
FlaahF
27 de julho de 2012 às 15:11

Quando eu criei a conta deu esse ERRO no console:

 

 

[27/07/2012 15:08:09] Account Manager has logged in.

[27/07/2012 15:08:09] [Warning - Vocations::getVocation] Vocation 4294967295 not found.

[27/07/2012 15:08:20] Account Manager has logged out.

[27/07/2012 15:08:34] Account Manager has logged in.

[27/07/2012 15:08:34] [Warning - Vocations::getVocation] Vocation 4294967295 not found.

[27/07/2012 15:08:53] Account Manager has logged out.

[27/07/2012 15:08:59] Golo has logged in.

[27/07/2012 15:08:59] [Warning - Vocations::getVocation] Vocation 4294967295 not found.

 

Ai quando eu fiz o Reborn deu esse ERRO:

[27/07/2012 15:09:06] [Error - Npc interface]

[27/07/2012 15:09:06] data/npc/scripts/reborn.lua:onCreatureSay

[27/07/2012 15:09:06] Description:

[27/07/2012 15:09:06] data/npc/scripts/reborn.lua:60: attempt to index local 'voc' (a nil value)

[27/07/2012 15:09:06] stack traceback:

[27/07/2012 15:09:06] data/npc/scripts/reborn.lua:60: in function 'callback'

[27/07/2012 15:09:06] data/npc/lib/npcsystem/npchandler.lua:383: in function 'onCreatureSay'

[27/07/2012 15:09:06] data/npc/scripts/reborn.lua:8: in function <data/npc/scripts/reborn.lua:8>

 

ALGUEM AJUDA PORFAVOR, VALENDO +REP

TchubakaT
27 de julho de 2012 às 16:17

tenta isso.

if (getPlayerStorageValue(cid, 102087) ~= 1) then
  setPlayerStorageValue(cid, 102087, 1)
  setPlayerStorageValue(cid, 102086, 0)

 

muda a sua storage. a q ta e pra kal vai como ali em cima.

FlaahF
27 de julho de 2012 às 16:25

Meu Login.lua ta assim:

 

E não deu certo, ele continua voltando pra vocation anterior quando o player sai e volta, mesmo eu tendo falado com o NPC Reborn.

 

Login.lua

 

local message = [[Welcome To The Pollo Server

ParA Tener El Bless di

!Bless ---- blessing

!aol ------ amulet of lost

!prision -- Magic Wall Prision

!]]

 

 

function onLogin(cid)

 

registerCreatureEvent(cid, "PlayerKill")

if (InitArenaScript ~= 0) then

InitArenaScript = 1

-- make arena rooms free

for i = 42300, 42309 do

setGlobalStorageValue(i, 0)

setGlobalStorageValue(i+100, 0)

end

end

-- if he did not make full arena 1 he must start from zero

if getPlayerStorageValue(cid, 42309) < 1 then

for i = 42300, 42309 do

setPlayerStorageValue(cid, i, 0)

end

end

-- if he did not make full arena 2 he must start from zero

if getPlayerStorageValue(cid, 42319) < 1 then

for i = 42310, 42319 do

setPlayerStorageValue(cid, i, 0)

end

end

-- if he did not make full arena 3 he must start from zero

if getPlayerStorageValue(cid, 42329) < 1 then

for i = 42320, 42329 do

setPlayerStorageValue(cid, i, 0)

end

end

if getPlayerStorageValue(cid, 42355) == -1 then

setPlayerStorageValue(cid, 42355, 0) -- did not arena level

end

setPlayerStorageValue(cid, 42350, 0) -- time to kick 0

setPlayerStorageValue(cid, 42352, 0) -- is not in arena

 

doPlayerPopupFYI(cid, message)

registerCreatureEvent(cid, "PlayerDeath")

--registerCreatureEvent(cid, "MEDALS") This is Nahruto's Metal System for killing someone, Dont add this unless you use it.--

registerCreatureEvent(cid, "KilledMonstersCounter")

registerCreatureEvent(cid, "playeradvance")

 

 

registerCreatureEvent(cid, "RepSystem")

 

registerCreatureEvent(cid, "showRep")

 

registerCreatureEvent(cid, "RepLogin")

 

registerCreatureEvent(cid, "task_count")

 

if (getPlayerStorageValue(cid, 30025) ~= 1) then

setPlayerStorageValue(cid, 30025, 1)

setPlayerStorageValue(cid, 30025, 0)

end

 

return TRUE

 

end

 

ALGUEM AJUDA PORFAVOR, VALENDO +REP

TchubakaT
27 de julho de 2012 às 16:45


local message = [[Welcome To The Pollo Server
ParA Tener El Bless di
!Bless ---- blessing
!aol ------ amulet of lost
!prision -- Magic Wall Prision
!]]


function onLogin(cid)

registerCreatureEvent(cid, "PlayerKill")
if (InitArenaScript ~= 0) then
InitArenaScript = 1
-- make arena rooms free
for i = 42300, 42309 do
setGlobalStorageValue(i, 0)
setGlobalStorageValue(i+100, 0)
end
end
-- if he did not make full arena 1 he must start from zero
if getPlayerStorageValue(cid, 42309) < 1 then
for i = 42300, 42309 do
setPlayerStorageValue(cid, i, 0)
end
end
-- if he did not make full arena 2 he must start from zero
if getPlayerStorageValue(cid, 42319) < 1 then
for i = 42310, 42319 do
setPlayerStorageValue(cid, i, 0)
end
end
-- if he did not make full arena 3 he must start from zero
if getPlayerStorageValue(cid, 42329) < 1 then
for i = 42320, 42329 do
setPlayerStorageValue(cid, i, 0)
end
end
if getPlayerStorageValue(cid, 42355) == -1 then
setPlayerStorageValue(cid, 42355, 0) -- did not arena level
end
setPlayerStorageValue(cid, 42350, 0) -- time to kick 0
setPlayerStorageValue(cid, 42352, 0) -- is not in arena 

doPlayerPopupFYI(cid, message)
registerCreatureEvent(cid, "PlayerDeath")
--registerCreatureEvent(cid, "MEDALS") This is Nahruto's Metal System for killing someone, Dont add this unless you use it.--
if (getPlayerStorageValue(cid, 102087) ~= 1) then
  setPlayerStorageValue(cid, 102087, 1)
  setPlayerStorageValue(cid, 102086, 0)
end
registerCreatureEvent(cid, "KilledMonstersCounter")
registerCreatureEvent(cid, "playeradvance")


registerCreatureEvent(cid, "RepSystem")

registerCreatureEvent(cid, "showRep")

registerCreatureEvent(cid, "RepLogin")

registerCreatureEvent(cid, "task_count")

if (getPlayerStorageValue(cid, 30025) ~= 1) then
setPlayerStorageValue(cid, 30025, 1)
setPlayerStorageValue(cid, 30025, 0)
end

return TRUE

end

tentai.

FlaahF
27 de julho de 2012 às 16:58

Cara ta com o meeeeeeesmo problema, ele vola pra vocation anterior...

 

Sera que n em q uzar a função: function onLogout(cid)

 

Em?

 

ALGUEM AJUDA PORFAVOR, VALENDO +REP

TchubakaT
27 de julho de 2012 às 17:05

eu creio que nao.. mais testa ai

FlaahF
27 de julho de 2012 às 17:19

Ixi deu não.. ele continua voltando pra vocation anterior quando ele sai e volta. :(

 

ALGUEM AJUDA PORFAVOR, VALENDO +REP

Editado Julho 27 por Flaah

TchubakaT
27 de julho de 2012 às 17:34

nao sei mais uq tentar. sorry =/

FlaahF
27 de julho de 2012 às 17:43

Mais vou te da o +REP pela tentativa ;(

 

PS: Cade o Vodkart quando agente precisa, ;(

 

ALGUEM AJUDA PORFAVOR, VALENDO +REP

TchubakaT
27 de julho de 2012 às 17:44

vou pesquisar mais aqui. se o vod nao ajudar antes.

SkySevenS
27 de julho de 2012 às 17:52

Cara,que tal voce mandar PM pro Vodkart,so uma opniao Fuiz

TchubakaT
27 de julho de 2012 às 17:55

na assinatura do vodkart ele boto que nao responde pm =/

FlaahF
27 de julho de 2012 às 18:00

Po ele não esta aceitando mensagens :(

 

ALGUEM AJUDA PORFAVOR, VALENDO +REP

SkySevenS
27 de julho de 2012 às 18:02

Entao procure um topico q ele esta respondendo recentemente e fale com ele por la Vlw abraços;

theu1995T
27 de julho de 2012 às 18:05

vou ver o que posso fazer aqui.