Ir para conteúdo

Bruno Rezende

Membro
  • Registro em

  • Última visita

Tudo que Bruno Rezende postou

  1. Meu console dá erro quando eu uso só o comando !autoloot pra ver as opções, o resto parece funcionar 100%: [2/1/2021 15:35:2] [Error - TalkAction Interface] [2/1/2021 15:35:2] local cid = 268449354 [2/1/2021 15:35:2] local words = "/autoloot" [2/1/2021 15:35:2] local param = "" [2/1/2021 15:35:2] local channel = 65534 [2/1/2021 15:35:2] domodlib('Loot_func') [2/1/2021 15:35:2] local param, slots = param:lower(), isPremium(cid) and info.Max_Slots.premium or info.Max_Slots.free [2/1/2021 15:35:2] if not param or param == "" then [2/1/2021 15:35:2] ShowItemsTabble(cid) return true [2/1/2021 15:35:2] elseif tonumber(param) then [2/1/2021 15:35:2] doPlayerSendCancel(cid, "enter commands: !autoloot item name [+] !autoloot clean [+] !autoloot money [+] !autoloot on/off") return true [2/1/2021 15:35:2] elseif isInArray({"clean","limpar", "clear"}, param) then [2/1/2021 15:35:2] if existsAutoloot(cid) then doCleanAutoloot(cid) end [2/1/2021 15:35:2] doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Auto Loot] Your list has been cleaned.") return true [2/1/2021 15:35:2] elseif isInArray({"start","stop","on","off"}, param) then [2/1/2021 15:35:2] setPlayerStorageValue(cid, info.Storages[1], getPlayerStorageValue(cid, info.Storages[1]) <= 0 and 1 or 0) [2/1/2021 15:35:2] doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"Auto Loot "..(getPlayerStorageValue(cid, info.Storages[1]) > 0 and "Stopped" or "Started")..".") return true [2/1/2021 15:35:2] elseif isInArray({"warn","aviso"}, param) then [2/1/2021 15:35:2] setPlayerStorageValue(cid, info.Storages[3], getPlayerStorageValue(cid, info.Storages[3]) <= 0 and 1 or 0) [2/1/2021 15:35:2] doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"Auto Loot Backpack Warn "..(getPlayerStorageValue(cid, info.Storages[3]) > 0 and "disabled" or "Activated")..".") return true [2/1/2021 15:35:2] elseif isInArray({"mensagem","message","mensagen","msg"}, param) then [2/1/2021 15:35:2] setPlayerStorageValue(cid, info.Storages[6], getPlayerStorageValue(cid, info.Storages[6]) <= 0 and 1 or 0) [2/1/2021 15:35:2] doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"Auto Loot Message "..(getPlayerStorageValue(cid, info.Storages[6]) > 0 and "disabled" or "Activated")..".") return true [2/1/2021 15:35:2] elseif isInArray({"cor","color","type"}, param) then [2/1/2021 15:35:2] setPlayerStorageValue(cid, info.Storages[5], getPlayerColorLootMessage(cid) == #Color_Loot and 0 or getPlayerColorLootMessage(cid)+1) [2/1/2021 15:35:2] doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"Auto Loot Message Color Changed to "..Color_Loot[getPlayerColorLootMessage(cid)][2]..".") return true [2/1/2021 15:35:2] elseif isInArray({"money","gold","gps","dinheiro"}, param) then [2/1/2021 15:35:2] setPlayerStorageValue(cid, info.Storages[2], getPlayerStorageValue(cid, info.Storages[2]) <= 0 and 1 or 0) [2/1/2021 15:35:2] doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"Auto Loot Gold Colleting "..(getPlayerStorageValue(cid, info.Storages[2]) > 0 and "Activated" or "disabled")..".") return true [2/1/2021 15:35:2] elseif isInArray({"deposito","bank","gbank","deposit","autodeposit"}, param) then [2/1/2021 15:35:2] setPlayerStorageValue(cid, info.Storages[4], getPlayerStorageValue(cid, info.Storages[4]) <= 0 and 1 or 0) [2/1/2021 15:35:2] doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Auto Loot] Automatic Gold Bank "..(getPlayerStorageValue(cid, info.Storages[4]) > 0 and "Activated" or "disabled")..".") return true [2/1/2021 15:35:2] end [2/1/2021 15:35:2] local item = ExistItemByName(tostring(param)) [2/1/2021 15:35:2] if not item then [2/1/2021 15:35:2] doPlayerSendCancel(cid, "This item does not exist.") return true [2/1/2021 15:35:2] end [2/1/2021 15:35:2] local item = getItemIdByName(tostring(param)) [2/1/2021 15:35:2] local var = isInTable(cid, item) [2/1/2021 15:35:2] if isInArray(info.Money_ids, item) then [2/1/2021 15:35:2] doPlayerSendTextMessage(cid, MESSAGE_FIRST, "Enter !autoloot money to add money in your list!") return true [2/1/2021 15:35:2] elseif isInArray(info.BlockItemsList, item) then [2/1/2021 15:35:2] doPlayerSendCancel(cid, "You can not add this item in the list!") return true [2/1/2021 15:35:2] elseif not var and #getItensFromAutoloot(cid) >= slots then [2/1/2021 15:35:2] doPlayerSendCancel(cid, "max "..slots.." from auto loot") return true [2/1/2021 15:35:2] elseif getPlayerStorageValue(cid, info.Storages[7]) - os.time() > 0 then [2/1/2021 15:35:2] doPlayerSendCancel(cid, "wait a second to use this command again") return true [2/1/2021 15:35:2] end [2/1/2021 15:35:2] if not var then [2/1/2021 15:35:2] doAddItemFromAutoloot(cid, item) [2/1/2021 15:35:2] else [2/1/2021 15:35:2] doremoveItemFromAutoloot(cid, item) [2/1/2021 15:35:2] end [2/1/2021 15:35:2] setPlayerStorageValue(cid, info.Storages[7], os.time()+info.Talkaction_delay) [2/1/2021 15:35:2] doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,not var and "you added the item "..param.." in the list" or "you removed the item "..param.." from the list, please wait 5 seconds to save the directory.") [2/1/2021 15:35:2] return true [2/1/2021 15:35:2] Description: [2/1/2021 15:35:2] [string "info = {..."]:85: attempt to call global 'doPlayerPopupFYI' (a nil value)
  2. Comigo funcionou bem, muito obrigado e parabéns pelo trabalho. Eu tenho um sistema de VIP que atribui um storage para players, consigo limitar a quantidade de slots ao invés de premium, por esse storage?
  3. .Qual servidor ou website você utiliza como base? The OTX Server Version: (2.100 - 6000) - Codename: (FINAL Olá pessoal, tudo bem? Tenho uma Mana Rune funcional no meu servidor, o único problema é que, ao contrário de todas as outras, ela não mostra a quantidade de cargas que tem. Ela vem corretamente com 100 cargas (ao usar 100x ela some) mas não mostra. Gostaria que ela mostrasse a quantidade de cargas, se alguém puder ajudar Spells.xml <rune name="Mana Rune" id="2281" allowfaruse="1" charges="1" maglv="1" exhaustion="800" aggressive="0" needtarget="1" blocktype="solid" event="script" value="healing/manarune.lua"/> Spells/Script local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) function onCastSpell(cid, var) doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE) local level = getPlayerLevel(cid) local magicl = getPlayerMagLevel(cid) local min = ((level * 0.2) + (magicl * 2) + 50) local max = ((level * 0.2) + (magicl * 2.5) + 75) doCreatureAddMana(cid, math.random(min, max)) return doCombat(cid, combat, var) end Items.xml <item id="2281" article="a" name="mana rune"> <attribute key="type" value="rune"/> <attribute key="charges" value="1"/> <attribute key="weight" value="52"/> </item> Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
  4. Esse script é realmente randomico? Curti demais a ideia, implantei mas acho que tá dando pra ganhar muito fácil
  5. .Qual servidor ou website você utiliza como base? The OTX Server Version: (2.100 - 6000) - Codename: (FINAL) Qual o motivo deste tópico? Suporte Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: local config = { rate = 2.0, -- Rate que vai ficar o Scroll. time = 2, -- Tempo dado pelo Scroll. storage = 20011 } local function endExpRate(cid) if not isPlayer(cid) then return end doPlayerSetRate(cid, SKILL__LEVEL, 6.0) setPlayerStorageValue(cid, config.storage, -1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Your extra experience time has ended.") end function onUse(cid, item, fromPosition, itemEx, toPosition) local timeLeft = getPlayerStorageValue(cid, 20011) if timeLeft > os.time() then local timeTable = os.date('*t', timeLeft - (os.time() + 3600)) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, string.format("You still have %d %s %d %s %d %s left of extra experience.", timeTable.hour, timeTable.hour > 1 and "hours" or "hour", timeTable.min, timeTable.min > 1 and "minutes" or "minute", timeTable.sec, timeTable.sec > 1 and "seconds" or "second")) return true end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, string.format("Your extra experience rate is now: %d. It will last for %d hours.", config.rate, config.time)) doPlayerSetRate(cid, SKILL__LEVEL, config.rate) setPlayerStorageValue(cid, config.storage, os.time() + config.time * 3600 * 1000) addEvent(endExpRate, config.time * 3600 * 1000, cid) doRemoveItem(item.uid, 1) return true end Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
  6. Achou a solução?
  7. Meu tb loga e desloga na mesma hora, alguem conseguiu resolver?
  8. xd

Informação Importante

Confirmação de Termo