Ir para conteúdo

Heitorzera13

Membro
  • Registro em

  • Última visita

Tudo que Heitorzera13 postou

  1. .Quais tipos de firewall podemos usar no Ubuntu 16.04? O que eu preciso fazer para ter uma boa segurança nessa maquina?
  2. Tentei adicionar o sistema de FRAGS no Look do char, fiz tudo certinho, quando eu abro o ot não aparece nenhum erro: fraglook.lua creaturescripts.xml: <event type="login" name="fraglook" script="fraglook.lua"/>
  3. Boa noite! Seguinte galera, To com um problemão aqui, estou com um otserver pvp-enforced e quando um (Player MC) mata o outro ele ganha experiencia... Queria saber algum script para resolver ? Quero colocar pra pegar XP apenas com IPs diferentes! Obrigado a todos da equipe Tibia King, sou um fã de vcs, venho a anos pegando scripts, com certeza são os melhores, em breve quero ajudar e doar experiencias por aqui!
  4. up up up up
  5. default.lua local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end npcHandler:addModule(FocusModule:new())
  6. Estou tentando colocar um sistema pra quando algum Player mata o outro ele manda uma mensagem pra todo servidor falando! Usei essas scripts: if killer:isPlayer() then Game.broadcastMessage(player:getName().."["..player:getLevel().."] acabou de ser morto pelo jogador "..killer:getName().."["..killer:getLevel().."].", MESSAGE_STATUS_DEFAULT) end Mas apresenta o seguinte erro no terminal: Lua Script Error: [CreatureScript Interface] data/creaturescripts/scripts/playerdeath.lua:onDeath data/creaturescripts/scripts/playerdeath.lua:10: attempt to index field 'SvargrondArena' (a nil value) stack traceback: [C]: in function '__index' data/creaturescripts/scripts/playerdeath.lua:10: in function <data/creaturescripts/scripts/playerdeath.lua:3> playerdeath: local deathListEnabled = true function onDeath(player, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified) local playerId = player:getId() if nextUseStaminaTime[playerId] ~= nil then nextUseStaminaTime[playerId] = nil end player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You are dead.') if player:getStorageValue(Storage.SvargrondArena.Pit) > 0 then player:setStorageValue(Storage.SvargrondArena.Pit, 0) end if not deathListEnabled then return end local byPlayer = 0 local killerName if killer ~= nil then if killer:isPlayer() then byPlayer = 1 else local master = killer:getMaster() if master and master ~= killer and master:isPlayer() then killer = master byPlayer = 1 end end killerName = killer:isMonster() and killer:getType():getNameDescription() or killer:getName() else killerName = 'field item' end local byPlayerMostDamage = 0 local mostDamageKillerName if mostDamageKiller ~= nil then if mostDamageKiller:isPlayer() then byPlayerMostDamage = 1 else local master = mostDamageKiller:getMaster() if master and master ~= mostDamageKiller and master:isPlayer() then mostDamageKiller = master byPlayerMostDamage = 1 end end mostDamageName = mostDamageKiller:isMonster() and mostDamageKiller:getType():getNameDescription() or mostDamageKiller:getName() else mostDamageName = 'field item' end local playerGuid = player:getGuid() db.query('INSERT INTO `player_deaths` (`player_id`, `time`, `level`, `killed_by`, `is_player`, `mostdamage_by`, `mostdamage_is_player`, `unjustified`, `mostdamage_unjustified`) VALUES (' .. playerGuid .. ', ' .. os.time() .. ', ' .. player:getLevel() .. ', ' .. db.escapeString(killerName) .. ', ' .. byPlayer .. ', ' .. db.escapeString(mostDamageName) .. ', ' .. byPlayerMostDamage .. ', ' .. (unjustified and 1 or 0) .. ', ' .. (mostDamageUnjustified and 1 or 0) .. ')') local resultId = db.storeQuery('SELECT `player_id` FROM `player_deaths` WHERE `player_id` = ' .. playerGuid) local deathRecords = 0 local tmpResultId = resultId while tmpResultId ~= false do tmpResultId = result.next(resultId) deathRecords = deathRecords + 1 end if resultId ~= false then result.free(resultId) end if byPlayer == 1 then local targetGuild = player:getGuild() targetGuild = targetGuild and targetGuild:getId() or 0 if targetGuild ~= 0 then local killerGuild = killer:getGuild() killerGuild = killerGuild and killerGuild:getId() or 0 if killerGuild ~= 0 and targetGuild ~= killerGuild and isInWar(playerId, killer.uid) then local warId = false resultId = db.storeQuery('SELECT `id` FROM `guild_wars` WHERE `status` = 1 AND ((`guild1` = ' .. killerGuild .. ' AND `guild2` = ' .. targetGuild .. ') OR (`guild1` = ' .. targetGuild .. ' AND `guild2` = ' .. killerGuild .. '))') if resultId ~= false then warId = result.getNumber(resultId, 'id') result.free(resultId) end if warId ~= false then db.asyncQuery('INSERT INTO `guildwar_kills` (`killer`, `target`, `killerguild`, `targetguild`, `time`, `warid`) VALUES (' .. db.escapeString(killerName) .. ', ' .. db.escapeString(player:getName()) .. ', ' .. killerGuild .. ', ' .. targetGuild .. ', ' .. os.time() .. ', ' .. warId .. ')') end end end end end
  7. @luanluciano93 Não tenho o link amigo... mas TF é 1.3 1: BUG do NPC, maioria dos erros é de npcs/default.lua Atenciosamente Picola! default.lua
  8. http://enforced.servegame.com/ Boaa amigoss! Estou tenho um OT Pvp-Enforced e estou com dois problemas: 1: Bug do NPC, Diversos erros de npcs, quando eu abro otserver, tem uns 20 npc que não está funcionando mas todos os scripts .xml e .lua estão em suas pastas, ele apresenta os seguintes erros: [Warning - NpcScript::NpcScript] Can not load script: data/npc/scripts/Dorian.lua 2: Bug do MC, Quando um MC mata o outro ele ganha XP... Quero que só ganha XP com IPs diferentes. 3: Bug da PARCEL, Quando eu envio uma parcel pra alguem o OTserver cai, e quando cai ele apresenta o seguinte erro no terminal: Segmentation fault (core dumped) Atenciosamente Picola! 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.

Informação Importante

Confirmação de Termo