Postado Junho 20, 2012 12 anos 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 "
Postado Junho 20, 2012 12 anos 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
Postado Junho 20, 2012 12 anos acho q é so tirar da linha do login.lua nao é certeza irei vericar melhor amnha pos ja estou de saida Regras Gerais "Califórnia Brasileira "
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.