Ir para conteúdo
  • Cadastre-se

Alienbear

Membro
  • Total de itens

    268
  • Registro em

  • Última visita

  • Dias Ganhos

    4

Histórico de Curtidas

  1. Curtir
    Alienbear recebeu reputação de Zazeros em (Resolvido)Script Action Boss   
    Olá meu lindo amigo tudo bem?
    Vamos resolver
     
    Use esse código:
    local config = { bossName = "Maxxenius", bossName2 = "Glooth-Generator", bossName3 = "Glooth-Generator", bossName4 = "Glooth-Generator", summonName = "Rift Invader", bossPos = Position{x = 31983, y = 31982, z = 15}, horror = Position{x = 31982, y = 31984, z = 15}, phobia = Position{x = 31989, y = 31984, z = 15}, fear = Position{x = 31984, y = 31987, z = 15}, centerRoom = Position{x = 31984, y = 31985, z = 15}, -- Center Room exitPosition = Position{x = 32001, y = 31984, z = 15}, -- Exit Position newPos = Position{x = 31984, y = 31990, z = 15}, -- Player Position on room playerPositions = { Position{x = 32003, y = 31980, z = 15}, Position{x = 32003, y = 31981, z = 15}, Position{x = 32003, y = 31982, z = 15}, Position{x = 32003, y = 31983, z = 15}, Position{x = 32003, y = 31984, z = 15} }, range = 30, time = 30, -- time in minutes to remove the player } local function clearFerumbrasRoom() local spectators = Game.getSpectators(config.bossPos, false, false, 10, 10, 10, 10) for i = 2, #spectators do local spectator = spectators[i] if spectator:isPlayer() then spectator:teleportTo(config.exitPosition) spectator:getPosition():sendMagicEffect(CONST_ME_TELEPORT) spectator:say('Time out! You were teleported out by strange forces.', TALKTYPE_MONSTER_SAY) elseif spectator:isMonster() then spectator:remove() end end end local ferumbrasAscendantLever = Action() function ferumbrasAscendantLever.onUse(player, item, fromPosition, target, toPosition, isHotkey) if item.itemid == 9825 then if player:getPosition() ~= Position{x = 32003, y = 31980, z = 15} then return true end for x = 32003, 32003 do for y = 31980, 31984 do local playerTile = Tile(Position(x, y, 15)):getTopCreature() if playerTile and playerTile:isPlayer() then if playerTile:getStorageValue(421516177) > os.time() then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You or a member in your team have to wait 20 hours to face Boss again!") item:transform(9826) return true end end end end local specs, spec = Game.getSpectators(config.centerRoom, false, false, 15, 15, 15, 15) for i = 1, #specs do spec = specs[i] if spec:isPlayer() then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "There's someone fighting with Boss.") return true end end local spectators = Game.getSpectators(config.bossPos, false, false, 15, 15, 15, 15) for i = 1, #spectators do local spectator = spectators[i] if spectator:isMonster() then spectator:remove() end end for x = 32003, 32003 do for y = 31980, 31984 do local playerTile = Tile(Position(x, y, 15)):getTopCreature() if playerTile and playerTile:isPlayer() then playerTile:getPosition():sendMagicEffect(CONST_ME_POFF) playerTile:teleportTo(config.newPos) playerTile:getPosition():sendMagicEffect(CONST_ME_TELEPORT) playerTile:setStorageValue(421516177, os.time() + 20 * 60 * 60) -- 14 days player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have 30 minutes to kill and loot this boss. Otherwise you will lose that chance and will be kicked out.") addEvent(clearFerumbrasRoom, 60 * config.time * 1000, player:getId(), config.centerRoom, config.range, config.range, config.exitPosition) item:transform(9826) end end end Game.createMonster(config.bossName, config.bossPos, true, true) Game.createMonster(config.bossName2, config.horror, true, true) Game.createMonster(config.bossName3, config.phobia, true, true) Game.createMonster(config.bossName4, config.fear, true, true) elseif item.itemid == 9826 then item:transform(9825) return true end end ferumbrasAscendantLever:aid(30014) ferumbrasAscendantLever:register()  
    Motivo do erro: Quando você usa um for neste caso deste script ele vai executar tudo que está dentro do for repetindo a quantidade de players,
    se for 1 player será 1 repetição, 2 players 2 repetições, 3 players 3 repetições e assim por diante.
    agora removi de dentro do for e os monstros nascerão apenas 1 de cada como está no arquivo.
  2. Gostei
    Alienbear recebeu reputação de Kralifezik1 em otbr global 12.6   
    Meu amigo, o servidor mais otimizado é esse aqui:
    https://github.com/SaiyansKing/optimized_forgottenserver
    Construa tudo em cima dele!!!
    Outra coisa, foca em otimização e bug fix e por ultimo em "ADQUIRIR FEATURES(COISAS NOVAS)".
     
    Se te ajudei deixa like/rep+
  3. Obrigado
    Alienbear recebeu reputação de Kralifezik1 em otbr global 12.6   
    Sim amigo, é linux.
     
  4. Gostei
    Alienbear recebeu reputação de Kenshiin em sistema de patente/titulo   
    Tem sim, você vai pegar o metodo que é dado esse "elo" ao jogador.
    Que no seu script é por storage.
    Ai você vai criar um script pro tipo de "atributo" que você quer fornecer.
     
    Ah quero que ganhe 1000 de vida e 500 de mana se for elo F
    if getPlayerStorageValue(cid, fragsStorage) == 5 then ai você coloca tudo que precisa acontecer, fazendo essas verificações de storage.
     
    Pra adicionar vida/mana eu recomendo vc usar onLogin ou onAdvanced.
     
    Se ajudei da like/rep+ ?
     
     
  5. Gostei
    Alienbear recebeu reputação de Kenshiin em [TFS 1.3] Criar NPC   
    Exatamente, cada acesso 1 stg. 
    Se ajudei deixa um like/rep
  6. Gostei
    Alienbear recebeu reputação de Kenshiin em (Resolvido)Script de anuncio para invasão de boss específico   
    Bom dia amigo, olha q interessante.
    O script q você "fez" apenas manda mensagem, e você está declarando algumas funções "msg e msg2" que não são nem chamadas no script.
     
    if getPlayerAccess(cid) é pra verificar o acesso de cargo.
     
    Pesquise sobre como usar addEvent, aqui no forum ensina vou mandar o tutorial:
     
    E também veja esse script que foi criado recentemente para usar um item e sumonar um monstro:
     
    Estude isso que te mandei e tente criar seu próprio script.
    Continue usand function onSay e os broadcast também o resto você estuda e analisa oq te mandei.
     
    Aprender é mais fácil do que pedir ajuda você vai ver ?
     
    Se te ajudei deixe like/rep+
    Caso precise de mais ajuda, pode deixar like/rep+ que irei ajudando sim.
  7. Gostei
    Alienbear recebeu reputação de Kenshiin em otbr global 12.6   
    Meu amigo, o servidor mais otimizado é esse aqui:
    https://github.com/SaiyansKing/optimized_forgottenserver
    Construa tudo em cima dele!!!
    Outra coisa, foca em otimização e bug fix e por ultimo em "ADQUIRIR FEATURES(COISAS NOVAS)".
     
    Se te ajudei deixa like/rep+
  8. Curtir
    Alienbear recebeu reputação de Pedrok22 em (Resolvido)alguem me ajuda com esse erro   
    Que bom então que conseguiu, vou pedir pra moderação finalizar.
    Se de alguma forma te ajudei, por favor deixe um like/rep
     
    @xWhiteCat
  9. Obrigado
    Alienbear recebeu reputação de IgorAlexa em (Resolvido)Script de anuncio para invasão de boss específico   
    Bom dia amigo, olha q interessante.
    O script q você "fez" apenas manda mensagem, e você está declarando algumas funções "msg e msg2" que não são nem chamadas no script.
     
    if getPlayerAccess(cid) é pra verificar o acesso de cargo.
     
    Pesquise sobre como usar addEvent, aqui no forum ensina vou mandar o tutorial:
     
    E também veja esse script que foi criado recentemente para usar um item e sumonar um monstro:
     
    Estude isso que te mandei e tente criar seu próprio script.
    Continue usand function onSay e os broadcast também o resto você estuda e analisa oq te mandei.
     
    Aprender é mais fácil do que pedir ajuda você vai ver ?
     
    Se te ajudei deixe like/rep+
    Caso precise de mais ajuda, pode deixar like/rep+ que irei ajudando sim.
  10. Curtir
    Alienbear deu reputação a joaovitorbk9 em Sistema de Medalhões! Solicite aqui!   
    belezuras, me ve tudo que tenho direito! rsrs 
  11. Obrigado
    Alienbear recebeu reputação de Pedrok22 em (Resolvido)Wand Que Precisa de Skill Distance   
    local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, 5) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 37) setCombatFormula(combat, COMBAT_FORMULA_SKILL, -1.8, -2.1, -1.9, -2) function onUseWeapon(cid, var) return doCombat(cid, combat, var) end  
  12. Obrigado
    Alienbear recebeu reputação de Emooooo em ajuda rapidao !   
    Amigo,
    *Para receber ajuda no forum, crie titulos mais especificos, como Por exemplo:
    *Ajuda com script da anihi.
    *Pois só assim você terá uma chance de te ajudarem ok?
    *E sempre use o "CITAR" em seus trechos longos para não demorar o carregamento da pagina.

    Agora vamos ao Script:

     
      local room = {     -- room with demons         fromX = 1069,         fromY = 807,         fromZ = 8,         toX = 1075,         toY = 813,         toZ = 8         }         local monster_pos = {         [1] = {pos = {1074, 810, 8}, monster = "Demon"},         [2] = {pos = {1075, 810, 8}, monster = "Demon"},         [3] = {pos = {1072, 808, 8}, monster = "Demon"},         [4] = {pos = {1070, 808, 8}, monster = "Demon"},         [5] = {pos = {1073, 812, 8}, monster = "Demon"},         [6] = {pos = {1071, 812, 8}, monster = "Demon"}         }         local players_pos = {         {x = 1099, y =842, z = 7, stackpos = 253},         {x = 1098, y =842, z = 7, stackpos = 253}         }         local new_player_pos = {         {x = 1073, y = 810, z = 8},         {x = 1072, y = 810, z = 8}         }         local playersOnly = "no"         local questLevel = 8 function onUse(cid, item, fromPosition, itemEx, toPosition)         local all_ready, monsters, player, level = 0, 0, {}, 0         if item.itemid == 1945 then                 for i = 1, #players_pos do                         table.insert(player, 0)                 end                 for i = 1, #players_pos do                         player = getThingfromPos(players_pos)                         if player.itemid > 0 then                                 if string.lower(playersOnly) == "yes" then                                         if isPlayer(player.uid) == TRUE then                                                 all_ready = all_ready+1                                         else                                                 monsters = monsters+1                                         end                                 else                                         all_ready = all_ready+1                                 end                         end                 end                 if all_ready == #players_pos then                         for i = 1, #players_pos do                                 player = getThingfromPos(players_pos)                                 if isPlayer(player.uid) == TRUE then                                         if getPlayerLevel(player.uid) >= questLevel then                                                 level = level+1                                         end                                 else                                         level = level+1                                 end                         end                         if level == #players_pos then                                 if string.lower(playersOnly) == "yes" and monsters == 0 or string.lower(playersOnly) == "no" then                                         for _, area in pairs(monster_pos) do                                                         doSummonCreature(area.monster,{x=area.pos[1],y=area.pos[2],z=area.pos[3]})                                         end                                         for i = 1, #players_pos do                                                 doSendMagicEffect(players_pos, CONST_ME_POFF)                                                 doTeleportThing(player.uid, new_player_pos, FALSE)                                                 doSendMagicEffect(new_player_pos, CONST_ME_ENERGYAREA)                                                 doTransformItem(item.uid,1946)                                         end                                 else                                         doPlayerSendTextMessage(cid,19,"Only players can do this quest.")                                 end                         else                                 doPlayerSendTextMessage(cid,19,"All Players have to be level "..questLevel.." to do this quest.")                         end                 else                         doPlayerSendTextMessage(cid,19,"You need "..table.getn(players_pos).." players to do this quest.")                 end         elseif item.itemid == 1946 then                 local player_room = 0                 for x = room.fromX, room.toX do                         for y = room.fromY, room.toY do                                 for z = room.fromZ, room.toZ do                                         local pos = {x=x, y=y, z=z,stackpos = 253}                                         local thing = getThingfromPos(pos)                                         if thing.itemid > 0 then                                                 if isPlayer(thing.uid) == TRUE then                                                         player_room = player_room+1                                                 end                                         end                                 end                         end                 end                 if player_room >= 1 then                         doPlayerSendTextMessage(cid,19,"There is already a team in the quest room.")                           elseif player_room == 0 then                         for x = room.fromX, room.toX do                                 for y = room.fromY, room.toY do                                         for z = room.fromZ, room.toZ do                                                 local pos = {x=x, y=y, z=z,stackpos = 253}                                                 local thing = getThingfromPos(pos)                                                 if thing.itemid > 0 then                                                         doRemoveCreature(thing.uid)                                                 end                                         end                                 end                         end                         doTransformItem(item.uid,1945)                 end         end         return TRUE end Veja que nesta parte do script fiz a modificação:
            local players_pos = {         {x = 1099, y =842, z = 7, stackpos = 253},         {x = 1098, y =842, z = 7, stackpos = 253},         {x = 1097, y =842, z = 7, stackpos = 253},         {x = 1096, y =842, z = 7, stackpos = 253}         }         local new_player_pos = {         {x = 1073, y = 810, z = 8},         {x = 1072, y = 810, z = 8},         {x = 1071, y = 810, z = 8},         {x = 1070, y = 810, z = 8}         } Modifiquei para 
     
            local players_pos = {         {x = 1099, y =842, z = 7, stackpos = 253},         {x = 1098, y =842, z = 7, stackpos = 253}         }         local new_player_pos = {         {x = 1073, y = 810, z = 8},         {x = 1072, y = 810, z = 8}         } E assim vc pode ir adicionando ou removendo de acordo com este padrão ai.
    Não esquecendo claro de deixar as posições no seu mapa iguais as que estão no script.
  13. Obrigado
    Alienbear recebeu reputação de Emooooo em TILER que faz aparecer monstro   
    Acho que isso pode te ajudar.
     
    local config = { pos = {x=152, y=50, z=7}, -- Posição aonde sera criado o teleport topos = {x=1235, y=1197, z=7} -- Posição pra onde o teleport ira levar o player } function onStepIn(cid, item, position, fromPosition) if isPlayer(cid) then addEvent(respawnMonster, 10000, "Dwarf", pos) addEvent(respawnMonster, 20000, "Dwarf", pos) addEvent(respawnMonster, 30000, "Dwarf", pos) addEvent(respawnMonster, 40000, "Dwarf", pos) addEvent(respawnMonster, 50000, "Dwarf", pos) addEvent(doCreateTeleport, 60000, topos, pos) return true end end  
  14. Curtir
    Alienbear deu reputação a Tricoder em Exevo San Condition   
    Preview

     
    Script
    data/spells/spells.xml
    <instant name="Divine Condition" words="exevo san condition" lvl="200" mana="500" prem="1" selftarget="1" exhaustion="2100" needlearn="0" script="attack/thecondition.lua"> <vocation id="3"/> <vocation id="7" /> </instant> data/spells/scripts/attack/thecondition.lua
    local repeatAmount = 3 local deathFlamesArea = { createCombatArea({ {0, 1, 0}, {1, 2, 1}, {0, 1, 0} }), createCombatArea({ {0, 1, 1, 1, 0}, {1, 1, 0, 1, 1}, {1, 0, 2, 0, 1}, {1, 1, 0, 1, 1}, {0, 1, 1, 1, 0} }), createCombatArea({ {0, 0, 1, 1, 1, 0, 0}, {0, 1, 0, 0, 0, 1, 0}, {1, 0, 0, 0, 0, 0, 1}, {1, 0, 0, 2, 0, 0, 1}, {1, 0, 0, 0, 0, 0, 1}, {0, 1, 0, 0, 0, 1, 0}, {0, 0, 1, 1, 1, 0, 0} }) } local bigFlamesArea = createCombatArea({ {0, 0, 1, 1, 1, 1, 1, 0, 0}, {0, 1, 1, 0, 0, 0, 1, 1, 0}, {1, 1, 0, 0, 0, 0, 0, 1, 1}, {1, 0, 0, 0, 0, 0, 0, 0, 1}, {1, 0, 0, 0, 2, 0, 0, 0, 1}, {1, 0, 0, 0, 0, 0, 0, 0, 1}, {1, 1, 0, 0, 0, 0, 0, 1, 1}, {0, 1, 1, 0, 0, 0, 1, 1, 0}, {0, 0, 1, 1, 1, 1, 1, 0, 0} }) local deathFlames = {} for k, area in ipairs(deathFlamesArea) do deathFlames[k] = createCombatObject() setCombatParam(deathFlames[k], COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) setCombatParam(deathFlames[k], COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA) setCombatFormula(deathFlames[k], COMBAT_FORMULA_LEVELMAGIC, -6.593, -50, -8.929, -100) setCombatArea(deathFlames[k], area) end local bigFlames = createCombatObject() setCombatParam(bigFlames, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) setCombatParam(bigFlames, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYAREA) setCombatFormula(bigFlames, COMBAT_FORMULA_LEVELMAGIC, -6.766, -50, -8.241, -100) setCombatArea(bigFlames, bigFlamesArea) function onTargetTile(cid, pos) doSendDistanceShoot(getCreaturePosition(cid), pos, CONST_ANI_ETHEREALSPEAR) end setCombatCallback(bigFlames, CALLBACK_PARAM_TARGETTILE, "onTargetTile") local function castSpellDelay(p) if(isCreature(p[1]) == TRUE) then doCombat(unpack(p)) end end function onCastSpell(cid, var) for i = 0, repeatAmount - 1 do for k, combat in ipairs(deathFlames) do addEvent(castSpellDelay, (150 * k) + #deathFlames * 150 * i + 700 * i, {cid, combat, var}) end addEvent(castSpellDelay, (150 * #deathFlames) + #deathFlames * 150 * i + 700 * i, {cid, bigFlames, var}) end return LUA_NO_ERROR end Créditos: Rugged Mage
  15. Gostei
    Alienbear deu reputação a Dwarfer em Job System   
    Valeu  Espero que seja útil ao pessoal. 
  16. Obrigado
    Alienbear recebeu reputação de Dwarfer em Job System   
    Resolvido o problema, o mapa precisa ficar igual ao do TÓPICO, balcões elevados e itens com o AID 4420 como explicado. 

    Obrigado
  17. Curtir
    Alienbear deu reputação a Dwarfer em Job System   
    ACABOU A MOLEZA! Você que sempre fez os NPC's trabalharem dia e noite, disponíveis a qualquer momento mesmo que seja apenas para receber um "hi, buy rope, yes". A COISA MUDOU! Agora você vai ter que ralar. E olhe que os monstros estão com muito gold para gastar devido às mortes de aventureiros, despreparados de AOL ou de bençãos, que acabam por deixar dinheiro nas suas backpacks. VÁ TRABALHAR, SEU VAGAB..! 
     
    Depois dessa ladainha toda, estava eu testando algumas funções, umas coisitas aqui e ali e ao misturar tudo saiu isso aí meio que sem querer. Tem uns pontos que podem ser melhorados, mas como disse serviu apenas como uns testes para mim, mas resolvi compartilhar, mesmo sendo simplesinho. Acho que será útil para servidor com um pouquinho de RPG. Testado em TFS 0.4 e versão 8.60.
     
    O Job System é um sistema no qual o player atenderá pedidos dos monstros. Cada pedido correto, o player ganha 1 job point que pode ser utilizado para comprar itens no npc ou como você queira fazer, em quests, acessos, seja lá o que for. O funcionamento é demonstrado no vídeo abaixo:
     
     
     
    Segue o código do sistema (MOD) e do NPC.
     
    jobsystem.xml
     
     
     
    CONFIGURAÇÃO:
     
    Desde que configure corretamente o mapa, não tem praticamente nada para modificar. 
    monsters = { [1] = {"Amazon", "Dwarf", "Elf Scout"}, [2] = {"Barbarian Bloodwalker", "Dwarf Guard", "Warlock"}, [3] = {"Vampire Bride", "Dwarf Geomancer", "Infernalist"} }  
    times = { deal = 30, lever = 2 } Aqui deal é o tempo em segundos entre cada pedido. Lever é o tempo em minutos para poder usar a alavanca novamente. Aconselho deixá-los nesses valores, já testei e funcionou certinho assim.
     
    A configuração ocorre praticamente no mapa:
     
    1 - Crie uma "loja" do mesmo tamanho e com a mesma configuração que as mostradas no vídeo e na imagem abaixo. Apenas com a posição do meio livre.
     

     
    Não importa a "orientação" da loja. A única exigência é que a alavanca sempre esteja do lado do braço direito do char, conforme a imagem.
     
    MUITO IMPORTANTE: NÃO USE ITENS STACKABLES NA LOJA
     

     
    2. Definindo o rank da loja:
    ALAVANCA DE ACTION ID:
     
    4421 - Rank Apprentice
    4422 - Rank Merchant
    4423 - Rank Rashid
     
    3. Todos os itens que não devem ser arrastados (itens da loja ou de decoração que não devam ser arrastados como o royal axe que mostrei lá no vídeo) devem receber o actionid 4420.
     
    4. Os pisos onde os monstros serão criados devem ter actionid 4420. Além disso, ser área no-pvp e no logout (apenas por precaução).
     
    5. Toda a área restante deve ser Protection Zone (PZ). Além disso, os locais do centro da loja onde os players ficarão devem ser No Logout Area.
     
     
    Dwarfer.xml
     
     
     
    job.lua
     
     
     
    Configuração do NPC:
     
    promote = {tomerchant = 50, torashid = 100}, tomerchant = 50 -> São necessários 50 pontos no rank Apprentice para avançar
    torashid = 100 -> São necessários 100 pontos no rank Merchant para avançar
     
    entice_rank = {-- Apprentice [2154] = {price = 1}, [2158] = {price = 3}, [2155] = {price = 7}, [2156] = {price = 100} }, merchant_rank = { -- Merchant [1998] = {price = 15}, [5950] = {price = 25}, [1987] = {price = 70}, [2402] = {price = 100} }, rashid_rank = { -- Rashid [9993] = {price = 15}, [9992] = {price = 25}, [9992] = {price = 70}, [7399] = {price = 100}} }  
    [id_do_item] = {price = preço do item}  que aparecerá na lista do NPC. 
     
    É isso aí, seus vagal's  
  18. Gostei
    Alienbear deu reputação a Dwarfer em Job System   
    Acho que você tentou usar com menos de 3 monstros para algum rank, não foi? Altere a linha:
    local name = monsters[number][math.random(1, #monsters)] Para:
    local name = monsters[number][math.random(1, #monsters[number])]  
  19. Obrigado
    Alienbear deu reputação a Fir3element em [8.60] The Forgotten Server 0.4 (sqlite e mysql)   
    geralmente a source deve rodar bem em qualquer SO
    talvez seja as dlls ou o devcpp
     
    cara eu utilizado o msvc10 ultimate com os updates instalados, e esse pack: https://github.com/Fir3element/binaries/raw/master/vc10_pack.rar
     
    dei uma olhada aqui e ta meio foda de instalar o sp1 do visual studio, vou ver oq consigo no visual studio atual.. mas oq recomendo é linux mesmo
     
     
  20. Obrigado
    Alienbear deu reputação a Sekk em [8.60] The Forgotten Server 0.4 (sqlite e mysql)   
    No video do topico que eu tinha feito de como compilar no msvc10 eu postei os downloads, mas os links quebraram, então esses são os novos links, depois eu atualizo la:
     
    https://mega.nz/#F!IxBFwAYC!JAtG8IKNwkw_xKl2lPjIYg
  21. Curtir
    Alienbear recebeu reputação de MarcosWalker em (Resolvido)[Error] Doors   
    keys = {2086, 2087, 2088, 2089, 2090, 2091, 2092, 10032, 10091} closingDoors = {1224, 1226, 1228, 1230, 1242, 1244, 1246, 1248, 1256, 1258, 1260, 1262, 3541, 3543, 3550, 3552, 5104, 5106, 5113, 5115, 5122, 5124, 5131, 5133, 5289, 5291, 5293, 5295, 6203, 6205, 6207, 6209, 6260, 6262, 6264, 6266, 6897, 6899, 6906, 6908, 7039, 7041, 7048, 7050, 8552, 8554, 8556, 8558, 9176, 9178, 9180, 9182, 9278, 9280, 9282, 9284, 10279, 10281, 10283, 10285, 10474, 10476, 10483, 10485, 10780, 10782, 10789, 10791} verticalOpenDoors = {1211, 1220, 1224, 1228, 1233, 1238, 1242, 1246, 1251, 1256, 1260, 1540, 3546, 3548, 3550, 3552, 4915, 5083, 5109, 5111, 5113, 5115, 5127, 5129, 5131, 5133, 5142, 5145, 5283, 5285, 5289, 5293, 5516, 5737, 5749, 6194, 6199, 6203, 6207, 6251, 6256, 6260, 6264, 6798, 6802, 6902, 6904, 6906, 6908, 7044, 7046, 7048, 7050, 7055, 8543, 8548, 8552, 8556, 9167, 9172, 9269, 9274, 9278, 9282, 10270, 10275, 10279, 10283, 10479, 10481, 10483, 10485, 10789, 10791} horizontalOpenDoors = {1214, 1222, 1226, 1230, 1236, 1240, 1244, 1248, 1254, 1258, 1262, 1542, 3537, 3539, 3541, 3543, 4918, 5085, 5100, 5102, 5104, 5106, 5118, 5120, 5122, 5124, 5136, 5139, 5280, 5287, 5291, 5295, 5518, 5734, 5746, 6197, 6201, 6205, 6209, 6254, 6258, 6262, 6266, 6796, 6800, 6893, 6895, 6897, 6899, 7035, 7037, 7039, 7041, 7057, 8546, 8550, 8554, 8558, 9170, 9174, 9272, 9276, 9280, 9284, 10273, 10277, 10281, 10285, 10470, 10472, 10474, 10476, 10780, 10782} doors = {[1209] = 1211, [1210] = 1211, [1212] = 1214, [1213] = 1214, [1219] = 1220, [1221] = 1222, [1231] = 1233, [1232] = 1233, [1234] = 1236, [1235] = 1236, [1237] = 1238, [1239] = 1240, [1249] = 1251, [1250] = 1251, [1252] = 1254, [1253] = 1254, [1539] = 1540, [1541] = 1542, [3535] = 3537, [3536] = 3537, [3538] = 3539, [3544] = 3546, [3545] = 3546, [3547] = 3548, [4913] = 4915, [4914] = 4915, [4916] = 4918, [4917] = 4918, [5082] = 5083, [5084] = 5085, [5098] = 5100, [5099] = 5100, [5101] = 5102, [5107] = 5109, [5108] = 5109, [5110] = 5111, [5116] = 5118, [5117] = 5118, [5119] = 5120, [5125] = 5127, [5126] = 5127, [5128] = 5129, [5134] = 5136, [5135] = 5136, [5137] = 5139, [5138] = 5139, [5140] = 5142, [5141] = 5142, [5143] = 5145, [5144] = 5145, [5278] = 5280, [5279] = 5280, [5281] = 5283, [5282] = 5283, [5284] = 5285, [5286] = 5287, [5515] = 5516, [5517] = 5518, [5732] = 5734, [5733] = 5734, [5735] = 5737, [5736] = 5737, [6192] = 6194, [6193] = 6194, [6195] = 6197, [6196] = 6197, [6198] = 6199, [6200] = 6201, [6249] = 6251, [6250] = 6251, [6252] = 6254, [6253] = 6254, [6255] = 6256, [6257] = 6258, [6795] = 6796, [6797] = 6798, [6799] = 6800, [6801] = 6802, [6891] = 6893, [6892] = 6893, [6894] = 6895, [6900] = 6902, [6901] = 6902, [6903] = 6904, [7033] = 7035, [7034] = 7035, [7036] = 7037, [7042] = 7044, [7043] = 7044, [7045] = 7046, [7054] = 7055, [7056] = 7057, [8541] = 8543, [8542] = 8543, [8544] = 8546, [8545] = 8546, [8547] = 8548, [8549] = 8550, [9165] = 9167, [9166] = 9167, [9168] = 9170, [9169] = 9170, [9171] = 9172, [9173] = 9174, [9267] = 9269, [9268] = 9269, [9270] = 9272, [9271] = 9272, [9273] = 9274, [9275] = 9276, [10276] = 10277, [10274] = 10275, [10268] = 10270, [10269] = 10270, [10271] = 10273, [10272] = 10273, [10471] = 10472, [10480] = 10481, [10477] = 10479, [10478] = 10479, [10468] = 10470, [10469] = 10470, [10774] = 10776, [10775] = 10776, [10779] = 10780, [10781] = 10782, [10783] = 10785, [10784] = 10785, [10788] = 10789, [10790] = 10791} specialDoors = {1223, 1225, 1241, 1243, 1255, 1257, 3542, 3551, 5105, 5114, 5123, 5132, 5288, 5290, 5745, 5748, 6202, 6204, 6259, 6261, 6898, 6907, 7040, 7049, 8551, 8553, 9175, 9177, 9277, 9279, 10278, 10280, 10475, 10484, 10781, 10790} tenta adicionar isso em 000-constant
  22. Gostei
    Alienbear recebeu reputação de gacjogos em (Resolvido)[Error] Doors   
    keys = {2086, 2087, 2088, 2089, 2090, 2091, 2092, 10032, 10091} closingDoors = {1224, 1226, 1228, 1230, 1242, 1244, 1246, 1248, 1256, 1258, 1260, 1262, 3541, 3543, 3550, 3552, 5104, 5106, 5113, 5115, 5122, 5124, 5131, 5133, 5289, 5291, 5293, 5295, 6203, 6205, 6207, 6209, 6260, 6262, 6264, 6266, 6897, 6899, 6906, 6908, 7039, 7041, 7048, 7050, 8552, 8554, 8556, 8558, 9176, 9178, 9180, 9182, 9278, 9280, 9282, 9284, 10279, 10281, 10283, 10285, 10474, 10476, 10483, 10485, 10780, 10782, 10789, 10791} verticalOpenDoors = {1211, 1220, 1224, 1228, 1233, 1238, 1242, 1246, 1251, 1256, 1260, 1540, 3546, 3548, 3550, 3552, 4915, 5083, 5109, 5111, 5113, 5115, 5127, 5129, 5131, 5133, 5142, 5145, 5283, 5285, 5289, 5293, 5516, 5737, 5749, 6194, 6199, 6203, 6207, 6251, 6256, 6260, 6264, 6798, 6802, 6902, 6904, 6906, 6908, 7044, 7046, 7048, 7050, 7055, 8543, 8548, 8552, 8556, 9167, 9172, 9269, 9274, 9278, 9282, 10270, 10275, 10279, 10283, 10479, 10481, 10483, 10485, 10789, 10791} horizontalOpenDoors = {1214, 1222, 1226, 1230, 1236, 1240, 1244, 1248, 1254, 1258, 1262, 1542, 3537, 3539, 3541, 3543, 4918, 5085, 5100, 5102, 5104, 5106, 5118, 5120, 5122, 5124, 5136, 5139, 5280, 5287, 5291, 5295, 5518, 5734, 5746, 6197, 6201, 6205, 6209, 6254, 6258, 6262, 6266, 6796, 6800, 6893, 6895, 6897, 6899, 7035, 7037, 7039, 7041, 7057, 8546, 8550, 8554, 8558, 9170, 9174, 9272, 9276, 9280, 9284, 10273, 10277, 10281, 10285, 10470, 10472, 10474, 10476, 10780, 10782} doors = {[1209] = 1211, [1210] = 1211, [1212] = 1214, [1213] = 1214, [1219] = 1220, [1221] = 1222, [1231] = 1233, [1232] = 1233, [1234] = 1236, [1235] = 1236, [1237] = 1238, [1239] = 1240, [1249] = 1251, [1250] = 1251, [1252] = 1254, [1253] = 1254, [1539] = 1540, [1541] = 1542, [3535] = 3537, [3536] = 3537, [3538] = 3539, [3544] = 3546, [3545] = 3546, [3547] = 3548, [4913] = 4915, [4914] = 4915, [4916] = 4918, [4917] = 4918, [5082] = 5083, [5084] = 5085, [5098] = 5100, [5099] = 5100, [5101] = 5102, [5107] = 5109, [5108] = 5109, [5110] = 5111, [5116] = 5118, [5117] = 5118, [5119] = 5120, [5125] = 5127, [5126] = 5127, [5128] = 5129, [5134] = 5136, [5135] = 5136, [5137] = 5139, [5138] = 5139, [5140] = 5142, [5141] = 5142, [5143] = 5145, [5144] = 5145, [5278] = 5280, [5279] = 5280, [5281] = 5283, [5282] = 5283, [5284] = 5285, [5286] = 5287, [5515] = 5516, [5517] = 5518, [5732] = 5734, [5733] = 5734, [5735] = 5737, [5736] = 5737, [6192] = 6194, [6193] = 6194, [6195] = 6197, [6196] = 6197, [6198] = 6199, [6200] = 6201, [6249] = 6251, [6250] = 6251, [6252] = 6254, [6253] = 6254, [6255] = 6256, [6257] = 6258, [6795] = 6796, [6797] = 6798, [6799] = 6800, [6801] = 6802, [6891] = 6893, [6892] = 6893, [6894] = 6895, [6900] = 6902, [6901] = 6902, [6903] = 6904, [7033] = 7035, [7034] = 7035, [7036] = 7037, [7042] = 7044, [7043] = 7044, [7045] = 7046, [7054] = 7055, [7056] = 7057, [8541] = 8543, [8542] = 8543, [8544] = 8546, [8545] = 8546, [8547] = 8548, [8549] = 8550, [9165] = 9167, [9166] = 9167, [9168] = 9170, [9169] = 9170, [9171] = 9172, [9173] = 9174, [9267] = 9269, [9268] = 9269, [9270] = 9272, [9271] = 9272, [9273] = 9274, [9275] = 9276, [10276] = 10277, [10274] = 10275, [10268] = 10270, [10269] = 10270, [10271] = 10273, [10272] = 10273, [10471] = 10472, [10480] = 10481, [10477] = 10479, [10478] = 10479, [10468] = 10470, [10469] = 10470, [10774] = 10776, [10775] = 10776, [10779] = 10780, [10781] = 10782, [10783] = 10785, [10784] = 10785, [10788] = 10789, [10790] = 10791} specialDoors = {1223, 1225, 1241, 1243, 1255, 1257, 3542, 3551, 5105, 5114, 5123, 5132, 5288, 5290, 5745, 5748, 6202, 6204, 6259, 6261, 6898, 6907, 7040, 7049, 8551, 8553, 9175, 9177, 9277, 9279, 10278, 10280, 10475, 10484, 10781, 10790} tenta adicionar isso em 000-constant
  23. Gostei
    Alienbear recebeu reputação de gacjogos em (Resolvido)[Error] Doors   
    local function checkStackpos(item, position) position.stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE local thing = getThingFromPos(position) position.stackpos = STACKPOS_TOP_FIELD local field = getThingFromPos(position) return (item.uid == thing.uid or thing.itemid < 100 or field.itemid == 0) end function onUse(cid, item, fromPosition, itemEx, toPosition) if(getItemLevelDoor(item.itemid) > 0) then if(item.actionid == 189) then if(isPremium(cid) ~= TRUE) then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only the worthy may pass.") return TRUE end doTransformItem(item.uid, item.itemid + 1) doTeleportThing(cid, toPosition, TRUE) return TRUE end local gender = item.actionid - 186 if(isInArray({PLAYERSEX_FEMALE, PLAYERSEX_MALE, PLAYERSEX_GAMEMASTER}, gender) == TRUE) then local playerGender = getPlayerSex(cid) if(playerGender ~= gender) then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only the worthy may pass.") return TRUE end doTransformItem(item.uid, item.itemid + 1) doTeleportThing(cid, toPosition, TRUE) return TRUE end local skull = item.actionid - 180 if(skull >= 0 and skull < 6) then local playerSkull = getCreatureSkullType(cid) if(playerSkull ~= skull) then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only the worthy may pass.") return TRUE end doTransformItem(item.uid, item.itemid + 1) doTeleportThing(cid, toPosition, TRUE) return TRUE end local group = item.actionid - 150 if(group >= 0 and group < 30) then local playerGroup = getPlayerGroupId(cid) if(playerGroup < group) then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only the worthy may pass.") return TRUE end doTransformItem(item.uid, item.itemid + 1) doTeleportThing(cid, toPosition, TRUE) return TRUE end local vocation = item.actionid - 100 if(vocation >= 0 and vocation < 50) then local playerVocationInfo = getVocationInfo(getPlayerVocation(cid)) if(playerVocationInfo.id ~= vocation and playerVocationInfo.fromVocation ~= vocation) then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only the worthy may pass.") return TRUE end doTransformItem(item.uid, item.itemid + 1) doTeleportThing(cid, toPosition, TRUE) return TRUE end if(item.actionid == 190 or (item.actionid ~= 0 and getPlayerLevel(cid) >= (item.actionid - getItemLevelDoor(item.itemid)))) then doTransformItem(item.uid, item.itemid + 1) doTeleportThing(cid, toPosition, TRUE) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only the worthy may pass.") end return TRUE end if(isInArray(specialDoors, item.itemid) == TRUE) then if(item.actionid == 100 or (item.actionid ~= 0 and getPlayerStorageValue(cid, item.actionid) > 0)) then doTransformItem(item.uid, item.itemid + 1) doTeleportThing(cid, toPosition, TRUE) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "The door seems to be sealed against unwanted intruders.") end return TRUE end if(isInArray(keys, item.itemid) == TRUE) then if(itemEx.actionid > 0) then if(item.actionid == itemEx.actionid and doors[itemEx.itemid] ~= nil) then doTransformItem(itemEx.uid, doors[itemEx.itemid]) return TRUE end doPlayerSendCancel(cid, "The key does not match.") return TRUE end return FALSE end if(isInArray(horizontalOpenDoors, item.itemid) == TRUE and checkStackpos(item, fromPosition)) then local newPosition = toPosition newPosition.y = newPosition.y + 1 local doorPosition = fromPosition doorPosition.stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE local doorCreature = getThingfromPos(doorPosition) if(doorCreature.itemid ~= 0) then if(getTileInfo(doorPosition).protection and not getTileInfo(newPosition).protection and doorCreature.uid ~= cid) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE) else doTeleportThing(doorCreature.uid, newPosition, TRUE) if(isInArray(closingDoors, item.itemid) ~= TRUE) then doTransformItem(item.uid, item.itemid - 1) end end return TRUE end doTransformItem(item.uid, item.itemid - 1) return TRUE end if(isInArray(verticalOpenDoors, item.itemid) == TRUE and checkStackpos(item, fromPosition)) then local newPosition = toPosition newPosition.x = newPosition.x + 1 local doorPosition = fromPosition doorPosition.stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE local doorCreature = getThingfromPos(doorPosition) if(doorCreature.itemid ~= 0) then if(getTileInfo(doorPosition).protection and not getTileInfo(newPosition).protection and doorCreature.uid ~= cid) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE) else doTeleportThing(doorCreature.uid, newPosition, TRUE) if(isInArray(closingDoors, item.itemid) ~= TRUE) then doTransformItem(item.uid, item.itemid - 1) end end return TRUE end doTransformItem(item.uid, item.itemid - 1) return TRUE end if(doors[item.itemid] ~= nil and checkStackpos(item, fromPosition)) then if(item.actionid == 0) then doTransformItem(item.uid, doors[item.itemid]) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is locked.") end return TRUE end return FALSE end
  24. Gostei
    Alienbear recebeu reputação de leozynho123 em (Resolvido)[Error] Doors   
    keys = {2086, 2087, 2088, 2089, 2090, 2091, 2092, 10032, 10091} closingDoors = {1224, 1226, 1228, 1230, 1242, 1244, 1246, 1248, 1256, 1258, 1260, 1262, 3541, 3543, 3550, 3552, 5104, 5106, 5113, 5115, 5122, 5124, 5131, 5133, 5289, 5291, 5293, 5295, 6203, 6205, 6207, 6209, 6260, 6262, 6264, 6266, 6897, 6899, 6906, 6908, 7039, 7041, 7048, 7050, 8552, 8554, 8556, 8558, 9176, 9178, 9180, 9182, 9278, 9280, 9282, 9284, 10279, 10281, 10283, 10285, 10474, 10476, 10483, 10485, 10780, 10782, 10789, 10791} verticalOpenDoors = {1211, 1220, 1224, 1228, 1233, 1238, 1242, 1246, 1251, 1256, 1260, 1540, 3546, 3548, 3550, 3552, 4915, 5083, 5109, 5111, 5113, 5115, 5127, 5129, 5131, 5133, 5142, 5145, 5283, 5285, 5289, 5293, 5516, 5737, 5749, 6194, 6199, 6203, 6207, 6251, 6256, 6260, 6264, 6798, 6802, 6902, 6904, 6906, 6908, 7044, 7046, 7048, 7050, 7055, 8543, 8548, 8552, 8556, 9167, 9172, 9269, 9274, 9278, 9282, 10270, 10275, 10279, 10283, 10479, 10481, 10483, 10485, 10789, 10791} horizontalOpenDoors = {1214, 1222, 1226, 1230, 1236, 1240, 1244, 1248, 1254, 1258, 1262, 1542, 3537, 3539, 3541, 3543, 4918, 5085, 5100, 5102, 5104, 5106, 5118, 5120, 5122, 5124, 5136, 5139, 5280, 5287, 5291, 5295, 5518, 5734, 5746, 6197, 6201, 6205, 6209, 6254, 6258, 6262, 6266, 6796, 6800, 6893, 6895, 6897, 6899, 7035, 7037, 7039, 7041, 7057, 8546, 8550, 8554, 8558, 9170, 9174, 9272, 9276, 9280, 9284, 10273, 10277, 10281, 10285, 10470, 10472, 10474, 10476, 10780, 10782} doors = {[1209] = 1211, [1210] = 1211, [1212] = 1214, [1213] = 1214, [1219] = 1220, [1221] = 1222, [1231] = 1233, [1232] = 1233, [1234] = 1236, [1235] = 1236, [1237] = 1238, [1239] = 1240, [1249] = 1251, [1250] = 1251, [1252] = 1254, [1253] = 1254, [1539] = 1540, [1541] = 1542, [3535] = 3537, [3536] = 3537, [3538] = 3539, [3544] = 3546, [3545] = 3546, [3547] = 3548, [4913] = 4915, [4914] = 4915, [4916] = 4918, [4917] = 4918, [5082] = 5083, [5084] = 5085, [5098] = 5100, [5099] = 5100, [5101] = 5102, [5107] = 5109, [5108] = 5109, [5110] = 5111, [5116] = 5118, [5117] = 5118, [5119] = 5120, [5125] = 5127, [5126] = 5127, [5128] = 5129, [5134] = 5136, [5135] = 5136, [5137] = 5139, [5138] = 5139, [5140] = 5142, [5141] = 5142, [5143] = 5145, [5144] = 5145, [5278] = 5280, [5279] = 5280, [5281] = 5283, [5282] = 5283, [5284] = 5285, [5286] = 5287, [5515] = 5516, [5517] = 5518, [5732] = 5734, [5733] = 5734, [5735] = 5737, [5736] = 5737, [6192] = 6194, [6193] = 6194, [6195] = 6197, [6196] = 6197, [6198] = 6199, [6200] = 6201, [6249] = 6251, [6250] = 6251, [6252] = 6254, [6253] = 6254, [6255] = 6256, [6257] = 6258, [6795] = 6796, [6797] = 6798, [6799] = 6800, [6801] = 6802, [6891] = 6893, [6892] = 6893, [6894] = 6895, [6900] = 6902, [6901] = 6902, [6903] = 6904, [7033] = 7035, [7034] = 7035, [7036] = 7037, [7042] = 7044, [7043] = 7044, [7045] = 7046, [7054] = 7055, [7056] = 7057, [8541] = 8543, [8542] = 8543, [8544] = 8546, [8545] = 8546, [8547] = 8548, [8549] = 8550, [9165] = 9167, [9166] = 9167, [9168] = 9170, [9169] = 9170, [9171] = 9172, [9173] = 9174, [9267] = 9269, [9268] = 9269, [9270] = 9272, [9271] = 9272, [9273] = 9274, [9275] = 9276, [10276] = 10277, [10274] = 10275, [10268] = 10270, [10269] = 10270, [10271] = 10273, [10272] = 10273, [10471] = 10472, [10480] = 10481, [10477] = 10479, [10478] = 10479, [10468] = 10470, [10469] = 10470, [10774] = 10776, [10775] = 10776, [10779] = 10780, [10781] = 10782, [10783] = 10785, [10784] = 10785, [10788] = 10789, [10790] = 10791} specialDoors = {1223, 1225, 1241, 1243, 1255, 1257, 3542, 3551, 5105, 5114, 5123, 5132, 5288, 5290, 5745, 5748, 6202, 6204, 6259, 6261, 6898, 6907, 7040, 7049, 8551, 8553, 9175, 9177, 9277, 9279, 10278, 10280, 10475, 10484, 10781, 10790} tenta adicionar isso em 000-constant
  25. Gostei
    Alienbear deu reputação a Pedriinz em Duvida basic.css   
    Acompanhando o topico, também estou com a mesma duvida...

    @Edit:
    Solução para isso no gesior 1.x
     
    Abra seu basic.css e procure por:
    #HeaderArtworkDiv { position: absolute; text-align: center; Mude absolute para fixed.
     
    Enjoy it.
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo