GA

Nao Consigo Logar Com O Char Vip Criado

Por gabdi, 21 de mar. de 2011 em Archived

script
3
983
gabdiG
21 de março de 2011 às 19:07

Aee... to com um problema akeee e preciso de ajuda....

 

Consigo criar normalmente no meu site varios chars, mas caso eu coloke vip na acc, e volto pra criar mais um char (na msm acc com vip)

o site cria o char mas no ot ele n entra e da o seguinte erro:

 

[Error - creaturescript Interface]

data/creaturescript/script/firstitems.lua:onlogin

Description:

data/creaturescript/script/firstitems,lua:55: bad argument #1 to 'maxn' (table stack traceback:

[C]: in function 'maxn'

data/creaturescript/script/firstitems,lua:55: in function <data/creaturescripts/scripts/firstitems.lua:53>

 

Meu FirstItems

 

local firstItems = {}

firstItems[0] =

{

2173,

2525,

3965,

2124,

2457,

2647,

2643

}

firstItems[1] =

{

2173,

2525,

2190,

2124,

2457,

2647,

2643

}

firstItems[2] =

{

2173,

2525,

2182,

2124,

2457,

2647,

2643

}

firstItems[3] =

{

2173,

2525,

2399,

2124,

2457,

2647,

2643

}

firstItems[4] =

{

2173,

2525,

2428,

2124,

2457,

2647,

2643

}

 

function onLogin(cid)

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

for i = 1, table.maxn(firstItems[getPlayerVocation(cid)]) do

doPlayerAddItem(cid, firstItems[getPlayerVocation(cid)], 1)

end

if getPlayerSex(cid) == 0 then

doPlayerAddItem(cid, 2463, 1)

else

doPlayerAddItem(cid, 2463, 1)

end

local bag = doPlayerAddItem(cid, 11235, 1)

doAddContainerItem(bag, 2160, 3)

doAddContainerItem(bag, 2554, 1)

doAddContainerItem(bag, 2120, 1)

doAddContainerItem(bag, 7618, 1)

setPlayerStorageValue(cid, 30001, 1)

end

return TRUE

end

 

tbm colocarei a foto do erro no anexo abaixo:

 

plx e urgente....

erro.bmp

Editado Março 21 por gabdi

1 mês depois...
valdemorteV
03 de abril de 2011 às 12:07

Então vi seu topico e tenho uma dica pra vc em ver do vip pq vc não faz tipo um premium, e so vc deicar umas magias sem o premium e outras com premium!!! fica mais facil assim qualquer coisa eu tenho um script aqui!!!

gabdiG
03 de abril de 2011 às 21:13

Então vi seu topico e tenho uma dica pra vc em ver do vip pq vc não faz tipo um premium, e so vc deicar umas magias sem o premium e outras com premium!!! fica mais facil assim qualquer coisa eu tenho um script aqui!!!

Opaaa.... vlws por comenta... mas ja consegui arruma akee... Erro estava dando pq o novo player esta nascendo ja sendo akela profissao EPIC...

configurei pra nascer normalmente e quando vc compra a 1° promotion ai vc vira a EPIC...

Msm assim vlws por ajuda....