Ir para conteúdo

Adm Junyor

Membro
  • Registro em

  • Última visita

Tudo que Adm Junyor postou

  1. oi estava sem pc agora poco testei não deu mesmo sendo vip ele diz que precisa de vip para usar !fly eu coloquei certo a storage 55555
  2. Nessa Storage coloco 55555? storage = 13500 -- Storage Id da sua vip account caso for usar somente vips Se Funfa Te do rep+ durante 1 mês kkkkk pq to atras disso a muito tempo
  3. Então Deve Ser Isso Tirei creaturescripts/scripts/vip: vip = { name = "Vip system"; author = "Mock"; version = "1.0.0.0"; query="ALTER TABLE `accounts` ADD `vip_time` INTEGER"; query2="ALTER TABLE `accounts` ADD `vip_time` INT(15) NOT NULL" } function vip.setTable() dofile('config.lua') if sqlType == "sqlite" then db.executeQuery(vip.query) else db.executeQuery(vip.query2) end end function vip.getVip(cid) assert(tonumber(cid),'Parameter must be a number') if isPlayer(cid) == FALSE then error('Player don\'t find') end; ae = db.getResult("SELECT `vip_time` FROM `accounts` WHERE `name` = '"..getPlayerAccount(cid).."';") if ae:getID() == -1 then return 0 end local retee = ae:getDataInt("vip_time") or 0 ae:free() return retee end function vip.getVipByAcc(acc) assert(acc,'Account is nil') local a = db.getResult("SELECT `vip_time` FROM `accounts` WHERE `name` = '"..acc.."';") if a:getID() ~= -1 then return a:getDataInt("vip_time") or 0, a:free() else error('Account don\'t find.') end end function vip.setVip(cid,time) dofile("config.lua") assert(tonumber(cid),'Parameter must be a number') assert(tonumber(time),'Parameter must be a number') if isPlayer(cid) == FALSE then error('Player don\'t find') end; db.executeQuery("UPDATE `"..sqlDatabase.."`.`accounts` SET `vip_time` = '"..(os.time()+time).."' WHERE `accounts`.`name` ='".. getPlayerAccount(cid).."';") end function vip.getVipByAccount(acc) assert(acc,'Account is nil') return db.getResult("SELECT `vip_time` FROM `accounts` WHERE `name` = '"..acc.."';"):getDataInt("vip_time") or 0 end function vip.hasVip(cid) assert(tonumber(cid),'Parameter must be a number') if isPlayer(cid) == FALSE then return end; local t = vip.getVip(cid) or 0 if os.time(day) < t then return TRUE else return FALSE end end function vip.hasVips(cid) assert(tonumber(cid),'Parameter must be a number') if isPlayer(cid) == FALSE then return end; local t = vip.getVip(cid) if os.time(day) < t then return TRUE else return FALSE end end function vip.accountHasVip(acc) assert(acc,'Account is nil') if os.time() < vip.getVipByAccount(acc) then return TRUE else return FALSE end end function vip.getDays(days) return (3600 * 24 * days) end function vip.addVipByAccount(acc,time) assert(acc,'Account is nil') assert(tonumber(time),'Parameter must be a number') local a = vip.getVipByAcc(acc) a = os.difftime(a,os.time()) if a < 0 then a = 0 end; a = a+time return vip.setVipByAccount(acc,a) end function vip.setVipByAccount(acc,time) dofile("config.lua") assert(acc,'Account is nil') assert(tonumber(time),'Parameter must be a number') db.executeQuery("UPDATE `accounts` SET `vip_time` = '"..(os.time()+time).."' WHERE `accounts`.`name` ='"..acc.."';") return TRUE end function vip.returnVipString(cid) assert(tonumber(cid),'Parameter must be a number') if isPlayer(cid) == TRUE then return os.date("%d %B %Y %X ", vip.getVip(cid)) end end Affz malz compiei errado correto é isso: -- [( Script edited by: DoidinMapper )] -- function onLogin(cid) local pos = {x=32360, y=31782, z=7} pos = {x=32360, y=31782, z=7} if vip.hasVip(cid) == TRUE then if getPlayerStorageValue(cid,55555) ~= 1 then setPlayerStorageValue(cid,55555,1) end elseif vip.hasVip(cid) ~= TRUE and vip.getVip(cid) ~= 0 then if getPlayerStorageValue(cid,55555) == 1 then doTeleportThing(cid, pos, TRUE) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your VIP's over!") doPlayerSendTextMessage(cid,22,"Your VIP's over!") setPlayerPromotionLevel(cid, 1) setPlayerStorageValue(cid,55555,2) elseif getPlayerStorageValue(cid,55555) == -1 then setPlayerStorageValue(cid,55555,2) end end return TRUE end
  4. mais onde fica a storage ? me fala que copio pra vc
  5. Tirei Da Pasta Lib Creio Que Seja isso: vip = { name = "Vip system"; author = "Mock"; version = "1.0.0.0"; query="ALTER TABLE `accounts` ADD `vip_time` INTEGER"; query2="ALTER TABLE `accounts` ADD `vip_time` INT(15) NOT NULL" } function vip.setTable() dofile('config.lua') if sqlType == "sqlite" then db.executeQuery(vip.query) else db.executeQuery(vip.query2) end end function vip.getVip(cid) assert(tonumber(cid),'Parameter must be a number') if isPlayer(cid) == FALSE then error('Player don\'t find') end; ae = db.getResult("SELECT `vip_time` FROM `accounts` WHERE `name` = '"..getPlayerAccount(cid).."';") if ae:getID() == -1 then return 0 end local retee = ae:getDataInt("vip_time") or 0 ae:free() return retee end function vip.getVipByAcc(acc) assert(acc,'Account is nil') local a = db.getResult("SELECT `vip_time` FROM `accounts` WHERE `name` = '"..acc.."';") if a:getID() ~= -1 then return a:getDataInt("vip_time") or 0, a:free() else error('Account don\'t find.') end end function vip.setVip(cid,time) dofile("config.lua") assert(tonumber(cid),'Parameter must be a number') assert(tonumber(time),'Parameter must be a number') if isPlayer(cid) == FALSE then error('Player don\'t find') end; db.executeQuery("UPDATE `"..sqlDatabase.."`.`accounts` SET `vip_time` = '"..(os.time()+time).."' WHERE `accounts`.`name` ='".. getPlayerAccount(cid).."';") end function vip.getVipByAccount(acc) assert(acc,'Account is nil') return db.getResult("SELECT `vip_time` FROM `accounts` WHERE `name` = '"..acc.."';"):getDataInt("vip_time") or 0 end function vip.hasVip(cid) assert(tonumber(cid),'Parameter must be a number') if isPlayer(cid) == FALSE then return end; local t = vip.getVip(cid) or 0 if os.time(day) < t then return TRUE else return FALSE end end function vip.hasVips(cid) assert(tonumber(cid),'Parameter must be a number') if isPlayer(cid) == FALSE then return end; local t = vip.getVip(cid) if os.time(day) < t then return TRUE else return FALSE end end function vip.accountHasVip(acc) assert(acc,'Account is nil') if os.time() < vip.getVipByAccount(acc) then return TRUE else return FALSE end end function vip.getDays(days) return (3600 * 24 * days) end function vip.addVipByAccount(acc,time) assert(acc,'Account is nil') assert(tonumber(time),'Parameter must be a number') local a = vip.getVipByAcc(acc) a = os.difftime(a,os.time()) if a < 0 then a = 0 end; a = a+time return vip.setVipByAccount(acc,a) end function vip.setVipByAccount(acc,time) dofile("config.lua") assert(acc,'Account is nil') assert(tonumber(time),'Parameter must be a number') db.executeQuery("UPDATE `accounts` SET `vip_time` = '"..(os.time()+time).."' WHERE `accounts`.`name` ='"..acc.."';") return TRUE end function vip.returnVipString(cid) assert(tonumber(cid),'Parameter must be a number') if isPlayer(cid) == TRUE then return os.date("%d %B %Y %X ", vip.getVip(cid)) end end
  6. Adm Junyor postou uma resposta no tópico em Suporte Tibia OTServer
    Ninguem? Oxi Preciso Fast Desse Sistema, e Se For Vim Pra Fala Do Double Post Pode pega sua critica e Enfia no Seu Cu A Vida é Bela! É Nóis Que Fode Ela..
  7. Adm Junyor postou uma resposta no tópico em Suporte Tibia OTServer
    Mais esse ai não tem nada ave com treiner off voçê só clica numa estatua e é tranportado pros treiner denovo kkkk Quero estilo global tu clica e fica treinando off ta ligado? eu sei que tem na versão 8.6 pq já joguei um ot com esse sistema. A Vida é Bela! É Nóis Que Fode Ela..
  8. Adm Junyor postou uma resposta no tópico em Suporte Tibia OTServer
    Ae Galera, Preciso De Um Sistema De Treiner Off Para Versão 8.6 Se Alguém Tiver Um Posta Ai Se Funcionar Dou Rep+ A Vida é Bela! É Nóis Que Fode Ela..
  9. Que Paste Do Server Fica Isso? hehe A Vida é Bela! É Nóis Que Fode Ela..
  10. Haha Escrevi Errado Desculpa Ai ! Tipo Assim: Players Free Também Conseguem Usar o Comando. Quero que Só Os Vips Usem o Comando !fly A Vida é Bela! É Nóis Que Fode Ela..
  11. Ei Mano Testei o Script Ele é Ótimo Cara Funciona Tudo pah Beleza Só Tem Um Problema Players Vip Também Conseguem Usar o Comando !Fly Ajuda Ai,Quero Só Vip Possa Usar o Comando. A Vida é Bela! É Nóis Que Fode Ela..
  12. Adm Junyor postou uma resposta no tópico em Suporte Tibia OTServer
    Castle Of King Aquele que a guild tenque invadi o castelo e ganhar o trono para ser a vencedora avá !
  13. Adm Junyor postou uma resposta no tópico em Suporte Tibia OTServer
    Oi Gente Aqui Eu Di NoVo! Preciso De Um Castle 24h Se Alguem Puder Ajuda Posta Ai Se Funcionar Eu Do Rep+
  14. Ainda não testei mais quando chega em casa eu testo vlw ae! Reputado!
  15. onde coloco isso? tem como explica passo a passo?
  16. Ae galera,alguem pode me fornecer um script de sitema !fly que só vips possa usar exemplo: !fly darashia,!fly farmine,etc... Aguardando resposta...Valendo Rep+ rsrs vlw ae
  17. Pow,esse seu script funciona mais ele fica recebendo os itens a cada 30 segundos ajuda ae como arruma?
  18. Ola, Galera alguém pode me ajudar me dizendo como fazer pra um item que eu der use o Player automaticamente ganhar vip?
  19. Alguem ajuda eu ai preciso de algo que entrege os itens e vip do site automaticamente dou rep+ pra quem ajudar
  20. não tem nenhuma senha ainda no meu config lua pq eu acabei de baixar o mapa então nem cheguei a carregar o mysql no phpmyadmin acabei de baixa o xampp também acabei de faze minha senha ainda não tive nenhum acesso no phpmyadmin
  21. ae galera alguem ajuda ai fiz minha senha certinha no localhost mais quando acesso localhost/phpmyadmin coloca usuario root e minha senha mais da esse erro: #1045 - Access denied for user 'root'@'localhost' (using password: YES) se alguem puder me ajudar lá pq coloco senha correta não tem como ela estar errada
  22. Vlw manow vo baixa aqui já dei seu Rep+
  23. Ae galera! Estou com um pequeno problema,baixei gesior 0.3.8 coloquei tudo certinho lá no xampp tbm liguei tudo ai quando coloco no site localhost aparece esses error: Notice: Undefined index: page in C:\xampp\htdocs\install.php on line 40 Notice: Undefined index: page in C:\xampp\htdocs\install.php on line 52 Notice: Undefined index: page in C:\xampp\htdocs\install.php on line 63 Por Favor alguem ajuda ai desde já vlw ae.
  24. tem como me passa o link direto pra download?

Informação Importante

Confirmação de Termo