Ir para conteúdo

Skulls

Herói
  • Total de itens

    859
  • Registro em

  • Última visita

  • Dias Ganhos

    22

Tudo que Skulls postou

  1. Basta por pra teleportar o cid e nao o target e inverter a ordem das posicoes do teleport xD.
  2. Opa, valeu ai cara! Estou melhorando ele, tendo novidades posto aqui. Abraços!
  3. Não, vc casta uma spell ela abre crosshair e vc pode usar no mapa ou mínimap.
  4. Valeu wolf, tamo junto nega! =)
  5. Boa noite galera, tudo bem? Bom vim aqui apresentar um sisteminha novo de teleport. Pô skulls, que car*****!! Tibia tem teleport desde que nasceu, pq diabos vc ta vindo apresentar isso aqui? Bom, você certamente já viu vários teleports ao longo da sua jornada tibiana: O comunzão: Magias de Teleport: Deve ter visto também itens que te teleportam para uma posição predefinida (não tenho exemplo aqui). Pokémons que te teleportam junto com ele para uma cidade também não são mais novidade. Já devem ter visto varias vezes exemplos de teleport como esses, correto? Então, mas será que vocês já viram ou pensaram em magias que iteram com o crosshair e te possibilitam teleportar para QUALQUER LUGAR do mapa através da sua map view e do minimap?! Isso mesmo, ao castar a magia você acionará o crosshair e poderá utilizar o minimap para se teleportar para longe, bem longe. Não seria bem legal ou, pelo menos, diferente? Então, apresento a vocês o novo sisteminha de teleport spell via minimap: Detalhando o minimap: Bom, é isso: teleports everywhere hahaha Espero que gostem. Abraços,
  6. Po, numa boa legal seu esforço, legal o resultado, enfim, parabens por isso. Mas, na moral, aprende a escrever, vai te ajudar pra caralho nos scripts e na vida. Abraços,
  7. Eu acredito que o erro n ta na tabela é sim na forma de processar p sounds..
  8. Que zoca
  9. Ah sim, vc queria isso ^^
  10. Tente assim require('advsound') require('ex') SOUNDS_CONFIG = { folder = 'mods/Advanced Sound/Sounds/', loop=false, start_paused=false, checkInterval = 500, } local UPDATESOUND_OPCODE = 85 local PAUSESOUND_OPCODE = 81 SOUNDS = {--area sounds {fromPos = {x = 1045, y = 1042, z = 7}, toPos = {x = 1065, y = 1055, z = 7}, sound = {"Saffron.mp3", "Saffron2.mp3"}}, {fromPos = {x = 1045, y = 1091, z = 7}, toPos = {x = 1057, y = 1103, z = 7}, sound = {"Cerulean.mp3", "Cerulean2.mp3"}}, } local toggleSoundEvent local e local audio = nil local window = nil local volume = 100 local str function init() connect(g_game, { onGameEnd = terminate }) window = modules.client_options.audioPanel str = string.explode(window:getChildById('musicSoundVolumeLabel'):getText(), ":") volume = tonumber(str[2]) ProtocolGame.registerExtendedOpcode(UPDATESOUND_OPCODE, getSound) ProtocolGame.registerExtendedOpcode(PAUSESOUND_OPCODE, pauseSound) e = cycleEvent(iniciar, SOUNDS_CONFIG.checkInterval) end function iniciar() if (g_game.isOnline()) then removeEvent(e) toggleSoundEvent = addEvent(startAsound, SOUNDS_CONFIG.checkInterval) end end local m function startAsound() local player = g_game.getLocalPlayer() if not player then return end local pos = player:getPosition() for i, k in pairs(SOUNDS) do if(isInPos(pos, k.fromPos, k.toPos)) then if audio == nil then m = advsound.playMusic(SOUNDS_CONFIG.folder..k.sound[math.random(#k.sound)], true, SOUNDS_CONFIG.start_paused) str = string.explode(window:getChildById('musicSoundVolumeLabel'):getText(), ":") volume = tonumber(str[2]) advsound.setVolume(m, volume/100) audio = true end else audio = nil advsound.setPaused(m, true) removeEvent(toggleSoundEvent) end end toggleSoundEvent = scheduleEvent(startAsound, SOUNDS_CONFIG.checkInterval) end local music function getSound(protocol, opcode, buffer) local cof = string.explode(buffer, "|") local conff = { ["true"] = true, ["false"] = false, } music = advsound.playMusic(SOUNDS_CONFIG.folder..cof[1], conff[cof[2]], SOUNDS_CONFIG.start_paused) str = string.explode(window:getChildById('musicSoundVolumeLabel'):getText(), ":") volume = tonumber(str[2]) advsound.setVolume(music, volume/100) end function pauseSound(protocol, opcode, buffer) if opcode == 81 then advsound.pauseAll() end end function terminate() disconnect(g_game, { onGameEnd = terminate }) e = cycleEvent(iniciar, SOUNDS_CONFIG.checkInterval) audio = nil advsound.pauseAll() end function isInPos(pos, fromPos, toPos) return pos.x>=fromPos.x and pos.y>=fromPos.y and pos.z>=fromPos.z and pos.x<=toPos.x and pos.y<=toPos.y and pos.z<=toPos.z end
  11. Ele troca e não volta? Troca com a cor certa?
  12. Isso funcionou? Remove a luz do player mas mabtem a default do mundo, n vejo muita utilidade..
  13. Hauehuaheu aff
  14. A agr que peguei o erroo... Chegando em cada eu edito aqui Tente assim: unction onEquip(cid, item) local values = { [1] = {male = {lookType = 134, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 3}, female = {lookType = 142, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 3}, normal = {lookType = 128, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0} }, } if getPlayerSex(cid) == 0 then doSetCreatureOutfit(cid, values[getPlayerVocation(cid)].female, -1) else doSetCreatureOutfit(cid, values[getPlayerVocation(cid)].male, -1) end return true end function onDeEquip(cid, item) doRemoveCondition(cid, CONDITION_OUTFIT) return true end
  15. Posta a ultima versaobai por favor.
  16. Cara, doPlayerAddItem(cid, 9971, 10) doTeleportCreature(cid, Position(160, 54, 7))
  17. Posta os erros, por favor. Me ajude a te ajudar, coloca o maximo de informações que tiver, xD
  18. Com a configuração que da erro, ele não toca nada? Nenhuma das duas?
  19. SOUNDS = {--area sounds {fromPos = {x = x1, y = y1, z = z1}, toPos = {x = x2, y = y2, z = z2}, sound = {"Saffron.mp3"}}, {fromPos = {x = x3, y = y3, z = z3}, toPos = {x = x4, y = y4, z = z4}, sound = {"Cerulean.mp3"}}, } Me manda o que você colocou ai pra eu ver
  20. Nao entendi, qual o erro?
  21. Uai eh so trocar o frompos e topos da linha q vc adicionar.
  22. Cara nao precisa saber como por som, basta saber ler o script. E facil fazer essa mudança, você quer que seja aleatório ppr área? To no celular, mas basicamente: SOUNDS = {--area sounds {fromPos = {x = 000, y = 000, z = 0}, toPos = {x = 000, y = 000, z = 0}, sound = "Musica.mp3"}, } Troque sound="musica.mp3"}, Por sound = {"Musica.mp3", "Musica2.mp3}}, Onde tiver SOUNDS.sound troque por SOUNDS.sound[math.random(#SOUNDS.sound)].
  23. Transforma em condição: function onEquip(cid, item) local values = { [1] = {male = {lookType = 134, lookAddons = 3}, female = {lookType = 142, lookAddons = 3}, normal = {lookType = 128, lookAddons = 0} }, } if getPlayerSex(cid) == 0 then doSetCreatureOutfit(cid, values[getPlayerVocation(cid)].female, -1) else doSetCreatureOutfit(cid, values[getPlayerVocation(cid)].male, -1) end return true end function onDeEquip(cid, item) doRemoveCondition(cid, CONDITION_OUTFIT) return true end
  24. Ah que esta no to pico ainda eh a primeeira versão.
  25. uAHEHHUea não é que ele fez mesmo?! Boa! Toma meu like, seu terroristasinho!
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...