queria saber como colocar 7 Hotkeys no NP master 3 do marlos
3 participantes
Como colocar Hotkeys
Rslipknotr- Semi-Experiente
- Mensagens : 122
Créditos : 6
- Mensagem nº1
Como colocar Hotkeys
_________________
- Spoiler:
Cada erro e uma nova chance de dar certo. Rslipknotr
- Spoiler:
Satheios- Aldeia Friend
- Medalhas :
Mensagens : 1248
Créditos : 306
- Mensagem nº2
Re: Como colocar Hotkeys
Olha cara, aqui eu só segui os módulos e adicionei mais 1 para a tecla 7:
Tente criar 1 hotkey com 7 numeros e tentar
Espero ter ajudado!
- 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
Tente criar 1 hotkey com 7 numeros e tentar
Espero ter ajudado!
_________________
Ninguém pode ser perfeito, mas todos podem ser melhores.
Rslipknotr- Semi-Experiente
- Mensagens : 122
Créditos : 6
- Mensagem nº3
Re: Como colocar Hotkeys
vlw 1 cred
_________________
- Spoiler:
Cada erro e uma nova chance de dar certo. Rslipknotr
- Spoiler:
Llroens- Novato
- Mensagens : 1
Créditos : 0
- Mensagem nº4
Re: Como colocar Hotkeys
legal cara vai me ajudar muito +1cred