Aldeia RPG

Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

Suporte ao desenvolvimento de jogos


3 participantes

    Como colocar Hotkeys

    Rslipknotr
    Rslipknotr
    Semi-Experiente
    Semi-Experiente


    Mensagens : 122
    Créditos : 6

    Como colocar Hotkeys Empty Como colocar Hotkeys

    Mensagem por Rslipknotr Sáb Mar 03, 2012 4:00 pm

    queria saber como colocar 7 Hotkeys no NP master 3 do marlos


    _________________
    Spoiler:

    Como colocar Hotkeys Batalha
    Cada erro e uma nova chance de dar certo. Rslipknotr

    Como colocar Hotkeys Scaled.php?server=819&filename=signlasse
    Spoiler:
    Satheios
    Satheios
    Aldeia Friend
    Aldeia Friend


    Medalhas : Como colocar Hotkeys Trophy12Como colocar Hotkeys IlSfE
    Mensagens : 1248
    Créditos : 306

    Como colocar Hotkeys Empty Re: Como colocar Hotkeys

    Mensagem por Satheios Sáb Mar 03, 2012 9:21 pm

    Olha cara, aqui eu só segui os módulos e adicionei mais 1 para a tecla 7:
    Código:

    #==============================================================================
    # ** Window_Hotkey
    #------------------------------------------------------------------------------
    #  By Valentine
    #==============================================================================

    class Window_HotKey < Window_Base

      def initialize
        super(360+50, 418+10, 272,72)#(394, 418, 246,62)
        self.contents = Bitmap.new(lammer - 32, height - 32)
        self.windowskin = RPG::Cache.windowskin("Blank")
        refresh
      end

      def refresh
          self.contents.clear
          hud3 = RPG::Cache.picture("Hotkey")
          hud1 = hud3.lammer
          hud2 = hud3.height
          hud4 = Rect.new(0,0,hud1,hud2)
          self.contents.blt(0,0,hud3,hud4)
          self.contents.font.size = 12
          self.contents.font.color = Color.new(100, 100, 100)#system_color
          #self.contents.draw_text(180, -10, self.lammer-64, 32, "Atalhos")
          count = 0
          $ABS.skill_keys.each {|key, id|
            next if id == nil
            x = (count*29)
            y = -5
            skill = $data_skills[id]
            next if skill.nil?
            icon = RPG::Cache.icon(skill.icon_name)
            self.contents.blt(x, y+7, icon, Rect.new(0, 0, 200, 100))
            n = Keys.name?(key)
            count += 1
          }
        end
       
    def tirar_skill
      if Input.pressed?(Input::Mouse_Right) and in_area?([16, 16,26, 26])
      $ABS.skill_keys[Input::Numberkeys[1]] = 82
      $hotkey_2.refresh
      #Num. 2
      elsif Input.pressed?(Input::Mouse_Right) and in_area?([16+28, 16,26, 26])
      $ABS.skill_keys[Input::Numberkeys[2]] = 82
      $hotkey_2.refresh
      #Num. 3
      elsif Input.pressed?(Input::Mouse_Right) and in_area?([16+28+28, 16,26, 26])
      $ABS.skill_keys[Input::Numberkeys[3]] = 82
      $hotkey_2.refresh
      #Num. 4
      elsif Input.pressed?(Input::Mouse_Right) and in_area?([16+28+28+28, 16,26, 26])
      $ABS.skill_keys[Input::Numberkeys[4]] = 82
      $hotkey_2.refresh
      #Num. 5
      elsif Input.pressed?(Input::Mouse_Right) and in_area?([16+28+28+28+28, 16,26, 26])
      $ABS.skill_keys[Input::Numberkeys[5]] = 82
      $hotkey_2.refresh
      #Num. 6
      elsif Input.pressed?(Input::Mouse_Right)and in_area?([16+28+28+28+28+28, 16,26, 26])
      $ABS.skill_keys[Input::Numberkeys[6]] = 82
      $hotkey_2.refresh
      #Num. 7
      elsif Input.pressed?(Input::Mouse_Right)and in_area?([16+28+28+28+28+28+28, 16,26, 26])
      $ABS.skill_keys[Input::Numberkeys[7]] = 82
      $hotkey_2.refresh
     end
     
    end
       
       
       
    def select_skill
      if $sem_skill == true
       
      if !Input.pressed?(Input::Mouse_Left) and $skill.visible == true and in_area?([16, 16,26, 26]) and $pegando_skill != false
      $scene.add_skill(1)
      $mouse_iconfor = "arrow"
      $game_temp.atualizar_mouse = true
      $pegando_skill = false
      $hotkey_2.refresh
      elsif !Input.pressed?(Input::Mouse_Left) and $skill.visible == true and in_area?([16+28, 16,26, 26]) and $pegando_skill != false
      $scene.add_skill(2)
      $mouse_iconfor = "arrow"
      $game_temp.atualizar_mouse = true
      $pegando_skill = false
      $hotkey_2.refresh
      elsif !Input.pressed?(Input::Mouse_Left) and $skill.visible == true and in_area?([16+28+28, 16,26, 26]) and $pegando_skill != false
      $scene.add_skill(3)
      $mouse_iconfor = "arrow"
      $game_temp.atualizar_mouse = true
      $pegando_skill = false
      $hotkey_2.refresh
      elsif !Input.pressed?(Input::Mouse_Left) and $skill.visible == true and in_area?([16+28+28+28, 16,26, 26]) and $pegando_skill != false
      $scene.add_skill(4)
      $mouse_iconfor = "arrow"
      $game_temp.atualizar_mouse = true
      $pegando_skill = false
      $hotkey_2.refresh
      elsif !Input.pressed?(Input::Mouse_Left) and $skill.visible == true and in_area?([16+28+28+28+28, 16,26, 26]) and $pegando_skill != false
      $scene.add_skill(5)
      $mouse_iconfor = "arrow"
      $game_temp.atualizar_mouse = true
      $pegando_skill = false
      $hotkey_2.refresh
      elsif !Input.pressed?(Input::Mouse_Left) and $skill.visible == true and in_area?([16+28+28+28+28+28, 16,26, 26]) and $pegando_skill != false
      $scene.add_skill(6)
      $mouse_iconfor = "arrow"
      $game_temp.atualizar_mouse = true
      $pegando_skill = false
      $hotkey_2.refresh
      elsif !Input.pressed?(Input::Mouse_Left) and $skill.visible == true and in_area?([16, 16,26, 26]) and $pegando_skill != false
      $scene.add_skill(7)
      $mouse_iconfor = "arrow"
      $game_temp.atualizar_mouse = true
      $pegando_skill = false
      $hotkey_2.refresh
     end
     
    end
       
    end
       
      end
     
    class Scene_Map
      alias hotkey_main main
      def main
        @hotkey = Window_HotKey.new
        $hotkey_2 = @hotkey
        hotkey_main
        @hotkey.dispose
      end
      alias hotkey_update update
      def update
        hotkey_update
        if @hotkey.in_area?
        @hotkey.tirar_skill
        end
      end
    end
    Eu não testei com a imagem, nenhum bug ocorreu..
    Tente criar 1 hotkey com 7 numeros e tentar Successful

    Espero ter ajudado!


    _________________



    Ninguém pode ser perfeito, mas todos podem ser melhores.
    Visite o meu projeto, Tales of a Kingdom e prepare-se para um novo mundo!




    Rslipknotr
    Rslipknotr
    Semi-Experiente
    Semi-Experiente


    Mensagens : 122
    Créditos : 6

    Como colocar Hotkeys Empty Re: Como colocar Hotkeys

    Mensagem por Rslipknotr Dom Mar 04, 2012 9:26 am

    vlw 1 cred


    _________________
    Spoiler:

    Como colocar Hotkeys Batalha
    Cada erro e uma nova chance de dar certo. Rslipknotr

    Como colocar Hotkeys Scaled.php?server=819&filename=signlasse
    Spoiler:
    Llroens
    Llroens
    Novato
    Novato


    Mensagens : 1
    Créditos : 0

    Como colocar Hotkeys Empty Re: Como colocar Hotkeys

    Mensagem por Llroens Qui Mar 14, 2013 2:04 pm

    legal cara vai me ajudar muito +1cred

    Conteúdo patrocinado


    Como colocar Hotkeys Empty Re: Como colocar Hotkeys

    Mensagem por Conteúdo patrocinado


      Data/hora atual: Qui Mar 28, 2024 2:49 pm