Ir para conteúdo
  • Cadastre-se

FlavioHulk

Membro
  • Total de itens

    463
  • Registro em

  • Última visita

  • Dias Ganhos

    7

Tudo que FlavioHulk postou

  1. local config, tab = { creatures = { [1] = "Jack Sparrow", [2] = "Catatau", [3] = "Belmont's Revenge" }, positions = { [1] = {x = 386, y = 154, z = 7}, [2] = {x = 388, y = 154, z = 7}, [3] = {x = 390, y = 154, z = 7} }, price = 1, amountReward = 10, cassinoCoin = 6527, }, {} local function createMonster(creature, position) doCreateMonster(creature, position) doSendMagicEffect(position, 26) addEvent(doSendMagicEffect, 100, position, 37) return true end function onUse(cid, item, fromPosition, itemEx, toPosition) if getGlobalStorageValue(82192) > os.time() then
  2. local config, tab = { creatures = { [1] = "Jack Sparrow", [2] = "Catatau", [3] = "Belmont's Revenge" }, positions = { [1] = {x = 386, y = 154, z = 7}, [2] = {x = 388, y = 154, z = 7}, [3] = {x = 390, y = 154, z = 7} }, price = 1, amountReward = 10, cassinoCoin = 6527, }, {} local function createMonster(creature, position) doCreateMonster(creature, position) doSendMagicEffect(position, 26) addEvent(doSendMagicEffect, 100, position, 37) return true end function onUse(cid, item, fromPosition, itemEx, toPosition) if getGlobalStorageValue(82192) > os.time() then
  3. Adiciona em: data/lib/core/game.lua if not globalStorageTable then globalStorageTable = {} end function Game.getStorageValue(key) return globalStorageTable[key] or -1 end function Game.setStorageValue(key, value) globalStorageTable[key] = value end Testei o script e tudo está funcionando normalmente... Boa sorte ! local config, players = { actionId = 1225, -- Action ID da quest. healthLose = 50, -- Quantidade de life perdido a cada clique. healthTotal = 300, -- Quantidade a ser alcançada de life. reward = { [1] = {itemId = 2160, amount = 100} -- Recompensa it
  4. local config, players = { actionId = 1225, -- Action ID da quest. healthLose = 50, -- Quantidade de life perdido a cada clique. healthTotal = 10000, -- Quantidade a ser alcançada de life. reward = { [1] = {itemId = 2160, amount = 100} -- Recompensa itemId e quantidade }, globalStorage = 52220, -- Storage global storagePlayer = 52221 -- Storage do player }, {} function onUse(player, item, fromPosition, target, toPosition, isHotkey) if item.actionid ~= config.actionId then return false end if Game.getStorageValue(config.globalStorage) > 0 then player:sendCancelMessage('The
  5. local config, players = { actionId = 1225, -- Action ID da quest. healthLose = 50, -- Quantidade de life perdido a cada clique. healthTotal = 10000, -- Quantidade a ser alcançada de life. reward = { [1] = {itemId = 2160, amount = 100} -- Recompensa itemId e quantidade }, globalStorage = 52220, -- Storage global storagePlayer = 52221 -- Storage do player }, {} function onUse(player, item, fromPosition, target, toPosition, isHotkey) if item.actionid ~= config.actionId then return false end if Game.getStorageValue(globalStorage) > 0 then player:sendCancelMessage('The daily q
  6. Minha simples opinião: Cara, se você está sendo ajudado, antes de tudo seja educado, e amigável. Outra, ninguém, absolutamente ninguém fará algo inteiramente pra você gratuitamente, tempo e aprendizado é dinheiro. E ele não tem obrigação em atualizar o Gesior que ele disponibilizou, o código pode ter ficado ultrapassado, e você como OT-ADMIN deve saber o básico disso... Em resumo, vocês tem o olho grande (não generalizando), com intuito de abrir um server ganhar grana, e pedir ajudas em fóruns em troco de nada, e ainda achar que temos obrigação e direito em entregar um script de mão beijada.
  7. Só consegui pensar nisso nesse momento de sono extremo kk, testa aí, e me retorna informação... local function attackSpell(player) local player = Player(player) if not player then return false end local min = (player:getLevel() / 5) + (player:getMagicLevel() * 5) + 25 local max = (player:getLevel() / 5) + (player:getMagicLevel() * 6.2) + 45 doAreaCombatHealth(player.uid, COMBAT_HOLYDAMAGE, player:getPosition(), 3--[[Area de combate ]], -min, -max, CONST_ME_HOLYAREA) return true end function onUseWeapon(player, variant) attackSpell(player.uid) return true end
  8. Qual erro aparece? Poderia fazer um vídeo?
  9. O Trainning Dummy? Isso é um item ou uma criatura? Porque esse training é uma versão nova do global...
  10. Deve ser coisa do 0.4 haha, utilizo sempre o table.contains em 1.3. Valeu pela dica!! ------------------------------------------------------------------------------------------------ local config = { storage = 97933, -- STORAGE vocation = {2, 6}, -- ID DA VOCAÇÃO SEM PROMOTION E COM PROMOTION item = 2160, -- ITEM ID item_qntd = 100 -- QUANTIDADE DO ITEM } function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerStorageValue(cid, config.storage) > 0 then doPlayerSendCancel(cid, "Você já fez a quest.") doSendMagicEffect(toPosition, CONST
  11. Que distro você utiliza? Dificulta ainda mais se ficarmos tentando descobrir qual distro você utiliza!
  12. Provavelmente seu provedor não permite abertura de tais portas, tente entrar em contato com eles...
  13. local config = { vocation = {2, 5}, -- Colocar os ids das vocações storage = 45415 } function onUse(cid, item, fromPosition, itemEx, toPosition) if not table.contains(config.vocation, getPlayerVocation(cid)) then doPlayerSendCancel(cid, "Você não tem a vocação permitida.") doSendMagicEffect(toPosition, CONST_ME_POFF) return true end if getPlayerStorageValue(cid, config.storage) > 0 then doPlayerSendCancel(cid, "Você já fez a quest.") doSendMagicEffect(toPosition, CONST_ME_POFF) return true end doPlayerAddItem(cid, 2376) -- Id do prêmio doPlayerSendTextMessage(cid, MES
  14. local config = { vocation = {2, 5} -- Colocar os ids das vocações } function onUse(cid, item, fromPosition, itemEx, toPosition) if not table.contains(config.vocation, getPlayerVocation(cid)) then doPlayerSendCancel(cid, "Você não tem a vocação permitida.") doSendMagicEffect(toPosition, CONST_ME_POFF) return true end doPlayerAddItem(cid, 2376) -- Id do prêmio doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você ganhou tal item...") return true end Obs.: Não manjo bem de 0.4, sem objeto orientado é tenso haha
  15. local config = { [1] = { text = "Bem-Vindo(a)", position = {x = 160, y = 54, z = 7}, effect = 30, colorText = 125 }, [2] = { text = "Bem-Vindo", position = {x = 158, y = 51, z = 4}, effect = 30, colorText = 125 } } function onThink(cid, interval, lastExecution) for i = 1, #config do local tmpConfig = config[i] doSendAnimatedText(tmpConfig.position, tmpConfig.text, tmpConfig.colorText) addEvent(doSendMagicEffect, 150, tmpConfig.position, tmpConfig.effect) end return true end
  16. Dê uma olhada no firewall interno do linux...
  17. local positions = { ["Bem-Vindo(a)"] = {{ x = 160, y = 54, z = 7 }, 30, 9}, ["Bem-Vindo"] = {{ x = 158, y = 51, z = 4 }, 30, 9}, } function onThink(cid, interval, lastExecution) for text, v in pairs(positions) do local pos = v[1] doSendAnimatedText(pos, text, NUMERODACOR) addEvent(doSendMagicEffect, 150, pos, v[2]) end return true end
  18. local config = { pos = {x = 1034, y = 1028, z = 7}, lever = {x = 1034, y = 1019, z = 7, stackpos = 1}, pos1 = {x = 1034, y = 1020, z = 7, stackpos = 253} } function onUse(cid, item, fromPosition, itemEx, toPosition) local lever1pos, player1pos = getThingFromPos(config.lever), getThingFromPos(config.pos1) if item.itemid ~= 1945 then doPlayerSendTextMessage(cid, 25, "Alguem ja esta fazendo a quest.") doSendMagicEffect(getCreaturePosition(cid), 2) return true end if player1pos.itemid < 1 then doPlayerSendTextMessage(cid, 25, "Voce nao esta na posicao correta.") doSendMagicEf
  19. Usa esse script, e me manda o que sair no console... local positions = { [1] = {x=164,y=57,z=7}, [2] = {x=176,y=39,z=7}, [3] = {x=169,y=40,z=7}, [4] = {x=156,y=57,z=7}, [5] = {x=139,y=41,z=7}, [6] = {x=173,y=57,z=7}, [7] = {x=161,y=32,z=7}, [8] = {x=138,y=60,z=7}, [9] = {x=179,y=59,z=7}, [10] = {x=132,y=23,z=7}, [11] = {x=173,y=33,z=7}, [12] = {x=178,y=27,z=7}, [13] = {x=181,y=22,z=7}, [14] = {x=197,y=39,z=7}, [15] = {x=208,y=40,z=7}, [16] = {x=208,y=50,z=7}, [17] = {x=204,y=62,z=7}, [18] = {x=194,y=57,z=7}, [19] = {x=178,y=67,z=7}, [20] = {x=104,y=61,z=7}, [21] = {x
  20. <item fromid="179" toid="180" article="a" name="muralha wall" /> <item id="181" article="a" name="muralha pillar" /> <item id="12468" article="a" name="[Donate] BaiakME Doll"> <attribute key="description" value="Use o Item Para Ganhar o [DONATE] BaiakME Outfit." /> <attribute key="weight" value="50" /> </item>
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo