Ir para conteúdo

Shandow Exille

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Gostei
    Shandow Exille deu reputação a Cerberus em (Resolvido)Summon que cura o Player   
    a sua TFS usa o tempo correto em ves de milisegundos entao use 1 mesmo em vez de 1000 que e igual 1 segundo em outras distro xd.quanto ao valor estando fizo faz seguinte poe ele diretamento no script e testa fica assim
     
    onde tem doCreatureAddHealth(master,cfg.life)
     
    poe assim 
    doCreatureAddHealth(master,math.random(cfg.min,cfg.max)) e lem cima no Cfg  no lugar de life vc escreve
    local cfg = { min =  100 , max = 400, storage = 9999, tempo = 10 -- em segundos }  
  2. Gostei
    Shandow Exille deu reputação a Cerberus em (Resolvido)Summon que cura o Player   
    retira a linha toda do convence pq ja usei o creature summonem ves do create monster
     
    doConvinceCreature(cid,mons) life = math.random(100,400)  
    ou poeseparado
     
    min = 100,
    max = 400,
    life = math.random(cfg.min,cfg.max )
    não esquece de marcar melhor resposta xD.
  3. Gostei
    Shandow Exille deu reputação a Cerberus em (Resolvido)Summon que cura o Player   
    depois de life tem que ter  a virgula   life = math.random(100,400),
     
    local cfg = { life = math.random(100,400), storage = 9999, tempo = 10 -- em segundos }
  4. Gostei
    Shandow Exille deu reputação a DdJs em Dragons Dungeon | Cave Hunt | 8.60   
    Cave hunt - Dragons Dungeon.
     
    Download: Here

    Scan: Here

    Imagens:
     

     

     

     

     
    OBS: O mapa pode conter pequenos erros que são imperceptíveis no map editor mas visíveis in-game. 
  5. Obrigado
    Shandow Exille deu reputação a DdJs em Lost Tomb | Cave Hunt | 8.60   
    Cave hunt - Lost Tomb.
     
    Download: Here

    Scan: Here

    Imagens:
     

     

     

     

  6. Gostei
    Shandow Exille deu reputação a Emersonssss em [Floresta Encantada] New Event - Exclusivo   
    E Papai Absulute como sempre posta o script faltando funções e ainda manda o player se vira para cria-la e o mais engraçado é que me fala para adicionar a função na source ! kkkkkkkkkk
     
    Troque:
    E para finalizar crie um arquivo com o nome de florestaabsolute.lua em data/libs e dentro adicione:
    Adicione este :
    configExf = { teleportPos = {x = 32341,y = 32213, z = 7}, -- aonde aparecerá o teleport teleportPla = {x=32622, y=31699, z=7}, -- para onde o teleport levará stats = 201201180701, timetostart = 300, -- tempo para iniciar topleftPos = {x = 32589, y = 31662, z = 7}, -- canto esquerdo superior botrightPos = {x = 32631, y = 31693, z = 7}, -- canto direito inferior prize = 6571, -- recompensa templepos = {x=32369, y=32241, z=7}, -- posição do templo randpos = {{x=32625,y=31692,z=7},{x=32621,y=31692,z=7},{x=32617,y=31692,z=7},{x=32619,y=31687,z=7},{x=32624,y=31681,z=7},{x=32630,y=31668,z=7},{x=32627,y=31668,z=7},{x=32617,y=31672,z=7},{x=32613,y=31677,z=7},{x=32608,y=31665,z=7},{x=32610,y=31688,z=7},{x=32598,y=31684,z=7},{x=32596,y=31684,z=7},{x=32597,y=31668,z=7}} } -- O PAPAI ABSOLUTE EXPLICARÁ NAS IMAGENS ESSAS POSIÇÕES function doStartExf() doCreateTeleport(1387, configExf.teleportPla, configExf.teleportPos) setGlobalStorageValue(configExf.stats, 0) doBroadcastMessage("The Exchanted Forest event will open in " .. configExf.timetostart .. " seconds.") addEvent(doInitExf, configExf.timetostart*1000) end function doInitExf() if getGlobalStorageValue(configExf.stats) == 0 then doBroadcastMessage("The Exchanted Forest event is starting...") setGlobalStorageValue(configExf.stats, 1) end end function doCloseExf() setGlobalStorageValue(configExf.stats, -1) local item = getTileItemById(configExf.teleportPos, 1387) if(item.uid ~= 0) then doRemoveItem(item.uid) end for index, creature in ipairs(doGetPlayersFromArea()) do doTeleportThing(creature, getTownTemplePosition(getPlayerTown(creature))) end end function doGetPlayersFromArea() local players = {} for index, creature in ipairs(getPlayersOnline()) do if isInArea(getThingPos(creature), configExf.topleftPos, configExf.botrightPos) then table.insert(players, creature) end end return players or #players end "Ai tu tem que adicionar a função na source brother, na 0.3.6 tem..." 
     
    kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
     
    Modificações by Emerson Henrique
     
    Oque eu Alterei ?
    for index, creature in ipairs(doGetPlayersFromArea()) do doTeleportThing(creature, getTownTemplePosition(getPlayerTown(creature))) end end function doGetPlayersFromArea() local players = {} for index, creature in ipairs(getPlayersOnline()) do if isInArea(getThingPos(creature), configExf.topleftPos, configExf.botrightPos) then table.insert(players, creature) end end return players or #players end Resumindo ele vai pegar qualquer player que esteja nessa Area e vai Teleportar pra o *Town do Player

    Town = Cidade Main do Player, 
    Isso :
    templepos = {x=32369, y=32241, z=7}, -- posição do templo é Igual a Isso :
     
    getTownTemplePosition(getPlayerTown(creature)) Porem não é necessario variavel.
     
    Mine Tutorial de como fazer uma função que teleport o player para seu templo sem nenhuma variavel.
     
    Até o Proximo Check's Script's of Absulute

Informação Importante

Confirmação de Termo