Ir para conteúdo

Vip System By Account V1.0


Kydrai

Posts Recomendados

Hum... estou usando uma verção do TFS que nao possui a pasta data\lib, possui outra maneira de fazer esse sistema?

 

OBS: no crystalserver 8.71 funcionou perfeitamente...mas lá possui a pasta data\lib

 

Agradeço desde já.

Edurox

 

EDIT: A verção do TFS é mystic spirit 2.10 -8.71

Editado por IcExMaN
Link para o comentário
Compartilhar em outros sites

MUITO BOMMMMMMMMM!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 

:thumbsupsmiley2: :thumbsupsmiley2: :thumbsupsmiley2: :thumbsupsmiley2: :thumbsupsmiley2: :thumbsupsmiley2: :thumbsupsmiley2: :thumbsupsmiley2: :thumbsupsmiley2: :thumbsupsmiley2: :thumbsupsmiley2:

Link para o comentário
Compartilhar em outros sites

  • 3 weeks later...

kydrai

Estou usando esse seu sistema VIP, e realmente e mt bom, mas estava querendo o mesmo que o Well Power, ver se n tem como adiciona nesse seu systema vip para o nome do player fika destacado ex: [VIP]name

e dobrar a life e mana dos player vip?!

ate ja vi ali em cima seu script mas n entendo nd disso e nem sei onde coloco ele, outra coisa keria tbm q funfasse por item, e nao por comando... se puder me ajudar agradeço.

abraço!!

Editado por TenkaiHanzo
Link para o comentário
Compartilhar em outros sites

Já o meu coloquei tudo certo no lugar e deu esse erro tudo

 

[25/05/2011 16:34:42] [Error - LuaScriptInterface::loadFile] cannot open data/actions/scripts/vipdoor.lua: No such file or directory

[25/05/2011 16:34:42] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/vipdoor.lua)

[25/05/2011 16:34:42] cannot open data/actions/scripts/vipdoor.lua: No such file or directory

[25/05/2011 16:34:42] [Error - LuaScriptInterface::loadFile] cannot open data/talkactions/scripts/vipaccgod.lua: No such file or directory

[25/05/2011 16:34:42] [Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/vipaccgod.lua)

[25/05/2011 16:34:42] cannot open data/talkactions/scripts/vipaccgod.lua: No such file or directory

[25/05/2011 16:34:42] [Error - LuaScriptInterface::loadFile] cannot open data/talkactions/scripts/vipaccplayer.lua: No such file or directory

[25/05/2011 16:34:42] [Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/vipaccplayer.lua)

[25/05/2011 16:34:42] cannot open data/talkactions/scripts/vipaccplayer.lua: No such file or directory

[25/05/2011 16:34:42] [Error - LuaScriptInterface::loadFile] cannot open data/movements/scripts/viptile.lua: No such file or directory

[25/05/2011 16:34:42] [Warning - Event::loadScript] Cannot load script (data/movements/scripts/viptile.lua)

[25/05/2011 16:34:42] cannot open data/movements/scripts/viptile.lua: No such file or directory

[25/05/2011 16:34:42] [Error - LuaScriptInterface::loadFile] cannot open data/creaturescripts/scripts/viplogin.lua: No such file or directory

[25/05/2011 16:34:42] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/viplogin.lua)

[25/05/2011 16:34:42] cannot open data/creaturescripts/scripts/viplogin.lua: No such file or directory

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.......................

Descobri o erro.

Mais valeu pela script

Editado por Malexus
Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...
  • 1 month later...

alguem me ajuda? eu instalei o sistema e tals, só que a hora que eu abro o meu tfs aparece um erro apontado pro vipAccount la no lib

 

[error - LuaInterface::LoadFile]data/lib/vipAccount.lua:1:function arguments expected near 'system'

terminate called after throwing an instance of '_gnu_cxx:recursive_init_error'

 

what (std) exception

 

this application has requested the runtime to terminate it an unusual way

Please contact the application's support team for more information

 

ajudaaa pelo amor de Deus

Editado por guiemo
Link para o comentário
Compartilhar em outros sites

[13/07/2011 00:07:54] [Error - TalkAction Interface]

[13/07/2011 00:07:54] data/talkactions/scripts/vipaccgod.lua:onSay

[13/07/2011 00:07:54] Description:

[13/07/2011 00:07:54] data/lib/vipAccount.lua:34: attempt to call field 'executeQuery' (a nil value)

[13/07/2011 00:07:54] stack traceback:

[13/07/2011 00:07:54] data/lib/vipAccount.lua:34: in function 'installVip'

[13/07/2011 00:07:54] data/talkactions/scripts/vipaccgod.lua:5: in function <data/talkactions/scripts/vipaccgod.lua:1>

[13/07/2011 00:09:01] Error during getDataInt(viptime).

 

 

 

Ta dando esse erro :S

Quando eu digo /installvip

 

Oq ser esse erro?

 

 

Alguem ajuda ai Pow

Editado por GicoxD
Link para o comentário
Compartilhar em outros sites

queria saber se tem como colocar um sistema de vip que adicionando pelo GOD receba uma vocaçao e que tenha acesso a Area vip ..não entendo muito de scipt .. se alquem puder me ajudar eu agradeço.

 

obrigado :biggrin:

Link para o comentário
Compartilhar em outros sites

Gente acho nao adianta posta nesse topico, acho que ele nao esta mais atendendo esse topico por que a ultiam resposta dele fo 16 de abriu,

postem em duvidas de website acho que la eles podem ajudar mais . flws

Link para o comentário
Compartilhar em outros sites

Erros --'

 

[19/07/2011 10:06:17] GOD DeadAngel has logged in.

[19/07/2011 10:06:17] Error during getDataInt(vipdays).

[19/07/2011 10:06:17] Error during getDataInt(vipdays).

[19/07/2011 10:06:17] Error during getDataInt(vipdays).

[19/07/2011 10:06:19] Error during getDataInt(vipdays).

[19/07/2011 10:06:22] Error during getDataInt(vipdays).

[19/07/2011 10:06:25] Error during getDataInt(vipdays).

[19/07/2011 10:06:28] Error during getDataInt(vipdays).

[19/07/2011 10:06:30] GOD DeadAngel has logged out.

[19/07/2011 10:06:31] Hight has logged in.

 

[19/07/2011 10:06:31] Lua Script Error: [MoveEvents Interface]

[19/07/2011 10:06:31] data/movements/scripts/viptile.lua:onStepIn

 

[19/07/2011 10:06:31] data/movements/scripts/viptile.lua:2: attempt to call global 'isVip' (a nil value)

[19/07/2011 10:06:31] stack traceback:

[19/07/2011 10:06:31] data/movements/scripts/viptile.lua:2: in function <data/movements/scripts/viptile.lua:1>

[19/07/2011 10:06:31] Error during getDataInt(vipdays).

[19/07/2011 10:06:31] Error during getDataInt(vipdays).

[19/07/2011 10:06:31] Error during getDataInt(vipdays).

[19/07/2011 10:06:31] Error during getDataInt(vipdays).

 

[19/07/2011 10:06:32] Lua Script Error: [MoveEvents Interface]

[19/07/2011 10:06:32] data/movements/scripts/viptile.lua:onStepIn

 

[19/07/2011 10:06:32] data/movements/scripts/viptile.lua:2: attempt to call global 'isVip' (a nil value)

[19/07/2011 10:06:32] stack traceback:

[19/07/2011 10:06:32] data/movements/scripts/viptile.lua:2: in function <data/movements/scripts/viptile.lua:1>

[19/07/2011 10:06:34] Error during getDataInt(vipdays).

[19/07/2011 10:06:37] Error during getDataInt(vipdays).

[19/07/2011 10:06:40] Error during getDataInt(vipdays).

[19/07/2011 10:06:43] Error during getDataInt(vipdays).

[19/07/2011 10:06:46] Error during getDataInt(vipdays).

[19/07/2011 10:06:49] Error during getDataInt(vipdays).

[19/07/2011 10:06:52] Error during getDataInt(vipdays).

[19/07/2011 10:06:55] Error during getDataInt(vipdays).

[19/07/2011 10:06:58] Error during getDataInt(vipdays).

[19/07/2011 10:07:01] Error during getDataInt(vipdays).

[19/07/2011 10:07:04] Error during getDataInt(vipdays).

[19/07/2011 10:07:07] Error during getDataInt(vipdays).

[19/07/2011 10:07:10] Error during getDataInt(vipdays).

[19/07/2011 10:07:13] Error during getDataInt(vipdays).

[19/07/2011 10:07:16] Error during getDataInt(vipdays).

[19/07/2011 10:07:19] Hight has logged out.

[19/07/2011 10:07:20] GOD DeadAngel has logged in.

[19/07/2011 10:07:20] Error during getDataInt(vipdays).

[19/07/2011 10:07:20] Error during getDataInt(vipdays).

[19/07/2011 10:07:20] Error during getDataInt(vipdays).

[19/07/2011 10:07:22] Error during getDataInt(vipdays).

[19/07/2011 10:07:24] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/questdebagcomitem.lua)

[19/07/2011 10:07:24] data/actions/scripts/questdebagcomitem.lua:20: 'end' expected (to close 'if' at line 3) near '<eof>'

[19/07/2011 10:07:24] [Warning - Actions::registerEvent] Duplicate registered item id: 2160

 

[19/07/2011 10:07:25] Lua Script Error: [Action Interface]

[19/07/2011 10:07:25] data/actions/scripts/vipdoor.lua:onUse

 

[19/07/2011 10:07:25] data/actions/scripts/vipdoor.lua:2: attempt to call global 'isVip' (a nil value)

[19/07/2011 10:07:25] stack traceback:

[19/07/2011 10:07:25] data/actions/scripts/vipdoor.lua:2: in function <data/actions/scripts/vipdoor.lua:1>

[19/07/2011 10:07:25] Error during getDataInt(vipdays).

 

[19/07/2011 10:07:26] Lua Script Error: [Action Interface]

[19/07/2011 10:07:26] data/actions/scripts/vipdoor.lua:onUse

 

[19/07/2011 10:07:26] data/actions/scripts/vipdoor.lua:2: attempt to call global 'isVip' (a nil value)

[19/07/2011 10:07:26] stack traceback:

[19/07/2011 10:07:26] data/actions/scripts/vipdoor.lua:2: in function <data/actions/scripts/vipdoor.lua:1>

 

[19/07/2011 10:07:26] Lua Script Error: [Action Interface]

[19/07/2011 10:07:26] data/actions/scripts/vipdoor.lua:onUse

 

[19/07/2011 10:07:26] data/actions/scripts/vipdoor.lua:2: attempt to call global 'isVip' (a nil value)

[19/07/2011 10:07:26] stack traceback:

[19/07/2011 10:07:26] data/actions/scripts/vipdoor.lua:2: in function <data/actions/scripts/vipdoor.lua:1>

 

[19/07/2011 10:07:28] Lua Script Error: [Action Interface]

[19/07/2011 10:07:28] data/actions/scripts/vipdoor.lua:onUse

 

[19/07/2011 10:07:28] data/actions/scripts/vipdoor.lua:2: attempt to call global 'isVip' (a nil value)

[19/07/2011 10:07:28] stack traceback:

[19/07/2011 10:07:28] data/actions/scripts/vipdoor.lua:2: in function <data/actions/scripts/vipdoor.lua:1>

 

[19/07/2011 10:07:28] Lua Script Error: [Action Interface]

[19/07/2011 10:07:28] data/actions/scripts/vipdoor.lua:onUse

 

[19/07/2011 10:07:28] data/actions/scripts/vipdoor.lua:2: attempt to call global 'isVip' (a nil value)

[19/07/2011 10:07:28] stack traceback:

[19/07/2011 10:07:28] data/actions/scripts/vipdoor.lua:2: in function <data/actions/scripts/vipdoor.lua:1>

 

[19/07/2011 10:07:28] Lua Script Error: [Action Interface]

[19/07/2011 10:07:28] data/actions/scripts/vipdoor.lua:onUse

 

[19/07/2011 10:07:28] data/actions/scripts/vipdoor.lua:2: attempt to call global 'isVip' (a nil value)

[19/07/2011 10:07:28] stack traceback:

[19/07/2011 10:07:28] data/actions/scripts/vipdoor.lua:2: in function <data/actions/scripts/vipdoor.lua:1>

[19/07/2011 10:07:28] Error during getDataInt(vipdays).

 

[19/07/2011 10:07:29] Lua Script Error: [Action Interface]

[19/07/2011 10:07:29] data/actions/scripts/vipdoor.lua:onUse

 

[19/07/2011 10:07:29] data/actions/scripts/vipdoor.lua:2: attempt to call global 'isVip' (a nil value)

[19/07/2011 10:07:29] stack traceback:

[19/07/2011 10:07:29] data/actions/scripts/vipdoor.lua:2: in function <data/actions/scripts/vipdoor.lua:1>

[19/07/2011 10:07:31] Error during getDataInt(vipdays).

[19/07/2011 10:07:34] Error during getDataInt(vipdays).

[19/07/2011 10:07:37] Error during getDataInt(vipdays).

[19/07/2011 10:07:40] Error during getDataInt(vipdays).

[19/07/2011 10:07:43] Error during getDataInt(vipdays).

[19/07/2011 10:07:46] Error during getDataInt(vipdays).

[19/07/2011 10:07:49] Error during getDataInt(vipdays).

[19/07/2011 10:07:52] Error during getDataInt(vipdays).

[19/07/2011 10:07:55] Error during getDataInt(vipdays).

[19/07/2011 10:07:58] Error during getDataInt(vipdays).

[19/07/2011 10:08:01] Error during getDataInt(vipdays).

[19/07/2011 10:08:04] Error during getDataInt(vipdays).

[19/07/2011 10:08:07] Error during getDataInt(vipdays).

[19/07/2011 10:08:10] Error during getDataInt(vipdays).

[19/07/2011 10:08:13] Error during getDataInt(vipdays).

[19/07/2011 10:08:16] Error during getDataInt(vipdays).

[19/07/2011 10:08:19] Error during getDataInt(vipdays).

[19/07/2011 10:08:22] Error during getDataInt(vipdays).

[19/07/2011 10:08:25] Error during getDataInt(vipdays).

[19/07/2011 10:08:28] Error during getDataInt(vipdays).

[19/07/2011 10:08:30] GOD DeadAngel has logged out.

Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...

Erro: Error during getDataInt(viptime).

Motivo: A coluna viptime não está instalada no seu banco de dados.

Solução:

Executar o comando /installvip do exemplo da Talkaction.

Ou executar o comando sql no seu banco de dados:

ALTER TABLE `accounts` ADD viptime INT(15) NOT NULL DEFAULT 0;

 

Quote

Erro: attempt to call global 'getVipTime' (a nil value).

Motivo: A função getVipTime não existe, pois não foi instalada.

Solução:

Você precisa colocar o vipAccount.lua na pasta data/lib.

Em alguns OTs ainda precisa abrir o arquivo data/lib/data.lua e colocar:

dofile(getDataDir() .. "lib/vipAccount.lua")

 

 

aki deu erro !como add ALTER TABLE `accounts` ADD viptime INT(15) NOT NULL DEFAULT 0; na minha database?

dofile(getDataDir() .. "lib/vipAccount.lua") nao tem script data.lua dentro da minha pasta lib ;x

Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...

Kydrai, gostaria

 

de usar esses 2 sistemas no seu Vip system, como fazer para adaptar?

 

<movevent type="StepIn" actionid="13540" event="script" value="vip.lua" />

 

 

 

function onStepIn(cid, item, pos)

 

 

 

-- aqui e aonde ele vai teleportar o player se ele nao for vip

teleport1 ={x=576, y=1143, z=7}

 

 

 

if isPlayer(cid) then

 

if item.actionid == 13540 then

 

vip = getPlayerStorageValue(cid,13540)

if vip == -1 then

doPlayerSendCancel(cid,"So players Vip podem ter acesso aos Teleports vip.")

 

 

doTeleportThing(cid,teleport1)

 

 

else

end

end

end

end

 

 

 

 

 

 

<movevent type="StepIn" uniqueid="13700" event="script" value="vipe.lua"/>

 

 

-- Script Vip Sytem 1.0 --

function onStepIn(cid, item, position, fromPosition)

 

local config = {

msgDenied = "Você não e vip ,entre em contato com a staff.",

msgWelcome = "Seja Bem Vindo a Area vip."

}

 

if getPlayerStorageValue(cid,13540) - os.time() <= 0 then

doTeleportThing(cid, fromPosition, true)

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgDenied)

doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)

return TRUE

end

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgWelcome)

return TRUE

end

 

Editado por TeruN
Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...
×
×
  • Criar Novo...