Ir para conteúdo
Banner com Efeitos

Storm

Héroi
  • Registro em

  • Última visita

Tudo que Storm postou

  1. @Emanueldk function onStepIn(cid, item, position, fromPosition) for i=1, table.maxn(trainers) do local trainer = trainers local position1 = {x=trainer.x,y=trainer.y,z=trainer.z,stackpos=255} local thing = getThingFromPos(position1) if (thing.itemid == 0) then doTeleportThing(cid, position1) doSendMagicEffect(position, 10) return true end end doPlayerSendCancel(cid, "A Sala De Treiner Ja Esta Cheia.") doTeleportThing(cid, fromPosition, false) doSendMagicEffect(fromPosition, 2) return true end
  2. Este tópico foi movido para a área correta. Esta é uma mensagem automática! Pedimos que leia as regras do fórum!
  3. @ADM Mayk on BaiakME Você está errando na configuração, é apenas 17 e não 17:35
  4. Storm postou uma resposta no tópico em Suporte Tibia OTServer
    Aqui no TibiaKing mensagens como UP e BUMP são proibidas, utilize o botão subir este tópico. Esta é uma mensagem automática! Pedimos que leia as regras do fórum!
  5. @ADM Mayk on BaiakME Testei em meu próprio servidor e ta funcional : GlobalEvents XML <globalevent name="Event_Chest1" time="18:00" event="script" value="Event.lua"/> <globalevent name="Event_Chest2" time="16:00" event="script" value="Event.lua"/> <globalevent name="Event_Chest3" time="14:00" event="script" value="Event.lua"/> Script local itemID = 1740 -- ID do BAU local bau_sto = 532236 local h = { Segunda = "18", Quarta = "14", Sexta = "16" } local pos = { [1] = {x = 92, y = 127, z = 7}, [2] = {x = 93, y = 126, z = 7}, [3] = {x = 95, y = 126, z = 7}, [4] = {x = 96, y = 127, z = 7}, [5] = {x = 96, y = 126, z = 7}, [6] = {x = 98, y = 126, z = 7}, [7] = {x = 99, y = 127, z = 7}, [8] = {x = 92, y = 125, z = 7}, [9] = {x = 94, y = 124, z = 7}, [10] = {x = 92, y = 123, z = 7} } local function doExecuteEvent() doCreateItem(itemID, 1, pos[math.random(1, #pos)]) doCreateItem(itemID, 1, pos[math.random(1, #pos)]) return true end function onTime(interval) if os.date("%A") == "Monday" and os.date("%H") == h.Segunda then doExecuteEvent() doBroadcastMessage("Há 2 tesouro perdido em BaiakME City", 19) return true elseif os.date("%A") == "Wednesday" and os.date("%H") == h.Quarta then doExecuteEvent() doBroadcastMessage("Há 2 tesouro perdido em BaiakME City", 19) return true elseif os.date("%A") == "Friday" and os.date("%H") == h.Sexta then doExecuteEvent() doBroadcastMessage("Há 2 tesouro perdido em BaiakME City", 19) return true end return true end Actions XML <action itemid="1740" event="script" value="event.lua"/> Script local t = { [1] = {50, 2160, 100}, -- [Numero em sequencia] = {CHANCE, ITEM ID, COUNT} [2] = {30, 2325, 1}, [3] = {20, 2678, 1}, [4] = {100, 2956, 5} -- No ultimo da tabela, a chance sempre deverá ser 100 ou terá a chance de o player não ganhar NADA } local storage = 346366 local bau_sto = 532236 function onUse(cid, item, fromPosition, itemEx, toPosition) for a, b in pairs(t) do if math.random(1, 100) <= b[1] and getCreatureStorage(cid, storage) == -1 then doCreatureSetStorage(cid, storage, 1) doPlayerAddItem(cid, b[2], b[3]) end end doRemoveItem(item.uid, 1) if getStorage(bau_sto) == -1 then doBroadcastMessage("O Player ".. getCreatureName(cid) .." Achou um BAU e ainda resta UM BAU", 27) addEvent(doSetStorage, 1000, bau_sto, 1) end if getStorage(bau_sto) == 1 then doBroadcastMessage("O Player ".. getCreatureName(cid) .." Achou o ULTIMO BAU E O EVENTO SE ENCERROU", 27) doSetStorage(bau_sto, -1) end doCreatureSetStorage(cid, storage, -1) return true end
  6. @ADM Mayk on BaiakME <globalevent name="Event_Chest1" time="18:00:00" event="script" value="Event_Chestt.lua"/> <globalevent name="Event_Chest2" time="16:00:00" event="script" value="Event_Chestt.lua"/> <globalevent name="Event_Chest3" time="14:00:00" event="script" value="Event_Chestt.lua"/> Na script do baú, procura doCleanTile(toPosition) e muda para doRemoveItem(item.uid, 1)
  7. @ADM Mayk on BaiakME O Báu é um item que fica na backpack?
  8. Este tópico foi movido para a área correta. Esta é uma mensagem automática! Pedimos que leia as regras do fórum! @Jovim Baixa o arquivo bless.lua
  9. @ADM Mayk on BaiakME Remova o Ç das palavras "Terça" e substitua por C
  10. @ADM Mayk on BaiakME Exatamente assim
  11. @ADM Mayk on BaiakME Muda local itemID == 2555 -- ID do BAU Para local itemID = 2555 -- ID do BAU
  12. @ADM Mayk on BaiakME GlobalEvents XML <globalevent name="Event_Chest" time="18:00:00" event="script" value="Event_Chestt.lua"/> <globalevent name="Event_Chest" time="16:00:00" event="script" value="Event_Chestt.lua"/> <globalevent name="Event_Chest" time="14:00:00" event="script" value="Event_Chestt.lua"/> Script local itemID = 2555 -- ID do BAU local h = { Segunda = "18", Quarta = "14", Sexta = "16" } local pos = { [1] = {x = 1, y = 1, z = 1}, [2] = {x = 1, y = 1, z = 1}, [3] = {x = 1, y = 1, z = 1}, [4] = {x = 1, y = 1, z = 1}, [5] = {x = 1, y = 1, z = 1}, [6] = {x = 1, y = 1, z = 1}, [7] = {x = 1, y = 1, z = 1}, [8] = {x = 1, y = 1, z = 1}, [9] = {x = 1, y = 1, z = 1}, [10] = {x = 1, y = 1, z = 1} } local function doExecuteEvent() local bau1 = math.random(1, #pos) local bau2 = math.random(1, #pos) doCreateItem(itemID, bau1) doCreateItem(itemID, bau2) return true end function onTimer() if os.date("%A") == "Monday" and os.date("%H") == h.Segunda then doExecuteEvent() doBroadcastMessage("Há 2 tesouro perdido em BaiakME City", 19) return true elseif os.date("%A") == "Wednesday" and os.date("%H") == h.Quarta then doExecuteEvent() doBroadcastMessage("Há 2 tesouro perdido em BaiakME City", 19) return true elseif os.date("%A") == "Friday" and os.date("%H") == h.Sexta then doExecuteEvent() doBroadcastMessage("Há 2 tesouro perdido em BaiakME City", 19) return true end return true end Actions XML <action itemid="BAU_ID" event="script" value="Bau_event.lua"/> Script local t = { [1] = {50, 2160, 100}, -- [Numero em sequencia] = {CHANCE, ITEM ID, COUNT} [2] = {30, 2325, 1}, [3] = {20, 2678, 1}, [4] = {10, 2956, 5} } local storage = 346366 function onUse(cid, item, fromPosition, itemEx, toPosition) for a, b in pairs(t) do if math.random(1, 100) <= b[1] and getCreatureStorage(cid, storage) == -1 then doCreatureSetStorage(cid, storage, 1) doPlayerAddItem(cid, b[2], b[3]) end end doCleanTile(toPosition) doBroadcastMessage("O Player ".. getCreatureName(cid) .." Achou um BAU!!", 27) doCreatureSetStorage(cid, storage, -1) end
  13. @Zoakly Tenta assim : local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat1, COMBAT_PARAM_EFFECT, 30) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -9.2, 1, -10.2, 1) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat2, COMBAT_PARAM_EFFECT, 30) setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -11.2, 1, -12.2, 1) local combat3 = createCombatObject() setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat3, COMBAT_PARAM_EFFECT, 30) setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -8.2, 1, -9.2, 1) local arr1 = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, } local area1 = createCombatArea(arr1) local area2 = createCombatArea(arr2) local area3 = createCombatArea(arr3) setCombatArea(combat1, area1) setCombatArea(combat2, area2) setCombatArea(combat3, area3) local function onCastSpell1(parameters) if isCreature(parameters.cid) then doCombat(parameters.cid, combat1, parameters.var) end end local function onCastSpell2(parameters) if isCreature(parameters.cid) then doCombat(parameters.cid, combat2, parameters.var) end end local function onCastSpell3(parameters) if isCreature(parameters.cid) then doCombat(parameters.cid, combat3, parameters.var) end end function onCastSpell(cid, var) local parameters = {cid = cid, var = var} addEvent(onCastSpell1, 100, parameters) addEvent(onCastSpell2, 200, parameters) addEvent(onCastSpell3, 300, parameters) return true end
  14. Storm postou uma resposta no tópico em Suporte Tibia OTServer
    Este tópico foi movido para a área correta. Esta é uma mensagem automática! Pedimos que leia as regras do fórum!
  15. Storm postou uma resposta no tópico em Sprites
    Parabéns, seu tópico de conteúdo foi aprovado! Muito obrigado pela sua contribuição, nós do Tibia King agradecemos. Seu conteúdo com certeza ajudará à muitos outros, você recebeu +1 REP.
  16. Storm postou uma resposta no tópico em Suporte Tibia OTServer
    @henriquepestana881f Posta o login.lua para que alguem possa te ajudar
  17. @mullino <movevent type="Equip" itemid="12721" event="script" value="reflec.lua">
  18. @mullino local block = {12721, 12722} -- Itens bloqueados function onEquip(cid, item, slot) if slot == CONST_SLOT_RIGHT or slot == CONST_SLOT_LEFT then if isInArray(block, item.itemid) then return false end end return true end
  19. @Zoakly Poste a script da spell
  20. Parabéns, seu tópico de conteúdo foi aprovado! Muito obrigado pela sua contribuição, nós do Tibia King agradecemos. Seu conteúdo com certeza ajudará à muitos outros, você recebeu +1 REP.
  21. @Navegante local skills = { [0] = {"FIST UP", TEXTCOLOR_LIGHTBLUE, 21}, [1] = {"CLUB UP", TEXTCOLOR_LIGHTBLUE, 21}, -- [SKILL_ID] = {"ANIMATED TEXT", TYPE do animated, effect no player} [2] = {"SWORD UP", TEXTCOLOR_LIGHTBLUE, 21}, [3] = {"AXE UP", TEXTCOLOR_LIGHTBLUE, 21}, [4] = {"DISTANCE UP", TEXTCOLOR_LIGHTBLUE, 21}, [5] = {"SHIELD UP", TEXTCOLOR_LIGHTBLUE, 21}, [6] = {"FISHING UP", TEXTCOLOR_LIGHTBLUE, 21}, [7] = {"ML UP", TEXTCOLOR_LIGHTBLUE, 21}, [8] = {"LEVEL UP", TEXTCOLOR_LIGHTBLUE, 21}, } local config = { heal = true, save = true, effect = true } function onAdvance(player, skill, oldLevel, newLevel) if newLevel <= oldLevel then return true end if config.effect then local up = skills[skill] if up then player:getPosition():sendMagicEffect(up[3]) doSendAnimatedText(player:getPosition(), up[1], up[2]) end end if config.heal and skill == 8 then player:addHealth(player:getMaxHealth()) end if config.save then player:save() end return true end
  22. Parabéns, seu tópico de conteúdo foi aprovado! Muito obrigado pela sua contribuição, nós do Tibia King agradecemos. Seu conteúdo com certeza ajudará à muitos outros, você recebeu +1 REP.
  23. @Navegante local skills = { [0] = {"FIST UP", TEXTCOLOR_LIGHTBLUE, 21}, [1] = {"CLUB UP", TEXTCOLOR_LIGHTBLUE, 21}, -- [SKILL_ID] = {"ANIMATED TEXT", TYPE do animated, effect no player} [2] = {"SWORD UP", TEXTCOLOR_LIGHTBLUE, 21}, [3] = {"AXE UP", TEXTCOLOR_LIGHTBLUE, 21}, [4] = {"DISTANCE UP", TEXTCOLOR_LIGHTBLUE, 21}, [5] = {"SHIELD UP", TEXTCOLOR_LIGHTBLUE, 21}, [6] = {"FISHING UP", TEXTCOLOR_LIGHTBLUE, 21}, [7] = {"ML UP", TEXTCOLOR_LIGHTBLUE, 21}, [8] = {"LEVEL UP", TEXTCOLOR_LIGHTBLUE, 21}, } local config = { heal = true, save = true, effect = true } function onAdvance(player, skill, oldLevel, newLevel) if newLevel <= oldLevel then return true end if config.effect then local up = skills[skill] if up then player:getPosition():sendMagicEffect(up[3]) game:sendAnimatedText(player:getPosition(), up[1], up[2]) end end if config.heal then player:addHealth(player:getMaxHealth()) end if config.save then player:save() end return true end
  24. Este tópico foi movido para a área correta. Esta é uma mensagem automática! Pedimos que leia as regras do fórum!
  25. @ADM Mayk on BaiakME local config = { life_ative = 50000, life_add = 300000, seconds_ative = 5, gStorage = 90702, } local function Uheal(cid) doCreatureAddHealth(cid, config.life_add) doCreatureSay(cid, "Gaz'haragoth HEALS himself!", TALKTYPE_MONSTER_SAY) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_RED) doSetStorage(config.gStorage, 0) end function onStatsChange(cid, attacker, type, combat, value) if attacker and type == STATSCHANGE_HEALTHLOSS then if getCreatureHealth(cid) < config.life_ative and getStorage(config.gStorage) < 1 then doCreatureSay(cid, "Gaz'haragoth beginns to draw on the nightmares to HEAL himself!", TALKTYPE_MONSTER_SAY) addEvent(Uheal, 1000 * config.seconds_ative, cid) doSetStorage(config.gStorage, 1) end end return true end -- <movevent event="StepIn" itemid="22455" script="teleport_gaz.lua"/> function onStepIn(cid, item, position, fromPosition) local player = cid if player == nil then return false end local monster = getCreatureByName("Gaz'Haragoth") local monster_pos = getCreaturePosition(monster) if monster then doTeleportThing(cid, monster_pos) else doTeleportThing(cid, fromPosition) end return true end

Informação Importante

Confirmação de Termo