Ir para conteúdo
Entre para seguir isso  
Messiah

Sistema Vip Por Sql Para Tfs 2.0

Recommended Posts

Messiah    0
Messiah
Aprovado porem aonde está a pasta libs? pos o ot tfs que vocês está dizendo não vem juntamente com ela...

 

Oi moça qual a versão do seu ot?? Pois com certeza ela deve estar dentro da pasta data na sexta posição se precisar poste denovu que te ajudo com o maior prazer ok! :style:

Compartilhar este post


Link para o post
KuawiT    0
KuawiT

parabens, criou oque ngm tinha criado

Compartilhar este post


Link para o post
escaliburbz    0
escaliburbz

estou com 1 problema eu consigo add vip e checar os player vip so que o vip não acaba

pareci que algum script esta dando erro olha o erro:

 

[26/06/2009 13:52:34] Lua Script Error: [CreatureScript Interface]

[26/06/2009 13:52:34] data/creaturescripts/scripts/login.lua

 

[26/06/2009 13:52:34] data/lib/database.lua:39: [Result:getDataInt]: Result not set!

[26/06/2009 13:52:34] [Warning - Event::loadScript] Can not load script (data/creaturescripts/scripts/login.lua)

 

 

ajudo plz!!

Compartilhar este post


Link para o post
escaliburbz    0
escaliburbz

o meu logn.lua ja tem isso escrito:

function onLogin(cid)

local loss = getConfigValue('deathLostPercent')

if(loss ~= nil) then

for i = PLAYERLOSS_EXPERIENCE, PLAYERLOSS_ITEMS do

doPlayerSetLossPercent(cid, i, getConfigValue('deathLostPercent'))

end

end

 

registerCreatureEvent(cid, "GuildMotd")

registerCreatureEvent(cid, "PlayerDeath")

return TRUE

end

 

em que lugar que eu ponho?

 

ja tentei apagando isso ,varias formas e da esse erro:

 

[26/06/2009 16:42:18] [Warning - Event::loadScript] Can not load script (data/creaturescripts/scripts/login.lua)

[26/06/2009 16:42:18] data/creaturescripts/scripts/login.lua:20: 'end' expected (to close 'function' at line 1) near '<eof>'

Compartilhar este post


Link para o post
Zuvutaba    0
Zuvutaba
impressão minha ou o lyndell ta vendendo um bagulho igual a esse la no mercado otnet?

se ele estiver vendendo este code não compre por que esse code eu criei ele intero sosinho e postei em outros forums se ele estiver cobrando isso reporte ele.

OBS: Luke aki

Compartilhar este post


Link para o post
Messiah    0
Messiah
o meu logn.lua ja tem isso escrito:

function onLogin(cid)

if vipTime(cid) >= 1 then

if vipTime(cid) >= os.time() then

db.executeQuery("UPDATE `accounts` SET `vip_days` = ".. (vipTime(cid) - os.time()) / 86400 .." WHERE `accounts`.`id` = ".. getPlayerAccountId(cid) ..";")

else

db.executeQuery("UPDATE `accounts` SET `vip_time` = 0 WHERE `accounts`.`id` = ".. getPlayerAccountId(cid) ..";")

db.executeQuery("UPDATE `accounts` SET `vip_days` = 0 WHERE `accounts`.`id` = ".. getPlayerAccountId(cid) ..";")

end

end

if haveVipDays(cid) == FALSE then

if isVip(cid) == TRUE then

db.executeQuery("UPDATE `players` SET `town_id` = 1, `posx` = X, `posy` = Y, `posz` = Z WHERE `players`.`account_id` = ".. getPlayerAccountId(cid) ..";")

db.executeQuery("UPDATE `accounts` SET `vip` = '0' WHERE `accounts`.`id` = ".. getPlayerAccountId(cid) ..";")

local Position = getTownTemplePosition(1)

doTeleportThing(cid, Position)

doSendMagicEffect(Position, 10)

doPlayerSetTown(cid, 1)

end

end

local loss = getConfigValue('deathLostPercent')

if(loss ~= nil) then

for i = PLAYERLOSS_EXPERIENCE, PLAYERLOSS_ITEMS do

doPlayerSetLossPercent(cid, i, getConfigValue('deathLostPercent'))

end

end

 

registerCreatureEvent(cid, "GuildMotd")

registerCreatureEvent(cid, "PlayerDeath")

return TRUE

end

 

em que lugar que eu ponho?

 

ja tentei apagando isso ,varias formas e da esse erro:

 

fica assim maninhu! :style:

Compartilhar este post


Link para o post
LordDarkk    0
LordDarkk

Como e faço para um npc adicionar vip? Obrigado

Compartilhar este post


Link para o post
Lwkass    1
Lwkass

boa cara, eu ia tentar criar esse sistema pro meu ot... mas me poupou trabalho :]

Aprovado

Compartilhar este post


Link para o post
KwiiBy~    0
KwiiBy~

cara eu ja adicionei no login.lua abaixo daquele treco mas da erro o qe eu faço?

Compartilhar este post


Link para o post
Messiah    0
Messiah
cara eu ja adicionei no login.lua abaixo daquele treco mas da erro o qe eu faço?

 

Oi amigo por favor detalhe melhor seu problema para que eu possa tentar te ajudar ok!

Compartilhar este post


Link para o post
KwiiBy~    0
KwiiBy~

Tipo posta o teu login.lua ja com o script vip =]

Compartilhar este post


Link para o post
Messiah    0
Messiah
Tipo posta o teu login.lua ja com o script vip =]

 

Olha amigo este é meu login.lua como já editado.

 

local message = [[seja bem vindo ao Serve Crazy!

 

Utilize o canal help para maiores informações.

 

Enjoy xD]]

 

function onLogin(cid)

 

if vipTime(cid) >= 1 then

if vipTime(cid) >= os.time() then

db.executeQuery("UPDATE `accounts` SET `vip_days` = ".. (vipTime(cid) - os.time()) / 86400 .." WHERE `accounts`.`id` = ".. getPlayerAccountId(cid) ..";")

else

db.executeQuery("UPDATE `accounts` SET `vip_time` = 0 WHERE `accounts`.`id` = ".. getPlayerAccountId(cid) ..";")

db.executeQuery("UPDATE `accounts` SET `vip_days` = 0 WHERE `accounts`.`id` = ".. getPlayerAccountId(cid) ..";")

end

end

if haveVipDays(cid) == FALSE then

if isVip(cid) == TRUE then

db.executeQuery("UPDATE `players` SET `town_id` = 1, `posx` = 100, `posy` = 40, `posz` = 7 WHERE `players`.`account_id` = ".. getPlayerAccountId(cid) ..";")

db.executeQuery("UPDATE `accounts` SET `vip` = '0' WHERE `accounts`.`id` = ".. getPlayerAccountId(cid) ..";")

local Position = getTownTemplePosition(1)

doTeleportThing(cid, Position)

doSendMagicEffect(Position, 10)

doPlayerSetTown(cid, 1)

end

end

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

 

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")

return TRUE

 

end

Compartilhar este post


Link para o post
Kah~    0
Kah~

Ta bom mesmo, boa boa, eu vo usa no meu TFS :D

Compartilhar este post


Link para o post
Rafael20x    0
Rafael20x

deu no 0.3.1 do tfs

Compartilhar este post


Link para o post
Danielzinho157    0
Danielzinho157

Agora vamos em "Data/Libs" e vamos adicionar em "Data.lua" na ultima linha << No meu ot nun tem essa pasta Libs nem ajuda plis

Compartilhar este post


Link para o post
91690589169058    0
91690589169058

Duvida :

to aprendendo otserv ainda gostaria de saber onde fica o phpadmin

(mysql)

Compartilhar este post


Link para o post
Popinhu    0
Popinhu

Vou testa no meu serve!

Compartilhar este post


Link para o post
Shyzoul    0
Shyzoul

Nossa o melhor que ja vi ate hoje :o

Compartilhar este post


Link para o post
Tollin    0
Tollin

O melhoor que ja vii pega a acc intera?

Compartilhar este post


Link para o post
malconx    0
malconx

Alguem pode me ajudar.. Fiz tudo correto, naoda nenhum erro.. mas quando eo do o comando /addvip .....

 

Nao acontece nada..

ja testei de tudo..

uso tfs 0.3.2

 

Alguem pode me da uma força?

Compartilhar este post


Link para o post
Visitante
Este tópico está impedido de receber novos posts.
Entre para seguir isso  
  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×