Ir para conteúdo

thiagobs

Membro
  • Registro em

  • Última visita

Tudo que thiagobs postou

  1. .Qual servidor ou website você utiliza como base? Qual o motivo deste tópico? problemas ao tenta compilar otservbr-global 12.60 Linux Ubunto 18.04 Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
  2. Olha acesso local utilize 127.0.0.1 ou localhost em seu navegador. problema é só no site ou ninguém consegui acessa o server também.
  3. Pessoal estou com erro ao inicia o servidor ele não carrega esses monsters, isso quando compilado em linux quando compilado em windows esses mostros inicia normalmente. distrito 0.4, 3777 , 8.6 [20:16:54.145] [Warning - Monsters::loadMonster] Cannot load monster (Draken Abomination) file (data/monster/8.6/Draken Abomination.xml). [20:16:54.145] Info: failed to load external entity "data/monster/8.6/Draken Abomination.xml" I/O warning : failed to load external entity "data/monster/8.6/Draken Elite.xml" [20:16:54.146] [Warning - Monsters::loadMonster] Cannot load monster (Draken Elite) file (data/monster/8.6/Draken Elite.xml). [20:16:54.146] Info: failed to load external entity "data/monster/8.6/Draken Elite.xml"
  4. JÁ TESTEI OS 2 SCRIPTS AQUI NÃO FUNCIONO
  5. Pessoal alguém me consegui um script para regenerar staminia quando o player estiver nos treines 8.6 The Forgotten Server 0.4
  6. tentei amigo mas não funciono não deu nem deu para da user no item
  7. Mano o user item funciono mas não foi adicionada vip Lembrando esse sistema deixa a informação de vip na coluna de accounts não s via storange
  8. Desculpa não entendi o script, feito para comprar via comando ou user item
  9. 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
  10. Pessoal então estou fazendo um servidor bem balanceado para players pagantes e não pagantes. o sistema de vip do meu projeto é comprado via gesior, gostaria que tive-se a opção em game também com user em um item seria ótimo. alguém pode me da uma mão de como fazer isso, esse é meu sistema de vip atual. 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
  11. Olá pessoal gostaria de saber ser e possível criar um script para compra de pontos no site. exemplo 1kk por 1 ponto no site
  12. Olá Pessoal estou com seguinte problema, meu quando abro meu map no rme e adiciono um respaw no mapa ele não aparece quando ligo o servidor, notei que eles fera a xml de spawn mas não atualiza ela com os novos montros, tentei cria outro mapa para testa e quando gerou a xml ele inseri-o os resp. então o problema é o seguinte quando vou editar o mapa original ele não salva.
  13. thiagobs postou uma resposta no tópico em Suporte Tibia OTServer
    Não funciono parou o script
  14. thiagobs postou uma resposta no tópico em Suporte Tibia OTServer
    Pessoal estou com problema com um script de uma porta vip, então ele estar funcionando mas o problema é que ele estar teleportando para dentro da porta não para depois dela ai fica uma impressão de bugado alguém pode me ajuda script local stor = 13540 -- storage function onUse(cid, item, fromPos, item2, toPos) if not hasVip(cid) then doTeleportThing(cid, fromPos) doSendMagicEffect(fromPos, CONST_ME_POFF) doPlayerSendCancel(cid, "You need vip account to pass.") end doSendMagicEffect(fromPos, CONST_ME_MAGIC_BLUE) return true end
  15. pode me indicar algum todos estão com problemas quando tento conecta ao banco Database error. Unknown database type in C:\Users\Desktop\Dragon Ball Evolution\Dragon Ball Evolution\config.lua . Must be equal to: "mysql" or "sqlite". Now is: ""
  16. poderia disponibilizar o site ?
  17. Da para ser mas objetivo na pergunta ?
  18. thiagobs postou uma resposta no tópico em Suporte Tibia OTServer
    Obg. desculpa a ignorância mas como posso inserir esse script
  19. Mit tem algum script de VIP DOR para esse sistema?
  20. thiagobs postou uma resposta no tópico em Suporte Tibia OTServer
    Uso essa http://www.tibiaking.com/forum/topic/41508-tfs-10-vip-system-baseado-no-do-mocks/
  21. thiagobs postou uma resposta no tópico em Suporte Tibia OTServer
    pessoal alguém tem um script para porta de só acesso se for VIP estrou precisando bastante
  22. Estar faltando a coluna em playes onlinetimetoday execulta no seu sql LTER TABLE `players` ADD `exphist_lastexp` BIGINT( 255 ) NOT NULL DEFAULT '0', ADD `exphist1` BIGINT( 255 ) NOT NULL DEFAULT '0', ADD `exphist2` BIGINT( 255 ) NOT NULL DEFAULT '0', ADD `exphist3` BIGINT( 255 ) NOT NULL DEFAULT '0', ADD `exphist4` BIGINT( 255 ) NOT NULL DEFAULT '0', ADD `exphist5` BIGINT( 255 ) NOT NULL DEFAULT '0', ADD `exphist6` BIGINT( 255 ) NOT NULL DEFAULT '0', ADD `exphist7` BIGINT( 255 ) NOT NULL DEFAULT '0', ADD `onlinetimetoday` BIGINT( 255 ) NOT NULL DEFAULT '0', ADD `onlinetime1` BIGINT( 255 ) NOT NULL DEFAULT '0', ADD `onlinetime2` BIGINT( 255 ) NOT NULL DEFAULT '0', ADD `onlinetime3` BIGINT( 255 ) NOT NULL DEFAULT '0', ADD `onlinetime4` BIGINT( 255 ) NOT NULL DEFAULT '0', ADD `onlinetime5` BIGINT( 255 ) NOT NULL DEFAULT '0', ADD `onlinetime6` BIGINT( 255 ) NOT NULL DEFAULT '0', ADD `onlinetime7` BIGINT( 255 ) NOT NULL DEFAULT '0', ADD `onlinetimeall` BIGINT( 255 ) NOT NULL DEFAULT '0'; UPDATE `players` SET `exphist_lastexp`=`players`.`experience`;
  23. Hey amigos alguém pode me dizer como adicionar exp extra para vip jogadores que eu quero 20% mais exp usei esses sistema para a VIP http://www.tibiaking.com/forum/topic/41508-tfs-10-vip-system-baseado-no-do-mocks/ Mas com o script abaixo não tiver sucesso, o sistema da a msg que tenho mas 20% mas ao matar o mostro não e adicionado os 20%. local rate = 20 --- porcentagem que irá ganhar a mais. function onKill(cid, target, lastHit) if hasVip(cid) == true then local monster = Monster(target) if not monster then return true end for id, damage in pairs(monster:getDamageMap()) do local player = Player(id) if player then local experience = damage.total / monster:getType():getHealth() * monster:getType():getExperience() local expFormula = (((experience * Game.getExperienceStage(player:getLevel())) / 100) * rate) player:addExperience(math.floor(expFormula), true) end end end return true end Em creaturescripts.xml adcione a tag: <event type="kill" name="Exp_Extra" event="script" value="extraexp.lua"/> E por fim add o evento no creaturescripts/scripts/login.lua: player:registerEvent("Exp_Extra")

Informação Importante

Confirmação de Termo