Ir para conteúdo
Banner com Efeitos

Baned

Membro
  • Registro em

  • Última visita

Tudo que Baned postou

  1. Baned postou uma resposta no tópico em Suporte Tibia OTServer
    Olá amigos, estou com um problema inegável no meu server, comprei um dedicado e instalei varios sistemas nele e com isso acarretou-se um consumo do CPU, mas não sei qual script está causando isso. Vou explicar para vocês, pois acredito que alguem possa ter uma ideia do que causa este consumo. Meu dedicado é: 4 x 4.0GHZ + 50GB HD SSD. Bom, o consumo é com a quantidade de player online. 0 players online = 1% 50 players online = 50% Porém, as vezes da uma variada, com 50 players online a porcentagem fica em 50% mas as vezes cai pra 30%, vai pra 40% e volta pra 50%.... Bom, ja sabemos entao que o consumo tem haver com player online, talvez alguma função que verifica algo no player, o mais provavel que seja em creaturescripts, mas ja dei uma olhada, nao vi nada que poderia causar o dano, talvez precise olhar de novo, mas alguem mais sabe o que poderia causar tanto consumo? Agradeço desde já.
  2. Obrigado Denny!!!! Resolvido.
  3. Boa noite Matheus, ja tentei isso também e não vai, continua mesma coisa. Abraços e valeu!
  4. Olá amigos, eu nao estou conseguindo tirar o exhausted da magic wall em meu servidor, de qualquer modo ele fica com exhausted de 2 segundos. Já tentei tirar o exhausted do spells, ja tentei deixar 0, ja tentei até tirar e isso não muda, la vai como está meus spells: <rune name="Magic Wall" id="2293" allowfaruse="1" charges="2" lvl="150" maglv="9" exhaustion="0" blocktype="all" event="script" value="support/magic wall rune.lua"/> local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY) setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1497) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE) function onCastSpell(cid, var) if (getPlayerStorageValue(cid, 34370) > 0) then return doPlayerSendCancel(cid, "Você não pode usar invisible durante o Zombie Event!") and doSendMagicEffect(getThingPos(cid), 2) end return doCombat(cid, combat, var) end
  5. Removi alguns "end" a mais que tinha e surgiu o seguinte erro: local function getDeathsAndKills(cid, type) -- by vodka local query,d = db.getResult("SELECT `player_id` FROM "..(tostring(type) == "kill" and "`player_killers`" or "`player_deaths`").." WHERE `player_id` = "..getPlayerGUID(cid)),0 if query:getID() ~= -1 then repeat d = d + 1 until not query:next() query:free() end return d end local function getPoints(cid) local Info = db.getResult("SELECT `rep` FROM `players` WHERE `id` = " .. getPlayerGUID(cid) .. ";") local s = Info:getDataInt("s") Info:free() return s end if s <= -20 then x = "GranBigNoob" elseif s <= -10 then x = "Big Noob" elseif s <= -1 then x = "Noob" elseif s == 0 then x = "Citizen" elseif s >= 1 then x = "Avowed" elseif s >= 10 and s < 20 then x = "Respected" elseif s >= 20 and s < 30 then x = "Sagaz" elseif s >= 30 and s < 40 then x = "Domination" elseif s >= 40 and s < 20 then x = "Bloodbath" elseif s >= 50 then x = "Legendary" end if isPlayer(thing.uid) then doPlayerSetSpecialDescription(thing.uid, "\n".. (getPlayerSex(thing.uid) == 0 and "Ela" or "Ele") .." ja Matou: [".. getDeathsAndKills(thing.uid, "kill") .."] Players.\n".. (getPlayerSex(thing.uid) == 0 and "Ela" or "Ele") .." ja Morreu: [".. getDeathsAndKills(thing.uid, "death") .."] Vezes.\nReputação: ".. getPoints .." (".. x ..")." ) end function onLook(cid, thing, position, lookDistance) return getPoints(cid) end [Error - Test Interface] data/creaturescripts/scripts/lawl.lua Description: data/creaturescripts/scripts/lawl.lua:19: attempt to compare nil with number [Error - Event::checkScript] Cannot load script (data/creaturescripts/scripts/lawl.lua)
  6. Também não funcionou Não sei mais o que eu faço =((((
  7. Continuou mesma coisa... 16:39 You see Mega Looter (Level 1202). She is a lord paladin. She is Member of the Et's Bolados (Endemonhado). Ela ja Matou: [182] Players. Ela ja Morreu: [88] Vezes. Reputação: 0 (Citizen) Aparecendo 0 na reputação, mas a reputação deste player é 56 na tabela...
  8. Olá amigos, estou com um problema, peguei um script que mostra algumas informações no look e tentei aumentar um pouco... Coloquei um sistema de reputação e criei uma tabela.. "rep" em "accounts" na database. Após isso criei este script encima de outro: function onLook(cid, thing, position, lookDistance) function getDeathsAndKills(cid, type) -- by vodka local query,d = db.getResult("SELECT `player_id` FROM "..(tostring(type) == "kill" and "`player_killers`" or "`player_deaths`").." WHERE `player_id` = "..getPlayerGUID(cid)),0 if (query:getID() ~= -1) then repeat d = d+1 until not query:next() query:free() end return d end getPoints = function(cid) local Info = db.getResult("SELECT `rep` FROM `players` WHERE `id` = " .. getPlayerGUID(cid) .. ";") local s = Info:getDataInt("s") Info:free() return s end if s <= -20 then x = "GranBigNoob" elseif s <= -10 then x = "Big Noob" elseif s <= -1 then x = "Noob" elseif s == 0 then x = "Citizen" elseif s >= 1 then x = "Avowed" elseif s >= 10 and s < 20 then x = "Respected" elseif s >= 20 and s < 30 then x = "Sagaz" elseif s >= 30 and s < 40 then x = "Domination" elseif s >= 40 and s < 20 then x = "Bloodbath" elseif s >= 50 then x = "Legendary" end if isPlayer(thing.uid) then doPlayerSetSpecialDescription(thing.uid, "\n"..(getPlayerSex(thing.uid) == 0 and "Ela" or "Ele").." ja Matou: ["..getDeathsAndKills(thing.uid, "kill").."] Players. \n"..(getPlayerSex(thing.uid) == 0 and "Ela" or "Ele").." ja Morreu: ["..getDeathsAndKills(thing.uid, "death").."] Vezes.\nReputação: "..s.." ("..x..") " ) end return true end O PROBLEMA: [8/4/2016 17:32:15] [Error - CreatureScript Interface] [8/4/2016 17:32:15] data/creaturescripts/scripts/lawl.lua:onLook [8/4/2016 17:32:15] Description: [8/4/2016 17:32:15] data/creaturescripts/scripts/lawl.lua:20: attempt to compare nil with number [8/4/2016 17:32:16] stack traceback: [8/4/2016 17:32:16] data/creaturescripts/scripts/lawl.lua:20: in function <data/creaturescripts/scripts/lawl.lua:1>
  9. Refiz o script, só tem 1 erro agora, a comparação de numeros, mas não sei como fazer... [8/4/2016 17:32:15] [Error - CreatureScript Interface] [8/4/2016 17:32:15] data/creaturescripts/scripts/lawl.lua:onLook [8/4/2016 17:32:15] Description: [8/4/2016 17:32:15] data/creaturescripts/scripts/lawl.lua:20: attempt to compare nil with number [8/4/2016 17:32:16] stack traceback: [8/4/2016 17:32:16] data/creaturescripts/scripts/lawl.lua:20: in function <data/creaturescripts/scripts/lawl.lua:1> function onLook(cid, thing, position, lookDistance) function getDeathsAndKills(cid, type) -- by vodka local query,d = db.getResult("SELECT `player_id` FROM "..(tostring(type) == "kill" and "`player_killers`" or "`player_deaths`").." WHERE `player_id` = "..getPlayerGUID(cid)),0 if (query:getID() ~= -1) then repeat d = d+1 until not query:next() query:free() end return d end getPoints = function(cid) local Info = db.getResult("SELECT `rep` FROM `players` WHERE `id` = " .. getPlayerGUID(cid) .. ";") local s = Info:getDataInt("s") Info:free() return s end if s <= -20 then x = "GranBigNoob" elseif s <= -10 then x = "Big Noob" elseif s <= -1 then x = "Noob" elseif s == 0 then x = "Citizen" elseif s >= 1 then x = "Avowed" elseif s >= 10 and s < 20 then x = "Respected" elseif s >= 20 and s < 30 then x = "Sagaz" elseif s >= 30 and s < 40 then x = "Domination" elseif s >= 40 and s < 20 then x = "Bloodbath" elseif s >= 50 then x = "Legendary" end if isPlayer(thing.uid) then doPlayerSetSpecialDescription(thing.uid, "\n"..(getPlayerSex(thing.uid) == 0 and "Ela" or "Ele").." ja Matou: ["..getDeathsAndKills(thing.uid, "kill").."] Players. \n"..(getPlayerSex(thing.uid) == 0 and "Ela" or "Ele").." ja Morreu: ["..getDeathsAndKills(thing.uid, "death").."] Vezes.\nReputação: "..s.." ("..x..") " ) end return true end
  10. function onLook(cid, thing, position, lookDistance) function getDeathsAndKills(cid, type) -- by vodka local query,d = db.getResult("SELECT `player_id` FROM "..(tostring(type) == "kill" and "`player_killers`" or "`player_deaths`").." WHERE `player_id` = "..getPlayerGUID(cid)),0 if (query:getID() ~= -1) then repeat d = d+1 until not query:next() query:free() end return d end local query,s = db.getResult("SELECT `rep` FROM ".."`players`".." WHERE `id` = "..getPlayerGUID(cid)),0 if s <= -20 then x = "GranBigNoob" elseif s <= -10 then x = "Big Noob" elseif s <= -1 then x = "Noob" elseif s == 0 then x = "Citizen" elseif s >= 1 then x = "Avowed" elseif s >= 10 and s < 20 then x = "Respected" elseif s >= 20 and s < 30 then x = "Sagaz" elseif s >= 30 and s < 40 then x = "Domination" elseif s >= 40 and s < 20 then x = "Bloodbath" elseif s >= 50 then x = "Legendary" if isPlayer(thing.uid) then doPlayerSetSpecialDescription(thing.uid, "\n"..(getPlayerSex(thing.uid) == 0 and "Ela" or "Ele").." ja Matou: ["..getDeathsAndKills(thing.uid, "kill").."] Players. \n"..(getPlayerSex(thing.uid) == 0 and "Ela" or "Ele").." ja Morreu: ["..getDeathsAndKills(thing.uid, "death").."] Vezes. \nReputacao: "..s.."("..x..") " ) end end return true end Refiz o script, porem na hora do look aparece assim: 15:29 You see Abomination Demon (Level 857). He is a elder druid. Ele ja Matou: [1] Players. Ele ja Morreu: [0] Vezes. Mas nao aparece a parte da Reputação: no finalzinho ali da descrição... Eu estou tentando fazer aparecer assim: 15:29 You see Abomination Demon (Level 857). He is a elder druid. Ele ja Matou: [1] Players. Ele ja Morreu: [0] Vezes. Reputacao: 10 (Respected).
  11. Obs 1: Sou ruim em scripts, criei com base em outros, por isso falhei. Bom, esse script é de look, primeiro ele mostra quantos você matou e quantos você morreu, e a segunda parte é a que mostra sua reputação de acordo com a tabela { players, rep} da minha database, porem não está funcionado, pode parecer ridiculo a forma como montei, mas foi a unica que consegui, alguem me da um help? function onLook(cid, thing, position, lookDistance) function getDeathsAndKills(cid, type) -- by vodka local query,d = db.getResult("SELECT `player_id` FROM "..(tostring(type) == "kill" and "`player_killers`" or "`player_deaths`").." WHERE `player_id` = "..getPlayerGUID(cid)),0 if (query:getID() ~= -1) then repeat d = d+1 until not query:next() query:free() end return d end if isPlayer(thing.uid) then local query, s = db.getResult("SELECT `rep` FROM `players` WHERE `id` = " ..getPlayerGUID(cid)), 0 if s <= -20 then x = {"GranBigNoob"} if s <= -10 then x = {"Big Noob"} if s <= -1 then x = {"Noob"} if s == 0 then x = {"Citizen"} if s >= 1 then x = {"Avowed"} if s >= 10 then if s < 20 then x = {"Respected"} if s >= 20 then if s < 30 then x = {"Sagaz"} if s >= 30 then if s < 40 then x = {"Domination"} if s >= 40 then if s < 20 then x = {"Bloodbath"} if s >= 50 then x = {"Legendary"} doPlayerSetSpecialDescription(thing.uid, "\n"..(getPlayerSex(thing.uid) == 0 and "Ela" or "Ele").." ja Matou: ["..getDeathsAndKills(thing.uid, "kill").."] Players.\n"..(getPlayerSex(thing.uid) == 0 and "Ela" or "Ele").." ja Morreu: ["..getDeathsAndKills(thing.uid, "death").."] Vezes" ) end end end end end end end end end end end end end end end return true end
  12. O script é basico mas não estou conseguindo cria-lo. Quando o player morre ele verifica os leveis do que matou ele e de quem morreu, se os dois forem level maior que 750, então ele adiciona 1 ponto para quem matou na tabela `rep` que fica em players na database, e tira 1 ponto de quem morreu. Obs: Script não da erro mas não adiciona os pontos e nem tira. function onDeath(cid, corpse, deathList) local repu = (1) local perd = (-1) if isPlayer(deathList[1]) then local p1 = getPlayerLevel(deathList[1]) local p2 = getPlayerLevel(cid) local id1 = getPlayerGUID(deathList[1]) local id2 = getPlayerGUID(cid) if p1 >= 750 then if p2 >= 750 then db.executeQuery("UPDATE `players` SET `rep` = `rep` + " .. repu .. " WHERE `id` = " .. id1 .. ";") db.executeQuery("UPDATE `players` SET `rep` = `rep` + " .. perd .. " WHERE `id` = " .. id2 .. ";") return true end end end return true end
  13. @ Victor Fasano Raful Entao, desativei firewall e foi, você saberia me dizer quais as portas eu devo desativar ou liberar?
  14. Gostaria de alterar isso pra ativar pelo account name, eu tentei mas não consegui,alguem sabe? ORIGINAL: if($action == "points") { $player = stripslashes(ucwords(strtolower(trim($_REQUEST['character'])))); $points = $_POST['points']; if(empty($player)) { $main_content .= '<form action="?subtopic=shopadmin&action=points" method="post"><B>Enter Character Name:</B><input type="textbox" name="character"><br> <B>Enter Points Amount:</B><input type="textbox" name="points"><br><br><input type="submit" value="Submit"> </form></center><form action="?subtopic=shopadmin" method="post" ><input name="submit" type="submit" value="Back" title="Back"/></form>'; } else { $player_data = $SQL->query("SELECT * FROM `players` WHERE `name` = '".$player."';")->fetch(); $SQL->query("UPDATE `accounts` SET `premium_points` = `premium_points` + '".$points."' WHERE `id` = '".$player_data['account_id']."'"); $SQL->query("UPDATE `accounts` SET `backup_points` = `backup_points` + '".$points."' WHERE `id` = '".$player_data['account_id']."'"); $main_content .= '<b><center>'.$points.' Premium Points added to the account of <i>'.$player.'</i> !</b></center><br> <form action="?subtopic=shopadmin" method="post" ><input name="submit" type="submit" value="Back" title="Back"/></form>'; } }
  15. Olá, recentemente, mudei de dedicado, para um melhor com melhor proteção, porem, o meu pagseguro automatico não funciona de jeito nenhum, e estou usando mesmo site, ja editei as configurações, está tudo perfeitamente configurado, porem o pagseguro nao manda as informações pro meu dedicado/site... eu e o dono já desligamos a proteção que a empresa fornece (firewall) e mesmo assim nada, parece que não tem comunicação com OVH algo do tipo... Alguem pode me dar uma luz?
  16. function countDown(position, time, color) -- faz a contagem de tempo local msg = os.date("%M:%S", time) if time > 0 then doSendAnimatedText(position, msg, color) addEvent(countDown, 1000, position, time - 1, color) end return true end
  17. Bom, criei um addevent que faz o seguinte, ele faz uma contagem de tempo, porem ele pega a posição do player inicial somente, e se o player andar, a contagem fica na antiga posição, eu gostaria que fosse onde o player estivesse andando passando o tempo... Olha: local config = { cor = 129 or 215, tempo = 30, storage1 = 19367, storage2 = 19368 } function demonstracao(cid) countDown(getPlayerPosition(cid), config.tempo, config.cor) end Como eu mudaria pra pegar a posição do player atualizada?
  18. Olá, estou tentando criar um globalevent que remove um Monstro se tiver na Position: [X: 32036] [Y: 32611] [Z: 7]. Um globalevent onTime, quando der o horário se um DEMON por exemplo, estiver na posição, remove-lo.
  19. Eu ja disse que você é lindo né? Valeu!
  20. Olá amigos, preciso de um script que teleport todos os players de um determinado local, porem nao estou conseguindo concluir, não da erro algum no script, porem nao funciona tbm... local config = { fromPos = {x=32592,y=32663,z=7}, -- posição superior esquerda do mapa, da area em que esta mapeado a area. toPos = {x=32594,y=32666,z=7}, -- posição inferior direita do mapa, da area em que esta mapeado a area. } local topos = {x=32623, y=32660, z=7} -- Posição para onde o player será teleportado. function onTime() removeMonsterInArea(fromPos, toPos) return true end function removeMonsterInArea() -- local positionsCheck = {} for i = config.fromPos.x, config.toPos.x do positionsCheck[#positionsCheck+1] = {x=i, y = config.fromPos.y, z = config.fromPos.z, stackpos = 0} for j = config.fromPos.y+1, config.toPos.y do positionsCheck[#positionsCheck+1] = {x=i, y = j, z = config.fromPos.z, stackpos = 0} end end for j=1, #positionsCheck do for i = 0, 255 do positionsCheck[j].stackpos = i local tile = getTileThingByPos(positionsCheck[j]) if isPlayer(tile.uid) then doTeleportThing(tile.uid, topos) end end end end
  21. 77mateus77 Nao funciona, fica em branco a pagina!
  22. Olá amigos, baixei recentemente o gesior 2012 modificado aqui do forum, segue o link: http://www.tibiaking.com/forum/topic/44980-gesioracc-2012-modificado-o-melhor/ Mas a pagina do characters.php é bem simples, eu gostaria de por algumas coisas nela, por exemplo, MANA, HP, QUEST, SKILLS, EQUIPAMENTOS.... Se alguem puder me ajudar, agradeço! E se alguem souber também como coloca o rank do lado direito > "top 5"...

Informação Importante

Confirmação de Termo