Ir para conteúdo
  • Cadastre-se

luanluciano93

Héroi
  • Total de itens

    5980
  • Registro em

  • Última visita

  • Dias Ganhos

    119

Tudo que luanluciano93 postou

  1. Como eu disse, eu não testei, coloquei para não dar nada errado.
  2. Não testei function onCastSpell(cid, var) local summons = getCreatureSummons(cid) -- verificando se tem summon if table.maxn(summons) < 1 then doPlayerSendCalcel(cid, "You don't have any summons.") return false end -- escolhendo um dos summons por random local random = math.random(1, table.maxn(summons)) local summon = summons[random].uid if not summon then return false end -- pegando a posição do player e do summon local position_player = getCreaturePosition(cid) local position_summon = getCreaturePosition(summon) -- trocando de posição o player e o summon esc
  3. Em "data/talkactions/talkactions.xml" adicione essa tag: <talkaction words="!bank" separator=" " script="bank.lua"/> Crie um arquivo em "data/talkactions/scripts" com o nome de "bank.lua" e coloque esse código dentro: function Player.deposit(self, amount) if not self:removeMoney(amount) then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[BankSystem]: You dont have money with you.") return false end self:setBankBalance(self:getBankBalance() + amount) return true end function Player.withdraw(self, amount) local balance = self:getBankBa
  4. Ele monstra naquele rank o rank de frags dos membros da guild.
  5. Eai pessoal, to fazendo aqui um layout pra um amigo .. o que acharam? LOGIN: ACCOUNT: RANK: FÓRUM: DONATE: Críticas plx!
  6. https://github.com/otland/forgottenserver/blob/master/data/npc/lib/npcsystem/modules.lua#L914-L1127 https://github.com/otland/forgottenserver/blob/master/data/npc/lib/npcsystem/modules.lua#L1041
  7. qual a versão do seu TFS? Tente mudar: function onUse(player, item, fromPosition, itemEx, toPosition, isHotkey) Por: function onUse(cid, item, fromPosition, itemEx, toPosition, isHotkey) local player = Player(cid)
  8. Vá na sua database e execute este comando sql: ALTER TABLE `players` ADD `frags` INT NOT NULL DEFAULT '0' O erro é que em sua database na tabela PLAYERS não existe a coluna FRAGS.
  9. Tutorial de como desativar a mensagem do cliente de atualização que aparece no cliente Tibia 10, habilitar a opção MC para o seu cliente e modificar o cliente para o IP do seu servidor de versão Tibia 10. • Desativando a mensagem de atualização: 1 - Você precisa baixar HexEditor XVI32 anexado a este tópico. 2 - Descompacte e abra Tibia.exe do seu diretório Tibia 10 com HexEditor XVI32. 3 - Substitua as próximas coisas por isso: Procure: 13EF52 Troque: E8 D6 A2 24 00 Por: B8 00 00 00 00 Procure: 27A94 Troque: 6A 00 6a 00 6A 4D EB 26 Por: 90 90 90 90 90 90 EB 2B Pr
  10. function Player.getAllItemsById(self, id) local containers = {} local items = {} for i = CONST_SLOT_HEAD, CONST_SLOT_AMMO do local item = self:getSlotItem(i) if item then if item:isContainer() then table.insert(containers, item:getUniqueId()) elseif not id or id == item:getId() then table.insert(items, item:getUniqueId()) end end end while #containers > 0 do for k = (Container(containers[1]):getSize() - 1), 0, -1 do local tmp = Container(containers[1]):getItem(
  11. Change: print(os.time() .." >= .. "timerOnExp) for: print(os.time() .." >= ".. timerOnExp) Are you going to use this script? onLogin? I think if this is it, the player will be offline on verification.
  12. function onSay(player, words, param) local resultId = db.storeQuery("SELECT `player_id`,`sid`, CONVERT(`attributes` USING latin1) AS `attr` FROM `player_items` WHERE CONVERT(`attributes` USING latin1) LIKE '%timerOnExp%'") if resultId then repeat local attr = result.getStream(resultId, "attr") local timerOnExp = tonumber(string.sub(attr, 25, 34)) if timerOnExp then if os.time() >= timerOnExp then print(os.time() .." >= .. "timerOnExp) local player_id = result.getNumber(resultId, "player_id") local sid = result.getNumber(resultId, "sid") db.query("DEL
  13. -- <talkaction words="!test" script="teste.lua" /> function onSay(player, words, param) local resultId = db.storeQuery("SELECT `player_id`,`sid`, CONVERT(`attributes` USING latin1) AS `attr` FROM `player_items` WHERE CONVERT(`attributes` USING latin1) LIKE '%timerOnExp%'") if resultId then repeat local attr = result.getStream(resultId, "attr") local timerOnExp = tonumber(string.sub(attr, 25, 34)) if os.time() >= timerOnExp then local player_id = result.getNumber(resultId, "player_id") local sid = result.getNumber(resultId, "sid") db.query("DELETE FROM `playe
  14. -- <talkaction words="!test" script="teste.lua" /> function onSay(player, words, param) local resultId = db.storeQuery("SELECT `player_id`,`sid`, CONVERT(`attributes` USING latin1) AS `attr` FROM `player_items` WHERE CONVERT(`attributes` USING latin1) LIKE '%timerOnExp%'") if resultId then repeat local attr = result.getStream(resultId, "attr") local timerOnExp = tonumber(string.sub(attr, 25, 34)) if os.time() >= timerOnExp then local player_id = result.getNumber(resultId, "player_id") local sid = result.getNumber(resultId, "sid") db.storeQuery("DELETE FROM `
  15. -- <talkaction words="!test" script="teste.lua" /> function onSay(player, words, param) local resultId = db.storeQuery("SELECT `player_id`,`pid`,`sid`,CONVERT(`attributes` USING latin1) AS `attr` FROM `player_items` WHERE CONVERT(`attributes` USING latin1) LIKE '%timerOnExp%'") if resultId then repeat local attr = result.getStream(resultId, "attr") local timerOnExp = tonumber(string.sub(attr, 25, 34)) if os.time() >= timerOnExp then local sid = result.getNumber(resultId, "sid") db.storeQuery("DELETE FROM `player_items` WHERE `sid` = ".. sid) print("deleted!
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo