Ir para conteúdo
Banner com Efeitos

Featured Replies

Postado

vai em npc > lib > npcsystem > modules.lua

troque


function StdModule.travel(cid, message, keywords, parameters, node)

local npcHandler = parameters.npcHandler

if(npcHandler == nil) then

error('StdModule.travel called without any npcHandler instance.')

end

if(cid ~= npcHandler.focus) then

return false

end

if(isPlayerPremiumCallback == nil or isPlayerPremiumCallback(cid) == true or parameters.premium == false) then

if(parameters.level ~= nil and getPlayerLevel(cid) < parameters.level) then

npcHandler:say('You must reach level ' .. parameters.level .. ' before I can let you go there.')

elseif(doPlayerRemoveMoney(cid, parameters.cost) ~= TRUE) then

npcHandler:say('You do not have enough money!')

else

doTeleportThing(cid, parameters.destination)

doSendMagicEffect(parameters.destination, 10)

end

else

npcHandler:say('I can only allow premium players to travel with me.')

end

npcHandler:resetNpc()

return true

end

por

function StdModule.travel(cid, message, keywords, parameters, node)

local npcHandler = parameters.npcHandler

if(npcHandler == nil) then

error('StdModule.travel called without any npcHandler instance.')

end

if(cid ~= npcHandler.focus) then

return false

end

if(isPlayerPremiumCallback == nil or isPlayerPremiumCallback(cid) == true or parameters.premium == false) then

if(parameters.level ~= nil and getPlayerLevel(cid) < parameters.level) then

npcHandler:say('You must reach level ' .. parameters.level .. ' before I can let you go there.')

elseif(doPlayerRemoveMoney(cid, parameters.cost) ~= TRUE) then

npcHandler:say('You do not have enough money!')

elseif (parameters.vip ~= nil and getPlayerStorageValue(cid, 29000) - os.time() <= 0) then

npcHandler:say('I can only allow vip players to travel with me!')											  

else

doTeleportThing(cid, parameters.destination)

doSendMagicEffect(parameters.destination, 10)

end

else

npcHandler:say('I can only allow premium players to travel with me.')

end

npcHandler:resetNpc()

return true

end

ai você pode usar o parâmetro igual no premium

premium = true -- para só premium usar

vip = true -- para só vip usar

e tbm colcoa o strorage do su sistema vip no script

Credito:Vodkart


Regras Gerais 

 

"Califórnia Brasileira :cool: "

  • Respostas 9
  • Visualizações 807
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • para tirar o vip do nome ta no topico q postei acime fera se nao conseguir posta aki, e sim o sitema de vip medal se adicionado certo é pra funcionar

  • vai em npc > lib > npcsystem > modules.lua troque function StdModule.travel(cid, message, keywords, parameters, node) local npcHandler = parameters.npcHandler if(npcHandler =

Postado
  • Autor

e sociopata, não consegui tirar o vip do char, tentei tirar uma linha de codigo e n foi.

se eu te ajudei, não me importo de clicar no gostei :D

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo