Eu ia usar no projeto, + não cabei gostando, tai pa galera intão
MELHOR BAIXAR A DEMO !!
Se tiver algo errado pq fiz na pressa
Substitua o script : [WIN] Hud
por
Crie um novo script
Vá em [SC] Net Rmxp Hud e adicione no começo (linhas 15)
procure @janela_base e substitua tudo por isso
Adicione tambem logo abaixo do script anterior
Falto adicionar os icons (Procure @icon_1.dispose) e em baixo ponha
Procure (@icon_1.update if @icon_1.in_area?) e adicione
Hotkeys no script q falto
ICONES NESCESSARIOS
Pasta Icons
(Falta os icones adicione em sua pasta de acordo com seus gosto)
Pasta Pictures
(Na demo vem com players online, substitua a HOTKEY da demo por essa que está no tutorial !)
DEMO : http://www.sendspace.com/file/5zctuw
Creditos:
Fabinhuu ;
Jonny D' Guetta
Marlos Gama
MELHOR BAIXAR A DEMO !!
Se tiver algo errado pq fiz na pressa
Substitua o script : [WIN] Hud
por
- Código:
#==============================================================================
# ** HUD
#------------------------------------------------------------------------------
# By Marlos Gama
# Modificado por Fabinhuu ; (GaaraxDl)
#------------------------------------------------------------------------------
class Hud < Window_Base
def initialize
super(-16,-16,300,280)#(320,350,600,600)
self.back_opacity = 120
self.contents = Bitmap.new(width - 32, height - 32)
self.windowskin = RPG::Cache.windowskin("Blank")
refresh
end
def update
super
refresh if something_changed?
end
def something_changed?
return true if @old_exp != @actor.now_exp
return true if @old_hp != @actor.hp
return true if @old_sp != @actor.sp
return true if @old_level != @actor.level
return true if @old_name != @actor.name
return false
end
def refresh
self.contents.clear
self.contents.font.color = Color.new(250, 0, 0)
@actor = $game_party.actors[0]
@old_exp = @actor.now_exp
@old_hp = @actor.hp
@old_sp = @actor.sp
@old_level = @actor.level
@old_name = @actor.name
self.contents.clear
self.contents.font.color = normal_color
hud3 = RPG::Cache.picture("Hud3")
hud1 = hud3.width
hud2 = hud3.height
hud4 = Rect.new(0,0,hud1,hud2)
self.contents.blt(0,0,hud3,hud4)
self.contents_opacity = 180
# Nome
self.contents.draw_text(5, 8, 132, 32, "#{@actor.name}")
rect = Rect.new(26, 11, self.contents.width + 3, 25)
self.contents.draw_text(49, 58, 132, 32, "#{@actor.level}")
rect = Rect.new(25, 71, self.contents.width + 3, 25)
self.contents.draw_text(5, 30, 100, 32, "#{$data_classes[$game_party.actors[0].class_id].name}")
# Hp
hpbar = RPG::Cache.picture("HP Bar")
hpbarwidth = hpbar.width * @actor.hp / @actor.maxhp
hpbarheight = hpbar.height
hpbar_rect = Rect.new(0,0,hpbarwidth,hpbarheight)
self.contents.blt(78,23,hpbar,hpbar_rect)
if $game_party.actors[0].level <= 21
self.contents.draw_text(100, 20, 132, 32, "#{@actor.hp}/#{@actor.maxhp}")
else
self.contents.draw_text(100, 20, 132, 32, "#{@actor.hp}/#{@actor.maxhp}")
end
# Sp
mpbar = RPG::Cache.picture("MP-2")
mpbarwidth = mpbar.width * @actor.sp / @actor.maxsp
mpbarheight = mpbar.height
mpbar_rect = Rect.new(0,0,mpbarwidth,mpbarheight)
self.contents.blt(78,44,mpbar,mpbar_rect)
if $game_party.actors[0].level <= 34
self.contents.draw_text(100, 42, 132, 32, "#{@actor.sp}/#{@actor.maxsp}")
else
self.contents.draw_text(100, 42, 132, 32, "#{@actor.sp}/#{@actor.maxsp}")
end
# EXP
if $game_party.actors[0].level != 99
xpbar = RPG::Cache.picture("Xp-2")
xpbarwidth = xpbar.width * @actor.now_exp / @actor.next_exp
xpbarheight = xpbar.height
xpbar_rect = Rect.new(0,0,xpbarwidth,xpbarheight)
self.contents.blt(66,74,xpbar,xpbar_rect)
self.contents.draw_text(100, 60, 132, 32, "#{@actor.now_exp}/#{@actor.next_exp}")
end
end
end
class Scene_Map
alias hud_main main
def main
@Hud = Hud.new
hud_main
@Hud.dispose
end
alias hud_update update
def update
hud_update
@Hud.update
end
end
class Game_Actor < Game_Battler
def now_exp
return @exp - @exp_list[@level]
end
def next_exp
return @exp_list[@level+1] > 0 ? @exp_list[@level+1] - @exp_list[@level] : 0
end
end
Crie um novo script
- Código:
#==============================================================================
# ** Hud 2
#------------------------------------------------------------------------------
# By Fabinhuu ; (GaaraxDl)
#==============================================================================
class Hude < Window_Base
def initialize
super(-18,-50,500,500)
self.contents = Bitmap.new(self.width-32, self.height-32)
self.back_opacity = 200
self.windowskin = RPG::Cache.windowskin("blank")
refresh
end
def refresh
self.contents.clear
@actor = $game_party.actors[0]
@old_exp = @actor.now_exp
@old_hp = @actor.hp
@old_sp = @actor.sp
@old_level = @actor.level
@old_name = @actor.name
hud3 = RPG::Cache.picture("Opçoes2")
hud1 = hud3.width
hud2 = hud3.height
hud4 = Rect.new(0,0,hud1,hud2)
self.contents.blt(0,33,hud3,hud4)
self.contents.draw_text(46, 30, 132, 32, "#{@actor.name}")
self.contents.draw_text(158, 29, 100, 32, "#{$data_classes[$game_party.actors[0].class_id].name}")
end
end
Vá em [SC] Net Rmxp Hud e adicione no começo (linhas 15)
- Código:
#Hud 2
@Huddd = Hude.new
@Huddd.visible = false
@Huddd.active = false
procure @janela_base e substitua tudo por isso
- Código:
@janela_base = Window_Base.new(10,-20,275,150)
@janela_base.windowskin = RPG::Cache.windowskin("Blank")
@janela_base.back_opacity = 100
$janela_base = @janela_base
@icon_1 = Icon_Map.new(@janela_base,"It1","It",161-10+8,41,["Inventário"],false) {$equip_w.refresh; $equip_w.visible = true; $equip_w.active = true; $item_w.visible = true; $item_w.active = true; $item_w.refresh; @janela_gold_w.visible = true; $janela_gold_w.refresh}#{$distribuir.visible = false; $distribuir.active = false;$skill.visible = false; $skill.active = false;$scene = Scene_Equip.new}#; $skill_b.visible = false; $skill_b.active = false}
@icon_2 = Icon_Map.new(@janela_base,"Fechar2","Gu",230-38+10,22,["Minimizar "],false) { if @Hud.active == true;
@Hud.refresh;@Hud.visible = false; @Hud.active = false
@cooo.refresh;@cooo.visible = false; @cooo.active = false
@janela_base.visible = false
@janela_base.visible = false
@Huddd.visible = true
@Huddd.visible = true
@icon_1.visible = false
@icon_1.active = false
@icon_3.visible = false
@icon_3.active = false
@icon_4.visible = false
@icon_4.active = false
@icon_5.visible = false
@icon_5.active = false
@icon_6.visible = false
@icon_6.active = false
@icon_7.visible = false
@icon_7.active = false
else
if @Hud.active == false;
@Hud.refresh;@Hud.visible = true; @Hud.active = true
@cooo.refresh;@cooo.visible = true; @cooo.active = true
@janela_base.visible = true
@janela_base.visible = true
@Huddd.visible = false
@Huddd.visible = false
@icon_1.visible = true
@icon_1.active = true
@icon_3.visible = true
@icon_3.active = true
@icon_4.visible = true
@icon_4.active = true
@icon_5.visible = true
@icon_5.active = true
@icon_6.visible = true
@icon_6.active = true
@icon_7.visible = true
@icon_7.active = true
end
end
}
@icon_3 = Icon_Map.new(@janela_base,"It4","Ha",200-20+8,39,["Habilidades"],false) {$skill.refresh; $skill.visible = true; $skill.active = true} #$skill_b.visible = true; $skill_b.active = true}
@icon_4 = Icon_Map.new(@janela_base,"Item 2","St",200-15,67,["Status "],false) {@status.refresh;@status.visible = true; @status.active = true}
@icon_5 = Icon_Map.new(@janela_base,"Item 5","Gu",186-38+10,67,["Guild "],false) {open_guild}
@icon_6 = Icon_Map.new(@janela_base,"Quest","Qu",167-10,90,["Quests "],false) {@quest_list.refresh; @quest_list.visible = true; @quest_list.active = true}
@icon_7 = Icon_Map.new(@janela_base,"riddle","Jo",198-20+8,90,["Opçoes "],false) {$option.visible = true; $option.active = true; $option.refresh}
Adicione tambem logo abaixo do script anterior
- Código:
#Window Title Option
$option = Window_Option.new(480,245,150,150)
$option.visible = false
$option.active = false
$option.dragable = true
$option.closable = true
@option1 = Button.new($option,20, 75, "Personagem") {salvar;$option.visible = false; $option.active = false; Audio.bgm_fade(800); Audio.bgs_fade(800); Audio.me_fade(800); $scene = Scene_Title.new}
@option2 = Button.new($option,25, 55, "Exit Game") {salvar; Audio.bgm_fade(800); Audio.bgs_fade(800); Audio.me_fade(800); $scene = nil}
Falto adicionar os icons (Procure @icon_1.dispose) e em baixo ponha
- Código:
@icon_2.dispose
@icon_7.dispose
Procure (@icon_1.update if @icon_1.in_area?) e adicione
- Código:
@icon_2.update if @icon_2.in_area?
@icon_7.update if @icon_7.in_area?
Hotkeys no script q falto
- Código:
#----------------------------------------------------------------
# ** Comandos en el Mapa **
#----------------------------------------------------------------
# Autor : Jonny D' Guetta
# Creditos : Marlos Gama NP Master 3.0
# Web : http://aldeiarpgbr.forumeiros.com/
# msg : jonny_teens@live.com.mx
# Creado : 15/05/2011
# Modificado : 23/05/2011
# Modoficado por Fabinhuu ;
#----------------------------------------------------------------
class Scene_Map
#-------------------------------------------------------------------------
alias scene_map_added_rewrite_system_update_systems update_systems
#--------------------------------------------------------------------------
# * Update Systems
#--------------------------------------------------------------------------
def update_systems
if Network::Main.group == 'vip'
if Input.trigger?(Input::F7)# Teleport
$teleport.open_teleporte
end
end
if Network::Main.group == 'admin'
if Input.trigger?(Input::F7)# Teleport
$teleport.open_teleporte
end
end
if Input.trigger?(Input::Letters["G"])#GUILD
if @box.active == false
if $painel_adm.active == false
open_guild
end
end
end
if Input.trigger?(Input::Letters["I"])# inventario
if @box.active == false
if $painel_adm.active == false
$equip_w.refresh;
if $equip_w.active == true;
$equip_w.refresh; $equip_w.visible = false; $equip_w.active = false;
$item_w.visible = false; $item_w.active = false; $item_w.refresh;
@janela_gold_w.visible = false; $janela_gold_w.refresh
else
if $equip_w.active == false;
$equip_w.refresh; $equip_w.visible = true; $equip_w.active = true;
$item_w.visible = true; $item_w.active = true; $item_w.refresh;
@janela_gold_w.visible = true; $janela_gold_w.refresh
end
end
end
end
end
if Input.trigger?(Input::Letters["S"])# status
if @box.active == false
if $painel_adm.active == false
if $status.active == true;
@status.refresh;@status.visible = false; @status.active = false
else
if $status.active == false;
@status.refresh;@status.visible = true; @status.active = true
end
end
end
end
end
if Input.triggerd?(Input::Fkeys[6])
if @Hud.active == true;
@Hud.refresh;@Hud.visible = false; @Hud.active = false
@cooo.refresh;@cooo.visible = false; @cooo.active = false
@janela_base.visible = false
@janela_base.visible = false
@Huddd.visible = true
@Huddd.visible = true
@icon_1.visible = false
@icon_1.active = false
@icon_2.visible = false
@icon_2.active = false
@icon_3.visible = false
@icon_3.active = false
@icon_4.visible = false
@icon_4.active = false
@icon_5.visible = false
@icon_5.active = false
@icon_6.visible = false
@icon_6.active = false
@icon_7.visible = false
@icon_7.active = false
else
if @Hud.active == false;
@Hud.refresh;@Hud.visible = true; @Hud.active = true
@cooo.refresh;@cooo.visible = true; @cooo.active = true
@janela_base.visible = true
@janela_base.visible = true
@Huddd.visible = false
@Huddd.visible = false
@icon_1.visible = true
@icon_1.active = true
@icon_2.visible = true
@icon_2.active = true
@icon_3.visible = true
@icon_3.active = true
@icon_4.visible = true
@icon_4.active = true
@icon_5.visible = true
@icon_5.active = true
@icon_6.visible = true
@icon_6.active = true
@icon_7.visible = true
@icon_7.active = true
end
end
end
if Input.trigger?(Input::Letters["H"])# Skill
if $painel_adm.active == false
if @box.active == false
if $skill.active == true;
$skill.refresh; $skill.visible = false; $skill.active = false
else
if $skill.active == false;
$skill.refresh; $skill.visible = true; $skill.active = true
end
end
end
end
end
if Input.trigger?(Input::Letters["Q"])# Player
if $painel_adm.active == false
if @box.active == false
if @quest_list.active == true;
@quest_list.refresh; @quest_list.visible = false; @quest_list.active = false
else
if @quest_list.active == false;
@quest_list.refresh; @quest_list.visible = true; @quest_list.active = true
end
end
end
end
end
scene_map_added_rewrite_system_update_systems
end
end
ICONES NESCESSARIOS
Pasta Icons
(Falta os icones adicione em sua pasta de acordo com seus gosto)
Pasta Pictures
(Na demo vem com players online, substitua a HOTKEY da demo por essa que está no tutorial !)
DEMO : http://www.sendspace.com/file/5zctuw
Creditos:
Fabinhuu ;
Jonny D' Guetta
Marlos Gama
Última edição por Faabinhuu ; em Sáb Jun 25, 2011 10:10 am, editado 10 vez(es)