CU
pedido

Vip na account e não em char especifico.

Por curruwilliam, 06 de abr. de 2013 em Scripts

resolvido
otserv
tibia
16
929
curruwilliamC
06 de abril de 2013 às 14:50

Olá,

 

Teria como implementar algum sistema para por vip na account e não em um char especifico nesse sistema:

http://www.xtibia.com/forum/topic/211499-sistema-de-vip-do-ot-acabou-vip-acabou-promotion/page__fromsearch__1

RoksasR
06 de abril de 2013 às 14:55

O seu é o VIP System by Mock. O VIP é pra conta '-'

Só que os days não aparece no character list, porque só o premium comum do Tibia aparece, se quiser experimente:

 

http://www.xtibia.com/forum/topic/201802-classic-premium-v2/

curruwilliamC
06 de abril de 2013 às 15:03

Ata, vix encontrei um problema =´[

 

Algum daqueles code que você me passo ta dando erro no 'account manager':

 

dzf4p.png

RoksasR
06 de abril de 2013 às 15:11

Troca o código lá por esse:

 

local principal = {x = 500, y = 300, z = 7} -- Aqui poe as coordenadas do templo principal[/color]
function onLogin(cid)
if vip.hasVip(cid) == false and isPlayer(cid) then
setPlayerPromotionLevel(cid, 1)
doPlayerSendTextMessage(cid,27,"Sua VIP acabou, donate para ter mais acessos!")
doTeleportThing(cid,principal)
elseif vip.hasVip(cid) == true and isPlayer(cid) then
setPlayerPromotionLevel(cid, 2)
end
return true
end

 

Só muda as coordenadas no começo do código!

Editado Abril 6 por Roksas

curruwilliamC
06 de abril de 2013 às 15:15

Ainda da erro.

RoksasR
06 de abril de 2013 às 15:19

Qual erro cara? Aquele do firstitems não tem nada a ver com o meu código ;p

curruwilliamC
06 de abril de 2013 às 15:26

Esse erro:

29lbdif.png

 

Ele só da quando tento entrar no account manager.

RoksasR
06 de abril de 2013 às 15:32

Erro nas vocations?

curruwilliamC
06 de abril de 2013 às 15:35

Uai, não sei, to tentando descobrir onde ta o erro... não conseguiu mais entra no acc manager !

Tem ideia do que seja ?

RoksasR
06 de abril de 2013 às 15:40

Não foi isso que perguntei, perguntei de qual dos erros você ta falando?

Do que ta escrito vocations, o first items, qual?

curruwilliamC
06 de abril de 2013 às 15:43

Uai quando tento entra no acc manager da esses erro tudo:

29lbdif.png

 

Obs: O acc manager nao abre, nao entra..

RoksasR
06 de abril de 2013 às 15:56

Me manda o firstitems.lua

curruwilliamC
06 de abril de 2013 às 15:56

firstitems.lua

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)][i], 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)
doAddContainerItem(bag, 8602, 1)
setPlayerStorageValue(cid, 30001, 1)
end
return TRUE
end

 

Seria algo aqui?:

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

Editado Abril 6 por curruwilliam

RoksasR
06 de abril de 2013 às 16:01

Tenta trocar por:

 

 

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 and isPlayer(cid) 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)

doAddContainerItem(bag, 8602, 1)

setPlayerStorageValue(cid, 30001, 1)

end

return TRUE

end

 

 

Depois reinicia o sv

curruwilliamC
06 de abril de 2013 às 16:37

Beleza, Deu certo obrigado !!