Ir para conteúdo

HevoMind

Campones
  • Total de itens

    62
  • Registro em

  • Última visita

Histórico de Reputação

  1. Upvote
    HevoMind recebeu reputação de alan232 em [Tutorial] Upando Pokexgames (Lv: 1 Á 60)   
    FALO ND.
  2. Upvote
    HevoMind recebeu reputação de Lordfire em Novo Modelo De Postagem Noticias Otserv! Seu Servidor Pode Aparecer No Portal!   
    gostei!
    parece que estão colocando mais tutoriais né?
    continuem..
  3. Upvote
    HevoMind recebeu reputação de Henrique Moura em Curta A Página Do Xtibia No Facebook!   
    liked
    @jonathan_bmx
  4. Downvote
    HevoMind recebeu reputação de Gabriel Couto em Criando Casas - Simone Map Editor 8.60   
  5. Downvote
    HevoMind recebeu reputação de Gabriel Couto em Promoção E Notícia Gamerchants   
  6. Downvote
    HevoMind recebeu reputação de Henrique Moura em Canecas..camisetas..bonés Do Xtibia   
  7. Upvote
    HevoMind recebeu reputação de energythemagyc em Criando Casas - Simone Map Editor 8.60   
  8. Downvote
    HevoMind recebeu reputação de Demonbholder em Show Off - Skydangerous   
    @MATHEUS GUEDES,
     
    ACHOU ERROS
  9. Downvote
    HevoMind recebeu reputação de DaNDaNrOxX em Criando Casas - Simone Map Editor 8.60   
  10. Downvote
    HevoMind recebeu reputação de Mophus em Criando Casas - Simone Map Editor 8.60   
  11. Downvote
  12. Upvote
    HevoMind deu reputação a brun123 em Sistema Npc Gym Para Pokemon   
    • nome: Sistema de Ginásio / GYM para pokemon.
    • autor: brun123 (mastercraft)
    • versão testada: TFS 0.36 pl 1 (8.54)
     
     
     
     
    Detalhes: Como cada servidor de pokemon é bem diferente, acredito que muitos erros vão aparecer devido a diferença de IDs das pokebolas por exemplo, mas vou ajudar no que posso.
     
     
    Primeiro passo: crie um arquivo com o nome gymlib.lua na pasta data/lib/, e coloque isso dentro do arquivo:
     
     
     
    Segundo passo: crie um arquivo chamado gym.lua na pasta data/creaturescripts/scripts/ e coloque isso dentro:
     
     
     
    Terceiro passo: abra o arquivo creaturescripts.xml (localizado em data/creaturescripts) e adicione essas 4 tags:
     
    <event type="cast" name="Gym1" event="script" value="gym.lua"/> <event type="attack" name="Gym2" event="script" value="gym.lua"/> <event type="direction" name="Gym3" event="script" value="gym.lua"/> <event type="death" name="Gym4" event="script" value="gym.lua"/> Quarto passo: crie um arquivo chamado brock.xml em data/npc e crie um chamado brock.lua em data/npc/scripts e coloque isso dentro:
     
     
    Quinto passo: se você usar o pokemon dash, vá no arquivo playerattack.lua (data/creatureevents/scripts) e adicione esses códigos embaixo da linha "function onAttack(cid, target)":
     

    if getPlayerStorageValue(target, 201) ~= -1 then for a, b in pairs(ginasios) do if getPlayerStorageValue(target, ginasios[getPlayerStorageValue(target, 201)].storage) == 1 then if getPlayerStorageValue(cid, ginasios[getPlayerStorageValue(target, 201)].storage) ~= 1 then doPlayerSendCancel(cid, "You can't attack this pokemon.") return false end end end end end
    Se você não usa o pokemon dash, crie um arquivo chamado playerattack.lua na pasta data/creatureevents/scripts e coloque isso dentro:
     

    function onAttack(cid, target) if getPlayerStorageValue(target, 201) ~= -1 then for a, b in pairs(ginasios) do if getPlayerStorageValue(target, ginasios[getPlayerStorageValue(target, 201)].storage) == 1 then if getPlayerStorageValue(cid, ginasios[getPlayerStorageValue(target, 201)].storage) ~= 1 then doPlayerSendCancel(cid, "You can't attack this pokemon.") return false end end end end return true end
    e adicione essa tag no creaturescripts.xml (data/creaturescripts):
     

    <event type="attack" name="PlayerAttack" event="script" value="playerattack.lua"/>
    e ainda, abra o arquivo login.lua e embaixo dessa linha: "function onLogin(cid)" adicione esse código:
     

    registerCreatureEvent(cid, "PlayerAttack")  
    Último passo: vá em data/creaturescripts/scripts e abra o arquivo goback.lua (aqui por exemplo, pode ser que haja uma particulariedade de servidor para servidor), e procure pela linha:
    function onDeath(cid, deathList)
    e abaixo dela, adicione esse código:
     
    local owner = getCreatureMaster(cid) for x, y in pairs(ginasios) do if getPlayerStorageValue(owner, y.storage) == 1 then if getPlayerStorageValue(owner, 991) == 5 or not hasPokemon(owner) then setPlayerStorageValue(owner, 991, -1) else local number = tonumber(getPlayerStorageValue(owner, 991)) setPlayerStorageValue(owner, 991, number + 1) end end end Configuração dos NPCs:
    Abrindo o arquivo brock.lua na pasta data/npc/scripts, procure por esta linha:
    "doGymBattle("Brock", "Brock Geodude", cid, 1)"
    o "Brock" precisa ser o nome do NPC e o "Brock Geodude" precisa ser o nome do primeiro pokemon a ser usado.
     
    Agora nessa parte, no script do seu NPC, você também deve editar o nome do NPC no lugar de "brock".
    Se quiser que o player possa lutar com o NPC mesmo depois de tê-lo vencido, é só remover a mesma parte:
     

    if getPlayerStorageValue(cid, ginasios["Brock"].storage) >= 1 then return true end
     
    Ao abrir o arquivo gymlib.lua, você encontra essas duas linhas (são as primeiras):
     

    funcpokemon = {2220, 2222} -- ID das pokebolas (o pokemon tem que estar vivo nessas IDs) bpslot = CONST_SLOT_BACKPACK --em outros servers, pode ser que seja CONST_SLOT_AMMO o lugar onde fica a backpack no inventory Onde está funcpokemon, você coloca o ID de todas as pokebolas do seu server, mas esse ID tem que ser o ID da pokebola com algum pokemon vivo dentro, e esses IDs devem ser separados por vírgula.
    Onde está bpslot, você escreve onde fica a BACKPACK do seu server de pokemon. Se ficar no lugar normal de BPs, deixe como está, mas se sua BP fica no slot da munição (ammunition), você deve estar para CONST_SLOT_AMMO. Isso é tudo, agora vocês podem configurar os IDs e localização da BP facilmente, sem precisar conhecimentos mais avançados sobre scripting, e evitar erros no sistema.
     
    Abrindo o arquivo gymlib.lua, localizado em data/lib/ você encontra essa tabela:
     

    ginasios = { ["Brock"] = { storage = 900, msgdefeat = "You lost! You aren't strong enough yet, don't come back until you get stronger!", msgafk = "Go away if you don't have any pokemons!", msgwin = "Congratulations, you were strong enough to win this battle fairly! Take this Earth Badge as reward.", [1] = { msggo = "Lets fight then! I choose you, Geodude!", msgba = "That's enough, Geodude!", pokem = "Brock Geodude", nextp = "Brock Graveler"}, [2] = { msggo = "It's your turn, Graveler!", msgba = "Come back, Graveler!", pokem = "Brock Graveler", nextp = "Brock Golem"}, [3] = { msggo = "Crush'em, Golem!", msgba = "You did well, Golem!", pokem = "Brock Golem", nextp = "finish"} } } • storage significa a única storage que deve variar de NPC para NPC, tenha certeza de que essa storage não está sendo usada, é você não deve usar a storage 901 aqui, pois a mesma já está em uso pelo próprio sistema.
    • msgdefeat significa o que o NPC irá dizer quando o player perder o duelo.
    • msgafk significa o que o NPC irá dizer caso o player comece o duelo, mas não faça nada depois.
    • msgwin significa o que o NPC irá dizer quando o player vencer o duelo.
    • msggo / msgba significam os textos que o NPC irá dizer ao sumonar o pokemon dele, ou quando o mesmo morrer, respectivamente.• pokem / nextp significam o nome do pokemon que será utilizado, e o próximo pokemon a ser sumonado pelo NPC, respectivamente. Caso o nextp seja especificado como "finish", não haverá um próximo pokemon.
    • o número entre [] significa a ordem utilizada pelo líder para usar o tal pokemon, sendo 1 o primeiro pokemon, 2 o segundo e assim vai...
    Uma tabela detalhada sobre a configuração:
     
     
    Importante: caso for testar o sistema como foi postado aqui, é necessário criar antes os monstros Brock Geodude, Brock Graveler e Brock Golem, assim como adicioná-los no monsters.xml.
    Recomendações: é bom você impedir que o pokemon consiga retornar para a pokebola durante duelos (assim como foi feito no SvkE), para isso, basta adicionar esse código no arquivo goback.lua (data/actions) na parte inicial de retornar o pokemon:
     

    for a, b in pairs(ginasios) do if getPlayerStorageValue(cid, b.storage) == 1 then -- GYM doPlayerSendCancel(cid, "You can't return your pokemon during gym battles.") return true end end Aconselho fazer o mesmo caso seu server tenha script de revive.
     
    Deve-se também checar pelos storages usado em players, somente o 990 e o 991.
     
    No servidor testado, é utilizado apenas pokeballs e ultraballs, com IDs 2220 e 2222 (outra particularidade).
     
    Após ter instalado os arquivos, entre no jogo e use o comando /n Brock para testar o NPC.
     
    Último aviso: o prêmio ainda não foi adicionado (que seria a badge), pois esse sim é bem variado de servidor pra servidor.
    Já que nenhum servidor base já vem com os IDs das badges, cada um adicionou elas de modo diferente, por isso não pude fazer, mas existe uma parte sobre um prêmio no arquivo gym.lua (data/creaturescripts/scripts), procure por isso:
     

    --local item = getPlayerItemById(killer, true, 2307) --doTransformItem(item.uid, 2294) Você pode modificar para adicionar dinheiro ou outra coisa, e pode também desenvolver um sistema de badges.
    Eu não vou fazer badge aqui, mas se vocês tentarem, posso ajudar com problemas.
     
    Quaisquer erros, tentarei responder o mais rápido possível.
  13. Downvote
    HevoMind recebeu reputação de Demonbholder em Cry, And More Cry.   
    KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK
     
    EU RI DO AVATAR DO VODKART!
  14. Downvote
    HevoMind recebeu reputação de DaNDaNrOxX em [Fechado]   
    SOU VODKART LÁ
  15. Upvote
    HevoMind deu reputação a newhera em [Encerrado] Como Criar Um Database De Account's Desd' O 0 ?   
    Exclua os Characters antes, Guilds antes. Os Items no Depot e Frags.
    Se não conseguir deletar ainda... Baixe o novo SQLiteStudio no Site do Fabricante, pois o que vem na maioria dos OTs são 1.xx. O do site do Fabricante está na versão 2.0.9.
    Agradeça se ajudei, não sei se vai dar certo, pois nunca aconteceu comigo.
  16. Upvote
    HevoMind deu reputação a Guerreira em [Encerrado] Como Liberar Port 7171 Do Windows 7   
    Completando a resposta acima:
    Porta > TCP > Portas Remotas Especificas > Permitir Conexão > Marque Todas as Opções > Coloque o Nome > Concluir :)
  17. Upvote
    HevoMind deu reputação a Vodkart em [Mod] Map Change 2.0   
    é um script que muda de mapa a cada X horas(ou minutos)
     
    Creditos: Vodkart e Demonbholder que me ajudo *-*
     
    na pasta mods crie um arquivo.xml e renomeie para
     
     
    ChangeMap.xml
     

    <?xml version="1.0" encoding="ISO-8859-1"?> <mod name="ChangeMap" version="2.0" author="Vodkart" contact="none.com" enabled="yes"> <config name="map_func"><![CDATA[ info = { [0] = 1, [1] = 3, [2] = 4 } storage = 789520 ]]></config> <event type="login" name="Check Map" event="script"><![CDATA[ domodlib('map_func') function onLogin(cid) if getGlobalStorageValue(storage) == -1 then setGlobalStorageValue(storage, 0) end doTeleportThing(cid, getTownTemplePosition(info[getGlobalStorageValue(storage)])) return true end ]]></event> <globalevent name="ChangeMap" interval="3600" event="script"><![CDATA[ domodlib('map_func') function onThink(interval, lastExecution) doBroadcastMessage('The map will be changed again in 1 hour.') setGlobalStorageValue(storage, getGlobalStorageValue(storage) < #info and getGlobalStorageValue(storage)+1 or 0) for _, pid in ipairs(getPlayersOnline()) do doPlayerSetTown(pid, info[getGlobalStorageValue(storage)]) doRemoveConditions(pid, true) doCreatureAddHealth(pid, getCreatureMaxHealth(pid)) doCreatureAddMana(pid, getCreatureMaxMana(pid)) doTeleportThing(pid, getTownTemplePosition(getPlayerTown(pid))) end return true end]]></globalevent> </mod>
     
    Explicação:
     
    No info é o id das town
    para adicionar mais mapas é só colocar uma virgula no último e adicionar o novo town_id
     

    [3] = 5, [4] = ??
     
    e o tempo você muda nessa parte interval="3600"
    no caso está para 1 hora
  18. Upvote
    HevoMind deu reputação a betinhowz666 em [8.54] Mapa Pokemon Betinhowz666   
    Hello


    Como prometido irei disponibilizar agora o download do mapa pokemon que estive trabalhando.


    Coloquei as houses mais não o respaw.







    Apresentações ?


    Vamos lá para uma prévia das cidades.


    As hunt's vocês terão que baixar para conferir







    CITY 1








    CITY 2









    CITY 3








    CITY 4












    Me ajudem a atingir 200 REP +, Que farei este mapa ficar muito melhor do que está.







    Antes era 150 REP+, Mas por conta de alguns moderadores me tirarem REP + dizendo que eu tinha feito outra conta para me dar REP + agora será 200.








    Segue o download do mapa e o que precisa para que você abra-o













    MAPA BETINHOWZ666









    SPR POR PIRADECO






















    Créditos:


    PeeWee - por fazer parte do mapa


    Piradeco - pelas .spr e .dat


    betinhowz666 - por estar editando. (EU)


  19. Upvote
    HevoMind recebeu reputação de aham912 em [Pokemon] Spells + Pokémons   
    Eai Galera do XTIBIA,
    Trago a vocês alguns SPELLS/MOVES de OTPOKÉMON, ALGUMAS PEGAS DO POKEMONDASH,POKEMONFLASH,POKEMONBYFAMILIA E 76 PELO XOTSERVX QUE JA ESTÃO INCLUIDAS AQUI.
     
    Algumas imagens das SPELLS :
     

     
    Antes de tudo, baixe os SCRIPTS das SPELLS
    OBS: MAGIAS NÃO OFICIAIS DO JOGO FORAM REMOVIDAS
     

    MEGAUPLOAD
    4SHARED
    SCAN
     
     
    Agora siga, data/spells/spells.XML e adicione :
     

    <spells> <instant name="raging blast" words="raging blast attack" lvl="999" mana="20" direction="1" exhaustion="2000" needlearn="0" event="script" value="poke/raging blast.lua"> </instant> <instant name="sand attack" words="sand attack miss" lvl="999" mana="20" direction="1" exhaustion="2000" needlearn="0" event="script" value="poke/sandattack.lua"> </instant> <instant name="shockwave" words="thunder wave attack" lvl="999" mana="20" direction="1" exhaustion="2000" needlearn="0" event="script" value="poke/shockwave.lua"> </instant> <instant name="toxic" words="toxic wave attack" lvl="999" mana="20" direction="1" exhaustion="2000" needlearn="0" event="script" value="poke/toxic.lua"> </instant> <instant name="charge beam" words="charge beam attack" lvl="999" mana="20" direction="1" exhaustion="2000" needlearn="0" event="script" value="poke/charge beam.lua"> </instant> <instant name="fire blast" words="fire blast attack" lvl="999" mana="20" direction="1" exhaustion="2000" needlearn="0" event="script" value="poke/fire blast.lua"> </instant> <instant name="waterball" words="water ball attack" lvl="999" mana="20" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="0" needlearn="0" event="script" value="poke/waterball.lua"> </instant> <instant name="super sonic" words="super sonic miss" lvl="999" mana="20" prem="1" range="4" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/super sonic.lua"> </instant> <instant name="harden" words="harden defense" lvl="999" mana="20" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="poke/harden.lua"> </instant> <instant name="reflect" words="reflect defense" lvl="999" mana="20" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="poke/reflect.lua"> </instant> <instant name="fury" words="fury attack" lvl="999" mana="20" aggressive="0" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/fury.lua"> </instant> <instant name="ember" words="real ember attack" lvl="999" mana="2000" range="5" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/ember.lua"> </instant> <instant name="swift" words="swift attack water" lvl="999" mana="2000" prem="1" range="10" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/swift.lua"> </instant> <instant name="mud shot" words="mud shot miss" lvl="999" mana="2000" prem="1" range="5" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/mud shot.lua"> </instant> <instant name="psychic" words="big confusion" lvl="999" mana="20" prem="0" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/bigpsychic.lua"> </instant> <instant name="discharge" words="discharge charge" lvl="999" mana="20" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/discharge.lua"> </instant> <instant name="spark" words="spark attack" lvl="999" mana="20" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/spark.lua"> </instant> <instant name="Haunter Fear" words="FEAR!" lvl="50000" mana="160" prem="1" exhaustion="2000" needlearn="0" event="script" value="poke/fearattack.lua"> </instant> <instant name="Selfheal2" words="HealSelf" lvl="999" mana="20" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/selfheal2.lua"> </instant> <instant name="Psy Beam" words="PsyBeam" lvl="999" mana="20" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/psybeam.lua"> </instant> <instant name="Leaf Storm" words="Leaf Storm" lvl="999" mana="20" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/leaf storm.lua"> </instant> <instant name="Sing" words="Melody" lvl="999" mana="20" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/sing.lua"> </instant> <instant name="Great Love" words="Great Loove" lvl="999" mana="20" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/greatlove.lua"> </instant> <instant name="Lovely Kiss" words="Kiss Attack" lvl="999" mana="20" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/kissattack.lua"> </instant> <instant name="Multi-Slap" words="Multi Slap" lvl="999" mana="20" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/multi-slap.lua"> </instant> <instant name="SelfHeal Chansey" words="SelfHeal" lvl="999" mana="20" aggressive="0" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/chanseyheal.lua"> </instant> <instant name="Restore" words="Restore" lvl="999" mana="20" aggressive="0" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/restore.lua"> </instant> <instant name="Selfheal" words="Focus" lvl="999" mana="20" aggressive="0" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/selfheal.lua"> </instant> <instant name="Aerodactyl Attack" words="Aerodactyl Attack" lvl="999" mana="20" prem="1" direction="1" blockwalls="1" needlearn="0" event="script" value="poke/aeroattack.lua"> </instant> <instant name="Rockslide" words="RockSlide Attack" lvl="999" mana="20" prem="1" range="4" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/rockslide.lua"> </instant> <instant name="Muddy Water" words="Muddy Water" lvl="999" mana="20" direction="1" exhaustion="2000" needlearn="0" event="script" value="poke/muddywater.lua"> </instant> <instant name="Psy Fusion" words="PsyFusion" lvl="999" mana="20" prem="1" exhaustion="2000" selftarget="1" needlearn="0" event="script" value="poke/Psyfusion.lua"> </instant> <instant name="Absorb" words="Absorb attack" lvl="999" mana="20" prem="1" range="2" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/absorb.lua"> </instant> <instant name="Thunder Punch" words="Thunder Punch Attack" lvl="999" mana="20" prem="1" range="2" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/thunderpunch.lua"> </instant> <instant name="Electricity" words="Electricty Attack" lvl="999" mana="20" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/electricity.lua"> </instant> <instant name="Thunder Wave" words="Shock Wave" lvl="999" mana="20" direction="1" exhaustion="2000" needlearn="0" event="script" value="poke/thunderwave.lua"> </instant> <instant name="Lick Wave" words="Lick Attack" lvl="999" mana="20" direction="1" needlearn="0" event="script" value="poke/LickWave.lua"> </instant> <instant name="Thunder Storm" words="Electric Storm" lvl="999" mana="20" prem="1" exhaustion="2000" needlearn="0" event="script" value="poke/thunder.lua"> </instant> <instant name="Poison Gas" words="Smoke Gas" lvl="999" mana="20" prem="1" exhaustion="2000" needlearn="0" event="script" value="poke/smokegas.lua"> </instant> <instant name="Smoke Attack" words="Smokee" lvl="999" mana="20" prem="1" exhaustion="2000" needlearn="0" event="script" value="poke/smoke.lua"> </instant> <instant name="Blastoise Attack" words="Hydro Pump" lvl="999" mana="20" prem="1" exhaustion="2000" needlearn="0" event="script" value="poke/waterstorm.lua"> </instant> <instant name="Hydro Cannon Attack" words="Hydro Cannon" lvl="999" mana="20" direction="1" exhaustion="2000" needlearn="0" event="script" value="poke/hydrocannon.lua"> </instant> <instant name="Falling Rocks" words="Rock Storm" lvl="999" mana="20" prem="1" exhaustion="2000" selftarget="1" needlearn="0" event="script" value="poke/rockstorm.lua"> </instant> <instant name="Cofusion Attack" words="Confusion" lvl="999" mana="20" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/confusion.lua"> </instant> <instant name="Physic" words="Confusion2" lvl="999" mana="20" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/physic.lua"> </instant> <instant name="Scyther Attack" words="Fury Cutter" lvl="999" mana="20" prem="1" range="1" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/furycutter.lua"> </instant> <instant name="Exori Merda" words="exori merda" lvl="999" mana="20" prem="1" range="8" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/exorimerda.lua"> </instant> <instant name="Charizard Attack" words="Flaames" lvl="999" mana="20" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/firestorm.lua"> </instant> <instant name="Flames Wave" words="Tri Flames" lvl="999" mana="20" direction="1" exhaustion="2000" needlearn="0" event="script" value="poke/triflames.lua"> </instant> <instant name="Haunter Attack" words="Ghost Attack" lvl="999" mana="20" prem="1" range="2" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/haunterattack.lua"> </instant> <instant name="Shadow Ball" words="shadow attack" lvl="999" mana="20" prem="1" range="5" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/shadowball.lua"> </instant> <instant name="Egg Bomb" words="egg attack" lvl="999" mana="20" prem="1" range="5" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/eggbomb.lua"> </instant> <instant name="Lick" words="lick attack" lvl="999" mana="20" prem="1" range="5" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/lick.lua"> </instant> <instant name="Shadow Punch" words="shadowpunch attack" lvl="999" mana="20" prem="1" range="5" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/shadowpunch.lua"> </instant> <instant name="Dream Eater" words="dream attack" lvl="999" mana="20" prem="1" range="5" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/dreameater.lua"> </instant> <instant name="Leech Seed" words="leech" lvl="999" mana="20" prem="1" range="5" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/leech.lua"> </instant> <instant name="Supersonic" words="sonic attack" lvl="10" mana="10" prem="1" range="5" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/supersonic.lua"> </instant> <instant name="Poisonpowder" words="powder attack" lvl="10" mana="10" prem="1" range="5" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/poisonpowder.lua"> </instant> <instant name="Sludge Bomb" words="sludge attack" lvl="10" mana="10" prem="1" range="5" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/sludgebomb.lua"> </instant> <instant name="Fires" words="Three Flames" lvl="10" mana="10" prem="1" range="5" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/threeflames.lua"> </instant> <instant name="Pin Missile" words="pin attack" lvl="10" mana="10" prem="1" range="5" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/pinmissile.lua"> </instant> <instant name="Tackle" words="tackle attack" lvl="10" mana="10" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/tackle.lua"> </instant> <instant name="Double Kick" words="kick attack" lvl="10" mana="10" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/doublekick.lua"> </instant> <instant name="Dynamicpunch" words="dynamicpunch attack" lvl="10" mana="10" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/dynamicpunch.lua"> </instant> <instant name="Scratch" words="Scratch attack" lvl="10" mana="10" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/scratch.lua"> </instant> <instant name="Rage" words="rage attack" lvl="10" mana="10" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/rage.lua"> </instant> <instant name="Thundershock" words="shock attack" lvl="10" mana="10" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/thundershock.lua"> </instant> <instant name="Icy Wind" words="icy attack" lvl="999" mana="20" prem="1" range="5" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/icywind.lua"> </instant> <instant name="Dragon Rage" words="dragon attack" lvl="9999" mana="20" prem="1" range="5" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/dragonrage.lua"> </instant> <instant name="Ember" words="ember attack" lvl="9999" mana="20" prem="1" range="5" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/ember.lua"> </instant> <instant name="String Shot" words="string attack" lvl="9999" mana="20" prem="1" range="4" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/stringshot.lua"> </instant> <instant name="Swift" words="swift attack" lvl="9999" mana="20" prem="1" range="4" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/swift.lua"> </instant> <instant name="Horn Attack" words="chifre attack" lvl="9999" mana="20" prem="1" range="4" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/hornattack.lua"> </instant> <instant name="Poison Sting" words="sting attack" lvl="9999" mana="20" prem="1" range="4" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/poisonsting.lua"> </instant> <instant name="Gust" words="gust attack" lvl="999" mana="100" selftarget="1" prem="1" exhaustion="2000" needlearn="0" event="script" value="poke/gust.lua"> </instant> <instant name="Earthquake" words="earthquake attack" lvl="9999" mana="20000" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/earthquake.lua"> </instant> <instant name="Karate Chop" words="karate attack" lvl="9999" mana="20000" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/karatechop.lua"> </instant> <instant name="Thrash" words="thrash attack" lvl="9999" mana="20000" prem="1" range="1" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/thrash.lua"> </instant> <instant name="Teleport" words="teleport attack" lvl="100" mana="800" needtarget="1" prem="0" range="5" exhaustion="2000" blockwalls="1" needlearn="0" script="poke/teleport.lua"> </instant> <instant name="Cross Chop" words="cross attack" lvl="9999" mana="20000" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/crosschop.lua"> </instant> <instant name="Tri Attack" words="tres attack" lvl="9999" mana="20000" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/triattack.lua"> </instant> <instant name="Tail Whip" words="tail attack" lvl="9999" mana="20000" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/tail.lua"> </instant> <instant name="Sonicboom" words="sonicb attack" lvl="9999" mana="20000" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/sonicboom.lua"> </instant> <instant name="Ghost Bite" words="bite Ghost" lvl="999" mana="20000" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/bite.lua"> </instant> <instant name="Peck" words="peck attack" lvl="999" mana="20000" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/peck.lua"> </instant> <instant name="Splash" words="splash attack" lvl="999" mana="20000" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/splash.lua"> </instant> <instant name="Hyper Fang" words="fang attack" lvl="999" mana="20000" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/hyperfang.lua"> </instant> <instant name="Drill Peck" words="drill attack" lvl="999" mana="20000" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/drillpeck.lua"> </instant> <instant name="Reflect" words="Reflect" lvl="9999" mana="20000" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/reflect.lua"> </instant> <instant name="Waterfall" words="waterfall attack" lvl="9999" mana="160" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/waterfall.lua"> </instant> <instant name="Night Shade" words="nightshade attack" lvl="9999" mana="160" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/nightshade.lua"> </instant> <instant name="Ice Shard" words="shard attack" lvl="9999" mana="160" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/iceshard.lua"> </instant> <instant name="Stun Spore" words="stun attack" lvl="9999" mana="160" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/stunspore.lua"> </instant> <instant name="Sand Tomb" words="tomb attack" lvl="9999" mana="160" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/sandtomb.lua"> </instant> <instant name="Wing Attack" words="asa attack" lvl="9999" mana="160" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/wingattack.lua"> </instant> <instant name="Whirlwind" words="whirlwind attack" lvl="9999" mana="160" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/whirlwind.lua"> </instant> <instant name="Smokescreen" words="smoke attack" lvl="9999" mana="160" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/smokescreen.lua"> </instant> <instant name="Thunder" words="thunder attack" lvl="9999" mana="160" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/thunder.lua"> </instant> <instant name="Solarbeam" words="solar attack" lvl="9999" mana="160" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/solar.lua"> </instant> <instant name="Flamethrower" words="flamethrower attack" lvl="9999" mana="160" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/flamethrower.lua"> </instant> <instant name="Hyper Beam" words="hyper attack" lvl="9999" mana="160" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/hyperbeam.lua"> </instant> <instant name="Quick Attack" words="rapido attack" lvl="9999" mana="160" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/quickattack.lua"> </instant> <instant name="Ice Beam" words="icebeam attack" lvl="9999" mana="160" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/icebeam.lua"> </instant> <instant name="Acid" words="acid attack" lvl="9999" mana="160" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/acid.lua"> </instant> <instant name="Confuse Ray" words="ray attack" lvl="9999" mana="160" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/confuseray.lua"> </instant> <instant name="Water Gum" words="Water Gum" lvl="999" mana="20" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/watergum.lua"> </instant> <instant name="Rain Dance" words="rain attack" lvl="9999" mana="160" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/raindance.lua"> </instant> <instant name="Future Sight" words="future attack" lvl="999" mana="160" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/futuresight.lua"> </instant> <instant name="Psybeam" words="psybeam attack" lvl="9999" mana="160" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/psybeam.lua"> </instant> <instant name="Psychic" words="psychic attack" lvl="9999" mana="160" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/psychic.lua"> </instant> <instant name="Confusion" words="confusion attack" lvl="9999" mana="160" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/confusion.lua"> </instant> <instant name="Bone Rush" words="rush attack" lvl="9999" mana="160" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="poke/bonerush.lua"> </instant> <instant name="Bubble" words="bubble attack" lvl="9999" mana="20" prem="1" range="4" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/bubble.lua"> </instant> <instant name="Fury Attack" words="furia attack" lvl="9999" mana="20" prem="1" range="4" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/furyattack.lua"> </instant> <instant name="Razor Leaf" words="razor" lvl="9999" mana="20" prem="1" range="5" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/razor.lua"> </instant> <instant name="Petal Dance" words="petal attack" lvl="9999" mana="20" prem="1" range="5" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/petaldance.lua"> </instant> <instant name="Bone Club" words="bone attack" lvl="9999" mana="20" prem="1" range="5" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/boneclub.lua"> </instant> <instant name="Rock Attack" words="Rock Attack" lvl="9999" mana="20" prem="1" range="5" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/rockpolish.lua"> </instant> <instant name="Bite Attack" words="Bite" lvl="9999" mana="20" prem="1" range="5" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="poke/biteattack.lua"> </instant> <instant name="Stone Storm" words="Falling Rocks" lvl="3005" mana="115" prem="1" needweapon="1" exhaustion="2000" needlearn="0" event="script" value="poke/stoneedge.lua"> </instant> <instant name="Thunderbolt" words="bolt attack" lvl="3005" mana="115" prem="1" needweapon="1" exhaustion="2000" needlearn="0" event="script" value="poke/thunderbolt.lua"> </instant> <instant name="Sandstorm" words="sandstorm attack" lvl="3005" mana="115" prem="1" needweapon="1" exhaustion="2000" needlearn="0" event="script" value="poke/sandstorm.lua"> </instant> <instant name="Vine Whip" words="vine attack" lvl="3800" mana="210" direction="1" exhaustion="2000" needlearn="0" event="script" value="poke/vinewhip.lua"> </instant> <!-- Summon Spells --> <instant name="Summon Creature" words="utevo res" lvl="2500" params="1" exhaustion="2000" needlearn="0" event="function" value="summonMonster"> </instant> </spells>
     
    --- ADICIONANDO AS SPELLS/MOVES NOS POKEMONS ---
     
    Siga, data/monster/Pokes ,
     
    SELECIONE O POKEMON QUE DESEJA ADICIONAR A SPELL, ABRA-O COM BLOCO DE NOTAS, VÁ ATÉ A TAG :
     
     
    VERMELHO - Nome da Spell configurada na Tag
     
    LARANJA - Tempo que demorara para usar a spell 1000 = 1 sec.
     
    VERDE - Chance do attack funcionar
     
    ROXO - Dano que a Spell Aproximadamente Causará
     
     
    EM BREVE POSTAREI TODOS OS POKEMONS BALANCEADOS OS ATTACKS E ARRUMADOS LOOTS.
     
    ACHO QUE É ISSO,
    NÃO QUERO +REP,
    APENAS QUERO QUE ME AJUDEM AQUI :
     
    [HELP] INTERNET COMPARTILHADA
  20. Upvote
    HevoMind deu reputação a MaGoDaNeT em [Npc] Nurse Joy   
    Funciona em 8.54 ou maior
     
     
    Ola nesse npc foi usado o script go/back do MatheusMkalo.
     
    O npc esta quase identico ao do PO é só fala hi e pronto heala vc e todos os seus pokemons...
    E as falas tbm estão iguais.
     
    E como podem ver eu fis com a poke ball e ultra ball.
     
     
    Bom vamos ao script
     
    Va na pasta data/npc copie qualquer npc e renomeie para Nurse Joy
    feito isso abra o arquivo XML qui vc pois o nome de Nurse Joy apague tudo de dentro e ponha isso.
     

    <?xml version="1.0" encoding="UTF-8"?> <npc name="Nurse Joy" script="Nurse Joy.lua" walkinterval="0" speed="0" floorchange="0"> <health now="100" max="100"/> <look type="318" head="0" body="0" legs="0" feet="0" addons="0"/> <parameters> </parameters> </npc>
     
    Agora salve e fexe
     
    Depois disso abra a pasta Scripts copie qualque arquivo LUA e renomeie para Nurse Joy agora abra ele apague tudo e ponha isso
     

    local focus = 0 local talk_start = 0 local target = 0 local following = false local attacking = false function onThingMove(creature, thing, oldpos, oldstackpos, item, itemEx) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye then.') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function onCreatureSay(cid, type, msg) msg = string.lower(msg) if (msgcontains(msg, 'hi')) and getDistanceToCreature(cid) < 4 then if getPlayerStorageValue(cid, 59987) == 1 then return selfSay('You Are riding.') end if getPlayerStorageValue(cid, 62314) == 1 then return selfSay('You are flying.') end if #getCreatureSummons(cid) >= 1 then selfSay('Please back your Pokemon to the pokeball...') focus = 0 talk_start = 0 return TRUE end if not getTilePzInfo(getCreaturePosition(cid)) then return selfSay('Please enter in the Pokemon Center...') end -- Poke Ball for slo = CONST_SLOT_FIRST, CONST_SLOT_LAST do local item = getPlayerSlotItem(cid, slo) if isContainer(item.uid) then local items = getItemsInContainerById(item.uid, pokeout) for i,x in pairs(items) do local maxh = tonumber(getItemAttribute(x, "poke"):match("/(.+)]")) doItemSetAttribute(x, "poke", getItemAttribute(x, "poke"):sub(1, findLetter(getItemAttribute(x, "poke"), ".")) .. " HP = ["..maxh.."/"..maxh.."]") doTransformItem(x, pokein) end local items2 = getItemsInContainerById(item.uid, pokein) for i,x in pairs(items2) do local maxh = tonumber(getItemAttribute(x, "poke"):match("/(.+)]")) doItemSetAttribute(x, "poke", getItemAttribute(x, "poke"):sub(1, findLetter(getItemAttribute(x, "poke"), ".")) .. " HP = ["..maxh.."/"..maxh.."]") end if item.itemid == pokeout or item.itemid == pokein then local maxh = tonumber(getItemAttribute(item.uid, "poke"):match("/(.+)]")) doItemSetAttribute(item.uid, "poke", getItemAttribute(item.uid, "poke"):sub(1, findLetter(getItemAttribute(item.uid, "poke"), ".")) .. " HP = ["..maxh.."/"..maxh.."]") doTransformItem(item.uid, pokein) end end local items = getItemsInContainerById(item.uid, pokeout) for i,x in pairs(items) do local maxh = tonumber(getItemAttribute(x, "poke"):match("/(.+)]")) doItemSetAttribute(x, "poke", getItemAttribute(x, "poke"):sub(1, findLetter(getItemAttribute(x, "poke"), ".")) .. " HP = ["..maxh.."/"..maxh.."]") doTransformItem(x, pokein) end local items2 = getItemsInContainerById(item.uid, pokein) for i,x in pairs(items2) do local maxh = tonumber(getItemAttribute(x, "poke"):match("/(.+)]")) doItemSetAttribute(x, "poke", getItemAttribute(x, "poke"):sub(1, findLetter(getItemAttribute(x, "poke"), ".")) .. " HP = ["..maxh.."/"..maxh.."]") end if item.itemid == pokeout or item.itemid == pokein then local maxh = tonumber(getItemAttribute(item.uid, "poke"):match("/(.+)]")) doItemSetAttribute(item.uid, "poke", getItemAttribute(item.uid, "poke"):sub(1, findLetter(getItemAttribute(item.uid, "poke"), ".")) .. " HP = ["..maxh.."/"..maxh.."]") doTransformItem(item.uid, pokein) end -- Ultra Ball local items = getItemsInContainerById(item.uid, pokeoutultra) for i,x in pairs(items) do local maxh = tonumber(getItemAttribute(x, "poke"):match("/(.+)]")) doItemSetAttribute(x, "poke", getItemAttribute(x, "poke"):sub(1, findLetter(getItemAttribute(x, "poke"), ".")) .. " HP = ["..maxh.."/"..maxh.."]") doTransformItem(x, pokeinultra) end local items2 = getItemsInContainerById(item.uid, pokeinultra) for i,x in pairs(items2) do local maxh = tonumber(getItemAttribute(x, "poke"):match("/(.+)]")) doItemSetAttribute(x, "poke", getItemAttribute(x, "poke"):sub(1, findLetter(getItemAttribute(x, "poke"), ".")) .. " HP = ["..maxh.."/"..maxh.."]") end if item.itemid == pokeoutultra or item.itemid == pokeinultra then local maxh = tonumber(getItemAttribute(item.uid, "poke"):match("/(.+)]")) doItemSetAttribute(item.uid, "poke", getItemAttribute(item.uid, "poke"):sub(1, findLetter(getItemAttribute(item.uid, "poke"), ".")) .. " HP = ["..maxh.."/"..maxh.."]") doTransformItem(item.uid, pokeinultra) end end selfSay("Hello! We've restored your Pokemon to full health. We hope to see you again!") local hp = getCreatureMaxHealth(cid) doCreatureAddHealth(cid, hp) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_GREEN) focus = 0 talk_start = 0 end end function onCreatureChangeOutfit(creature) end
     
    Salve e fexe
     
     
    Agora As Functions
     
    va na pasta LIB e crie um arquivo lua chamado PokeLib e coloque isso dentro
     
     

    pokein, pokeout = 2646,2457 pokeinultra, pokeoutultra = 2654,2537 function doRemoveTile(pos)-- Script by mock pos.stackpos = 0 local sqm = getTileThingByPos(pos) doRemoveItem(sqm.uid,1) end function doCreateTile(id,pos) -- By mock doAreaCombatHealth(0,0,pos,0,0,0,CONST_ME_NONE) doCreateItem(id,1,pos) end function getPosDirs(p, dir) -- By MatheusMkalo return dir == 1 and {x=p.x-1, y=p.y, z=p.z} or dir == 2 and {x=p.x-1, y=p.y+1, z=p.z} or dir == 3 and {x=p.x, y=p.y+1, z=p.z} or dir == 4 and {x=p.x+1, y=p.y+1, z=p.z} or dir == 5 and {x=p.x+1, y=p.y, z=p.z} or dir == 6 and {x=p.x+1, y=p.y-1, z=p.z} or dir == 7 and {x=p.x, y=p.y-1, z=p.z} or dir == 8 and {x=p.x-1, y=p.y-1, z=p.z} end function doItem(pos,a,d)-- Script by mock doCreateTile(460,pos) pos.stackpos = 0 local c = getTileThingByPos(pos) doItemSetAttribute(c.uid, "aid", a) end function getDescription(uid) for i,x in pairs(getItemDescriptions(uid)) do if i == "special" then return x end end end function findLetter(string, letter) for i = 1, #string do if string:sub(i, i) == letter then return i end end end function isWalkable(pos, creature, proj, pz)-- by Nord if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid == 0 then return false end if getTopCreature(pos).uid > 0 and creature then return false end if getTileInfo(pos).protection and pz then return false, true end local n = not proj and 3 or 2 for i = 0, 255 do pos.stackpos = i local tile = getTileThingByPos(pos) if tile.itemid ~= 0 and not isCreature(tile.uid) then if hasProperty(tile.uid, n) or hasProperty(tile.uid, 7) then return false end end end return true end function getPosDirs(p, dir) return dir == 1 and {x=p.x-1, y=p.y, z=p.z} or dir == 2 and {x=p.x-1, y=p.y+1, z=p.z} or dir == 3 and {x=p.x, y=p.y+1, z=p.z} or dir == 4 and {x=p.x+1, y=p.y+1, z=p.z} or dir == 5 and {x=p.x+1, y=p.y, z=p.z} or dir == 6 and {x=p.x+1, y=p.y-1, z=p.z} or dir == 7 and {x=p.x, y=p.y-1, z=p.z} or dir == 8 and {x=p.x-1, y=p.y-1, z=p.z} end function canSummon(cid) local pos = getCreaturePosition(cid) local state = false for i = 1, 8 do if isWalkable(getPosDirs(getCreaturePosition(cid), i)) then state = true end end return state end function isPlayerSummon(cid, uid) if getCreatureMaster(uid) == cid then return TRUE end return FALSE end function getSummonLifes(cid) for _,x in pairs(getCreatureSummons(cid)) do return getCreatureHealth(x), getCreatureMaxHealth(x) end end function getItemsInContainerById(container, itemid) -- Function By Kydrai local items = {} if isContainer(container) and getContainerSize(container) > 0 then for slot=0, (getContainerSize(container)-1) do local item = getContainerItem(container, slot) if isContainer(item.uid) then local itemsbag = getItemsInContainerById(item.uid, itemid) for i=0, #itemsbag do table.insert(items, itemsbag[i]) end else if itemid == item.itemid then table.insert(items, item.uid) end end end end return items end function addPokeball(cid, pokename, maxh) local s = doPlayerAddItem(cid, pokein) local s = doPlayerAddItem(cid, pokeinultra) doItemSetAttribute(s, "poke", "This is "..pokename.."'s pokeball. HP = ["..maxh.."/"..maxh.."]") doItemSetAttribute(s, "name", "" .. pokename .. " Poke Ball") end function getPokeOutLive(cid) dat = {} for slot = CONST_SLOT_FIRST, CONST_SLOT_LAST do local item = getPlayerSlotItem(cid, slot) if isContainer(item.uid) then local items = getItemsInContainerById(item.uid, pokeout) local items = getItemsInContainerById(item.uid, pokeoutultra) for _, ui in pairs(items) do if getItemAttribute(ui, "poke"):sub(#getItemAttribute(ui, "poke")) == "." then table.insert(dat, ui) end end end if item.itemid == pokeout then if getItemAttribute(item.uid, "poke"):sub(#getItemAttribute(item.uid, "poke")) == "." then table.insert(dat, item.uid) end end if item.itemid == pokeoutultra then if getItemAttribute(item.uid, "poke"):sub(#getItemAttribute(item.uid, "poke")) == "." then table.insert(dat, item.uid) end end end return dat end
  • Quem Está Navegando   0 membros estão online

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