Ir para conteúdo

rodrigokingh

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Gostei
    rodrigokingh recebeu reputação de matheus Salgueiro em Passiva Poke Stage   
    voce pode fazer isso em config.lua
    Exemplo:
    {move1 = {name = "Taclke", level = 5, cd = 10, dist = 1, target = 0, f = 50, t = "normal"},
     
    f = 50 e a forca do ataque se quizer deixar mais forte almente o numero caso queira enfraquecer abaixe o numero
    Tambem funciona com as passivas.

  2. Gostei
    rodrigokingh recebeu reputação de matheus Salgueiro em Passiva Poke Stage   
    em config.lua
     
  3. Gostei
    rodrigokingh deu reputação a zipter98 em (Resolvido)[PEDIDO] Máquina de helds   
    Foi mal pela demora, fiquei sem internet quase o dia todo.
    Em data/XML/channels.xml, você deverá criar canais relativos a cada opção de troca, seguindo o modelo:
    <channel id="ID_do_canal" name="Nome_do_canal"> <vocation id="10"/> </channel> Exemplos:
    <channel id="22" name="20 Devoted Token (Tier 1-2)"> <vocation id="10"/> </channel> <channel id="23" name="70 Mighty Token (Tier 1-3)"> <vocation id="10"/> </channel> Depois, na mesma pasta, vocations.xml:
    <vocation id="10" name="Held Machine" description="a pokemon trainer" needpremium="0" gaincap="0" gainhp="15" gainmana="0" gainhpticks="2" gainhpamount="3" gainmanaticks="0" gainmanaamount="0" manamultiplier="1.1" attackspeed="-1" soulmax="251" gainsoulticks="-1" fromvoc="1"> <formula meleeDamage="0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.0" club="1.0" sword="1.0" axe="1.0" distance="1.0" shielding="1.0" fishing="3.0" experience="1.0"/> </vocation> data/actions/scripts, código da máquina de troca:
    function onUse(cid) doPlayerSetVocation(cid, 10) openChannelDialog(cid) return true end data/creaturescripts/scripts:
    local trade_options = { --[channel_id] = {token = {token_itemid, amount}, results = {held_itemid, held_itemid, held_itemid, ...}}, } function onJoinChannel(cid, channelId, users, isTv) local option = trade_options[channelId] if not option then return false end doPlayerSetVocation(cid, 1) if doPlayerRemoveItem(cid, option.token[1], option.token[2]) then local result = option.results[math.random(#option.results)] doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "In trade of "..option.token[2].."x "..getItemNameById(option.token[1])..", you received: "..getItemNameById(result)..".") doPlayerAddItem(cid, result, 1) else doPlayerSendTextMessage(cid, 27, "You do not have "..option.token[2].."x "..getItemNameById(option.token[1])..".") end return false end Configure na tabela trade_options as opções de troca, seguindo o modelo:
    [ID_do_canal] = {token = {ID_do_token, quantidade}, results = {IDs_dos_helds}}, Tag:
    <event type="joinchannel" name="Held_Machine" event="script" value="nome_do_arquivo.lua"/> Em login.lua:
    registerCreatureEvent(cid, "Held_Machine")  
  4. Gostei
    rodrigokingh deu reputação a Sexys em (Resolvido)[PEDIDO] Máquina de helds   
    nao entedi muito bem mais ta top
     
  5. Gostei
    rodrigokingh deu reputação a aleknnto em NPTO, Convoca os Melhores   
    Seguinte Pessoal Venho lhes falar do NPTO,Novamente, Uma Atualizaçao do Antigo Post...  Os Sistemas do Servidor sao as Seguintes :
     
    * Clan System ( Contando com Level do Clan e os Shinys dos seus clans )
    * Bike System
    * Pokedex Estilo Pxg
    * Sprites do Novo PXG ( 2015, Contando com as Remakes,CP,Market, Todas as Sprites )
    * Novas Balls
    * System de DUEL
    * Arenas 
    * TV System e Boost ( Perfeitos )
    * Icon System
    * OUTLANDS
    * Novas Quests
    * Pokemons Ate 4 Geraçao COMPLETA
    * E Outros Sistemas Diversos para seu divertimento !
     
    Recruto Spriter e Scripter, Equipe ja Conta com HOSTER,WEBMASTER,MAPPER, Entrar pra equipe add skype : alekjsrk !
     

  6. Gostei
    rodrigokingh deu reputação a Wakon em (Resolvido)[Pedido] Comando !tp   
    Em "Data/talkactions/scripts", arquivo.lua:
    function onSay(cid, words) if getCreatureCondition(cid, CONDITION_INFIGHT) == false then doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_TELEPORT) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'Você não pode teleportar em batalha.') end return true end Em "Data/talkactions", no arquivo talkactions.xml:
    <talkaction words="!tpTemplo" event="script" value="tpTemplo.lua"/>  

Informação Importante

Confirmação de Termo