Ir para conteúdo
Banner com Efeitos

GlobalCores

Membro
  • Registro em

  • Última visita

Tudo que GlobalCores postou

  1. Eu tava procurando lugar certo para postar mais ate agora não achei, então vou postar aqui mesmo. Eu tava falando com o "Mitsuig" no privado aqui no fórum pedindo uma ajuda, o mesmo falou que seria possível e que ele cobrava, até ai tudo bem. Paguei o valor que ele pediu e agora o sujeito não responde, to cansado de ser roubado por esses caras desse tipo, primeiro foi aquele "absolute" agora por esse Mitsuig O que fazer para pelo menos fazer algo para ele ser punido? Pode ficar roubando os outros no fórum sem problemas? ------------ Parece que ele resolveu responder, disse que me envia as 18:30. Vou aguardar e peço pro moderador ou alguém remover ou fechar o tópico;
  2. Como que faz a war anti-entrosa? é por npc ou comando? EDIT Ja vi é por actions.. beleza então. Tem o máximo de jogadores que pode entrar? Lua Script Error: [CreatureScript Interface] data/creaturescripts/scripts/citywar.lua:onLogout data/lib/citywars.lua:424: attempt to index local 'player' (a nil value) stack traceback: [C]: in function '__index' data/lib/citywars.lua:424: in function 'getPlayerWar' data/creaturescripts/scripts/citywar.lua:5: in function <data/creaturescripts/scripts/citywar.lua:3>
  3. Gente eu queria atualizar meus próprios items, tem muitos items por ai mais nenhum deles é compatível com meu e sempre fica bugando algum mapa. Como que posso atualizar o meu próprio item? alguém poderia me falar como que faço pra atualizar meus items? (desculpe não sei se é a área correta pra isso)
  4. Gente eu to com um problema em um ONKILL, na verdade acho que não seja o onkill O problema é o seguinte REWARD CHEST, quando eu mato o boss usando um jogador apenas não acontece nada o reward funciona perfeitamente, mais quando eu uso utevo res "fire elemental (qualquer monstro) e faça ele participar do boss do reward ou que ele chegue a matar o boss o server crasha Achei que o problema seria o onkill mais eu removi uma função do onkill e não caiu, por favor podem tentar me ajudar? Assim cai function onKill(cid, target) target = Monster(target) if (target ~= nil) then local mt = MonsterType(target:getName()) if mt:useRewardChest() then local loot = BossLoot:new(target) if loot then local corpse = Item(doCreateItem(MonsterType(target:getName()):getCorpseId(), 1, target:getPosition())) corpse:decay() target:setDropLoot(false) loot:updateDamage() loot:setRewards() loot:addRewards() corpse:setAttribute('aid', 21584) end end end return true end Então eu removi o ' loot:updateDamage() ' e parou de cair mais o reward não funciona como deveria claro que é enviar os items 'x' para os jogadores que participaram... function BossLoot:updateDamage() if self.creature then local tmp = {} local totaldmg = 0 for killer, damage in pairs(self.creature:getDamageMap()) do totaldmg = totaldmg+damage.total tmp[killer] = damage.total end self.players = sort_descending(tmp) self.totaldmg = totaldmg else error("Creature not found.") end end function onKill(cid, target) target = Monster(target) if (target ~= nil) then local mt = MonsterType(target:getName()) if mt:useRewardChest() then local loot = BossLoot:new(target) if loot then local corpse = Item(doCreateItem(MonsterType(target:getName()):getCorpseId(), 1, target:getPosition())) corpse:decay() target:setDropLoot(false) loot:setRewards() loot:addRewards() corpse:setAttribute('aid', 21584) end end end return true end
  5. @xWhiteWolf você com certeza não pode fazer um então ne? mais então o script inteiro ta aqui, eu estou tentando arrumar diariamente acabo perdendo a paciência e deixando pra la mais depois volto é que preciso muito adicionar um negocio desses no server eu vejo muitos ots por ai que tem. Se pudesse fazer com que o summon ou monstros não cause nenhum dano no boss do reward acho que resolveria o problema. Será possível fazer isso? Alguém pode tentar me ajudar ai por favor também... opinião é sempre bem vinda. function sort_descending(t) local tmp = {} for k, v in pairs(t) do table.insert(tmp, {k, v}) end table.sort(tmp, function(a, b) return a[2] > b[2] end) return tmp end function table.find(t, v) for i,x in pairs(t) do if x == v then return true end end end function Player:addItemRewardBag(item) local rewardbag = self:getDepotChest(99, true) return rewardbag:addItemEx(item) end function MonsterType:getBossReward(chance, unique) local ret = {} local function randomItem(lootBlock, chance) local randvalue = math.random(0, 100000) / (getConfigInfo("rateLoot") * chance) if randvalue < lootBlock.chance then if (ItemType(lootBlock.itemId):isStackable()) then return (randvalue%lootBlock.maxCount) + 0 else return 1 end end end local lootBlockList = self:getLoot() for _, loot in pairs(lootBlockList) do local rd = randomItem(loot, chance) if rd then if loot.uniquedrop then if unique then table.insert(ret, {loot, rd}) end else table.insert(ret, {loot, rd}) end end end return ret end BossLoot = {} BossUids = {} function BossLoot:new(boss) if not table.find(BossUids, boss:getId()) then table.insert(BossUids, boss:getId()) return setmetatable({creature=boss}, {__index = BossLoot}) end end function BossLoot:updateDamage() if self.creature then local tmp = {} local totaldmg = 0 for killer, damage in pairs(self.creature:getDamageMap()) do totaldmg = totaldmg+damage.total tmp[killer] = damage.total end self.players = sort_descending(tmp) self.totaldmg = totaldmg else error("Creature not found.") end end function BossLoot:setRewards() if self.totaldmg and self.creature then if getConfigInfo("rateLoot") > 0 then local mt = MonsterType(self.creature:getName()) for i, playertab in ipairs(self.players) do local loot if i == 1 then loot = mt:getBossReward(playertab[2] / self.totaldmg, true) else loot = mt:getBossReward(playertab[2] / self.totaldmg, false) end table.insert(self.players[i], loot) end end else error("Error") end end local bagId = 20620 function BossLoot:addRewards() if self.players and self.players[1] and self.players[1][3] then for i, playertab in ipairs(self.players) do local player = Player(playertab[1]) if player then local str = "The following items are available in your reward chest: " local bagUid = Game.createItem(bagId, 1) for i, lootTable in ipairs(playertab[3]) do local item = bagUid:addItem(lootTable[1].itemId, math.ceil(lootTable[2])) if item then str = str .. item:getNameDescription() .. ", " end end player:addItemRewardBag(bagUid) str = str:sub(1, #str-2) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, str) end end else error("Error") end end function onKill(cid, target) target = Monster(target) if (target ~= nil) then local mt = MonsterType(target:getName()) if mt:useRewardChest() then local loot = BossLoot:new(target) if loot then local corpse = Item(doCreateItem(MonsterType(target:getName()):getCorpseId(), 1, target:getPosition())) corpse:decay() target:setDropLoot(false) loot:updateDamage() loot:setRewards() loot:addRewards() corpse:setAttribute('aid', 21584) end end end return true end Eu fiz um teste se eu remover isso loot:updateDamage() O server não cai mesmo matando com player, com summon ou ambos juntos. Isso também pode ajudar não?
  6. ja esta desabilitado.. eu so estou querendo fazer funcionar porque to muito tempo tentando arrumar esse reward, consegui resolver o problema do debug que ficava derrubando mais agora esse do summon achei que seria mais simples @xWhiteWolf te mando o script inteiro você pode olhar pra mim e me dar uma ideia?
  7. @xWhiteWolf obrigado amigo, mais parece que não deu certo ou pode ser outra coisa. Eu detectei que se eu ligar o server e ir la matar o boss com o player funciona normal... logo apos se eu summonar utevo res ".... ele derruba o server. Mais eu fiz ao contrario, liguei o server fui matar diretamente com o utevo res ".... o server não caiu, mais dai quando eu matei novamente com o PLAYER o server caiu. Tem ideia do que seja? Eu vi em outro fórum falando sobre algo do tipo e o cara fez isto. eu tentei dos dois modos mais continuou caindo. function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin) if (Monster(creature) ~= nil) then local mt = MonsterType(creature:getName()) if mt:useRewardChest() then if attacker:getMaster() or not attacker:isPlayer() then return false end end end return primaryDamage, primaryType, secondaryDamage, secondaryType end ou function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin) if (Monster(creature) ~= nil) then local mt = MonsterType(creature:getName()) if mt:useRewardChest() then if primaryType ~= COMBAT_HEALING then if attacker == nil then return false end if attacker:getMaster() or not attacker:isPlayer() then return false end end end end return primaryDamage, primaryType, secondaryDamage, secondaryType end
  8. Gente estou usando este ONKILL no reward chest, mais quando eu uso UTEVO RES "fire elemental ou outro monstro se ele matar ou participar do boss do reward chest o servidor cai. Existe algum meio de fazer o summon do utevo res não participar do reward chest depois que o boss ser morto? Por favor aceito qualquer uma ideia function onKill(cid, target) target = Monster(target) if (target ~= nil) then local mt = MonsterType(target:getName()) if mt:useRewardChest() then local loot = BossLoot:new(target) if loot then local corpse = Item(doCreateItem(MonsterType(target:getName()):getCorpseId(), 1, target:getPosition())) doDecayItem() target:setDropLoot(false) loot:updateDamage() loot:setRewards() loot:addRewards() corpse:setAttribute('aid', 21584) end end end return true end
  9. @Reds o script não é meu, eu peguei ele por aqui se nao me falha a memoria... mais ok, obrigado mesmo assim.
  10. Sempre posto coisas aqui mais nunca sou respondido/ajudado ¬¬ desanimador.
  11. Olá gostaria de pedir uma força pra alguem ai. Eu gostaria que este script me envie uma BAG por cada boss do reward chest que o jogador matar, atualmente ele esta enviando os items normal so que se eu mato 2 bosses iguais ou diferentes os items fica um em cima do outro, gostaria de separar. Ex: matou um boss os items vai ser enviado dentro de uma bag ou backpack dependendo do id que colocar, quando eu matar o outro boss vou receber outra bag ou backpack e quando eu ir na ilha pegar os items do reward, lá vai esta 2 bag ou backpack e nao os items tudo juntos Eu tentei mais consegui apenas enviar 1 item por cada bag ou backpack, ou seja, se eu matar um boss e ganhar 10 item, vai ser enviado 10 bags :\ Por fim o scritp é este: function sort_descending(t) local tmp = {} for k, v in pairs(t) do table.insert(tmp, {k, v}) end table.sort(tmp, function(a, b) return a[2] > b[2] end) return tmp end function table.find(t, v) for i,x in pairs(t) do if x == v then return true end end end function Player:addItemRewardBag(itemid, count) local rewardbag = self:getDepotChest(99, true) return rewardbag:addItem(itemid, count) end function MonsterType:getBossReward(chance, unique) local ret = {} local function randomItem(lootBlock, chance) local randvalue = math.random(0, 100000) / (getConfigInfo("rateLoot") * chance) if randvalue < lootBlock.chance then if (ItemType(lootBlock.itemId):isStackable()) then return (randvalue%lootBlock.maxCount) + 0 else return 1 end end end local lootBlockList = self:getLoot() for _, loot in pairs(lootBlockList) do local rd = randomItem(loot, chance) if rd then if loot.uniquedrop then if unique then table.insert(ret, {loot, rd}) end else table.insert(ret, {loot, rd}) end end end return ret end BossLoot = {} BossUids = {} function BossLoot:new(boss) if not table.find(BossUids, boss:getId()) then table.insert(BossUids, boss:getId()) return setmetatable({creature=boss}, {__index = BossLoot}) end end function BossLoot:updateDamage() if self.creature then local tmp = {} local totaldmg = 0 for killer, damage in pairs(self.creature:getDamageMap()) do totaldmg = totaldmg+damage.total tmp[killer] = damage.total end self.players = sort_descending(tmp) self.totaldmg = totaldmg else error("Creature not found.") end end function BossLoot:setRewards() if self.totaldmg and self.creature then if getConfigInfo("rateLoot") > 0 then local mt = MonsterType(self.creature:getName()) for i, playertab in ipairs(self.players) do local loot if i == 1 then loot = mt:getBossReward(playertab[2] / self.totaldmg, true) else loot = mt:getBossReward(playertab[2] / self.totaldmg, false) end table.insert(self.players[i], loot) end end else error("Error") end end function BossLoot:addRewards() if self.players and self.players[1] and self.players[1][3] then for i, playertab in ipairs(self.players) do local player = Player(playertab[1]) if player then local str = "The following items are available in your reward chest: " for i, lootTable in ipairs(playertab[3]) do local item = player:addItemRewardBag(lootTable[1].itemId, math.ceil(lootTable[2])) if item then str = str .. item:getNameDescription() .. ", " end end str = str:sub(1, #str-2) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, str) end end else error("Error") end end function onKill(cid, target) target = Monster(target) if (target ~= nil) then local mt = MonsterType(target:getName()) if mt:useRewardChest() then local loot = BossLoot:new(target) if loot then local corpse = Item(doCreateItem(MonsterType(target:getName()):getCorpseId(), 1, target:getPosition())) doDecayItem() target:setDropLoot(false) loot:updateDamage() loot:setRewards() loot:addRewards() corpse:setAttribute('aid', 21584) end end end return true end
  12. @luanluciano93 você tem os HEX dos clientes 10.92 10.93 e 10.94 alguém tem?
  13. Gostaria de colocar este script para TFS 1.0 atualmente eu peguei ele na versão do TFS 1.2 mas infelizmente não consigo colocar pra ele contar o tempo e mover o jogador caso ele tiver parado pelo tempo determinado no script, acontece que não da erro no distro ele só não move, alguém poderia me ajudar? local config = { time = 15, -- minutes str = 98765, -- storage pos = {x = 31373, y = 32780, z = 7} -- position } function onStepIn(creature, item, position, fromPosition) local player = creature:getPlayer() if not player or player:isInGhostMode() then return true end local function isTraining(uid) local self = Player(uid) if not self then return false end return self:getStorageValue(config.str) > 0 and self:teleportTo(config.pos) or true end check = addEvent(isTraining, config.time * 60 * 1000, player:getGuid()) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, '[Treiner]: Movimente-se a cada ' .. config.time .. ' minutos, caso contrario, voce sera teleportado ao templo.') return player:setStorageValue(config.str, 1) end function onStepOut(creature, item, position, fromPosition) local player = creature:getPlayer() if not player or player:isInGhostMode() then return true end return stopEvent(check) and player:setStorageValue(config.str, -1) end Eu devo ter postado ele no lugar errado antes de postar aqui.. :\
  14. Gostaria de colocar este script para TFS 1.0 atualmente eu peguei ele na versão do TFS 1.2 mas infelizmente não consigo colocar pra ele contar o tempo e mover o jogador caso ele tiver parado pelo tempo determinado no script, acontece que não da erro nenhum ele só não move, alguém poderia me ajudar? local config = { time = 15, -- minutes str = 98765, -- storage pos = {x = 31373, y = 32780, z = 7} -- position } function onStepIn(creature, item, position, fromPosition) local player = creature:getPlayer() if not player or player:isInGhostMode() then return true end local function isTraining(uid) local self = Player(uid) if not self then return false end return self:getStorageValue(config.str) > 0 and self:teleportTo(config.pos) or true end check = addEvent(isTraining, config.time * 60 * 1000, player:getGuid()) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, '[Treiner]: Movimente-se a cada ' .. config.time .. ' minutos, caso contrario, voce sera teleportado ao templo.') return player:setStorageValue(config.str, 1) end function onStepOut(creature, item, position, fromPosition) local player = creature:getPlayer() if not player or player:isInGhostMode() then return true end return stopEvent(check) and player:setStorageValue(config.str, -1) end
  15. Parece que nem é items oficial, quando abre o mapa fica todo bugadão. Uso mais o remere do "ricker75" Não tem como trackear nesse remere ai que maioria usa? Obrigado
  16. Não consegui achar o que voce manda procurar no tfs 1,0 ;\
  17. GlobalCores postou uma resposta no tópico em Suporte Tibia OTServer
    Olá galera estou procurando o mapa de oramond na versão 10.8+ Todos que ja baixei aqui e em outros lugares dizem que é 10.7x ou até 10.8x mais na verdade quando baixamos e usamos CTRL+P para ver a propriedade do mapa esta na versão 10.55. Quando passo pra 10.8 ou acima de 10.55 o mapa buga inteiro, como faço para arrumar?
  18. GlobalCores postou uma resposta no tópico em Suporte Tibia OTServer
    ola, gente eu to procurando um script que quando os players causar dano e ajudar matar um boss dai todos que causou dano no boss depois que ele morrer ganha storage. eu consegui achar apenas para 1 jogador ganhar a storage quando mata o boss, eu to procurando pra todos ganhar mesmo se tiver fora da party, so dele terem causado dano e tals. Eu uso tfs 1.0 poderiam me ajudar por favor?

Informação Importante

Confirmação de Termo