Buenos dias amigos, e estado un poco aburrido y tome el netplay para crear este Script.
Hoy les traigo un nuevo Script de como crear un Objetos Excellent/Ancient/Divine/Quest...
Empesemos.
Objetos :
Excellent
Ancient
Divine
Absolute
Quest
Este tutorial funciona para Armas/Armaduras/Objetos
Como pueden ver el Script tiene estas opciones, ustedes pueden configurar asu gusto!
Excellent = "Excellent"
COLOR_EXCELLENT = Color.new(65,255,65)
Ancient = "Ancient"
COLOR_ANCIENT = Color.new(0,255,0,255)
Divine = "Divide"
COLOR_DIVINE = Color.new(255,-255,255,255)
Absolute = "Absolute"
COLOR_ABSOLUTE = Color.new(255,-50,-255,255)
Quest = "Quest"
COLOR_QUEST = Color.new(255,255,0,255)
Se me olvidava tienen que tener esta imagen en su carpeta de su juego,
Nombrala como : anc_bar
tutoria :
1º - Ir ala bace de Datos do su jogo Arama/Armadura/Item's
2º - Chamarlo por exemplo : Excellent/Ancient/Divine/Quest
Imgns necesarias :
Creditos :
Jonny - Creador del Scritp
Hoy les traigo un nuevo Script de como crear un Objetos Excellent/Ancient/Divine/Quest...
Empesemos.
Objetos :
Excellent
Ancient
Divine
Absolute
Quest
Este tutorial funciona para Armas/Armaduras/Objetos
Como pueden ver el Script tiene estas opciones, ustedes pueden configurar asu gusto!
Excellent = "Excellent"
COLOR_EXCELLENT = Color.new(65,255,65)
Ancient = "Ancient"
COLOR_ANCIENT = Color.new(0,255,0,255)
Divine = "Divide"
COLOR_DIVINE = Color.new(255,-255,255,255)
Absolute = "Absolute"
COLOR_ABSOLUTE = Color.new(255,-50,-255,255)
Quest = "Quest"
COLOR_QUEST = Color.new(255,255,0,255)
- Spoiler:
- Código:
#==============================================================================
# ** Window Help Item **
#------------------------------------------------------------------------------
# By Marlos Gama
# By Jonny / Kakashy Hatake
# Creditos : Jonny /Kakashy Hatake end Marlos Gama
# Creado : 10/06/2011
# Dúvidas? E-MAIL-ME: jonny_teens@live.com.mx
# http://fanmakers.guildmmorpg.com/
#==============================================================================
Excellent = "Excellent"
COLOR_EXCELLENT = Color.new(65,255,65)
Ancient = "Ancient"
COLOR_ANCIENT = Color.new(0,255,0,255)
Divine = "Divide"
COLOR_DIVINE = Color.new(255,-255,255,255)
Absolute = "Absolute"
COLOR_ABSOLUTE = Color.new(255,-50,-255,255)
Quest = "Quest"
COLOR_QUEST = Color.new(255,255,0,255)
class Window_Help2 < Window_Base
def initialize(x,y,a,b)
super(x,y,a,b)
self.contents = Bitmap.new(self.width-32, self.height-32)
self.windowskin = RPG::Cache.windowskin("Skin-Help")
self.back_opacity = 200
@dragable = true
@closable = true
self.z = 9999999
actor = 0
refresh
end
def refresh
self.contents.clear
if $help_trade == true
@item = $trade_w.item
end
if $help_loja == true
@item = $loja_w.item
elsif $help_loja != true and $help_trade != true
@item = $item_w.item
end
@actor = $game_party.actors[0]
if @item == nil
else
bitmap = RPG::Cache.icon(@item.icon_name)
self.contents.blt(0, 0, bitmap, Rect.new(0, 0, 24, 24), opacity)
self.contents.font.color = Color.new(255,255,255)
weapon = $data_weapons
armor = $data_armors
item = $data_items
if weapon or armor or item != nil
#===================================================================
#
#
#
#===================================================================
if @item.is_a?(RPG::Weapon) or @item.is_a?(RPG::Armor) and @item.name.include?(Excellent)
self.contents.font.color = COLOR_EXCELLENT
self.contents.draw_text(34, -10, 204, 32, @item.name, 0)
#===================================================================
#
#
#
#===================================================================
elsif @item.is_a?(RPG::Weapon) or @item.is_a?(RPG::Armor) and @item.name.include?(Ancient)
self.contents.blt(0,0, RPG::Cache.picture("anc_bar"), Rect.new(0,0,192,192))
self.contents.font.color = COLOR_ANCIENT
self.contents.draw_text(34, -10, 204, 32, @item.name, 0)
#===================================================================
#
#
#
#===================================================================
elsif @item.is_a?(RPG::Weapon) or @item.is_a?(RPG::Armor) and @item.name.include?(Divine)
self.contents.font.color = COLOR_DIVINE
self.contents.draw_text(34, -10, 204, 32, @item.name, 0)
#===================================================================
#
#
#
#===================================================================
elsif @item.is_a?(RPG::Weapon) or @item.is_a?(RPG::Armor) and @item.name.include?(Absolute)
self.contents.font.color = COLOR_ABSOLUTE
self.contents.draw_text(34, -10, 204, 32, @item.name, 0)
#===================================================================
#
#
#
#===================================================================
elsif @item.is_a?(RPG::Weapon) or @item.is_a?(RPG::Armor) or @item.is_a?(RPG::Item)and @item.name.include?(Quest)
self.contents.font.color = COLOR_QUEST
self.contents.draw_text(34, -10, 204, 32, @item.name, 0)
#===================================================================
#
# Objetos Normales =)
#
#===================================================================
elsif
self.contents.draw_text(34, -10, 204, 32, @item.name, 0)
self.contents.font.color = Color.new(0,0,0)
end
end
self.contents.font.color = Color.new(255,255,255)
self.contents.draw_text(34, 10, 400, 32, @item.description.to_s, 0)
if @item.is_a?(RPG::Armor)
self.contents.draw_text(4, 22, 400, 32, "Atk: " + $data_armors[@item.id].str_plus.to_s, 0)
self.contents.draw_text(4, 37, 400, 32, "Def: " + $data_armors[@item.id].dex_plus.to_s, 0)
self.contents.draw_text(4, 52, 400, 32, "Int: " + $data_armors[@item.id].int_plus.to_s, 0)
self.contents.draw_text(4, 67, 400, 32, "Agi: " + $data_armors[@item.id].agi_plus.to_s, 0)
end
if @item.is_a?(RPG::Item)
if $loja == true
if $help_loja == true
self.contents.draw_text(4, 162, 400, 32, "Precio: "+@item.price.to_s, 0)
else
if @item.id != Item_Ouro::Item_Id.to_i
self.contents.draw_text(4, 162, 400, 32, "Precio: "+(@item.price/2).to_s, 0)
end
end
end
end
if @item.is_a?(RPG::Weapon)
self.contents.draw_text(4, 22, 400, 32, "Str: " + $data_weapons[@item.id].str_plus.to_s, 0)
self.contents.draw_text(4, 37, 400, 32, "Def: " + $data_weapons[@item.id].dex_plus.to_s, 0)
self.contents.draw_text(4, 52, 400, 32, "Int: " + $data_weapons[@item.id].int_plus.to_s, 0)
self.contents.draw_text(4, 67, 400, 32, "Agi: " + $data_weapons[@item.id].agi_plus.to_s, 0)
self.contents.draw_text(4, 82, 400, 32, "Daño: " + $data_weapons[@item.id].atk.to_s, 0)
weapon_set = $data_classes[@actor.class_id].weapon_set
if weapon_set.include?(@item.id)
@resposta = "Puede"
self.contents.font.color = Color.new(65,255,65)
else
@resposta = "No puede"
self.contents.font.color = Color.new(255,43,43)
end
rect = Rect.new(-3+2, 97, self.contents.width + 3, 32)
self.contents.draw_text(rect, "#{@resposta} ser equipado por", 1)
rect2 = Rect.new(4, 110, self.contents.width - 8, 32)
self.contents.draw_text(rect2, "#{$data_classes[$game_party.actors[0].class_id].name}", 1)
self.contents.font.color = Color.new(255,255,255)
if $loja == true
if $help_loja == true
self.contents.draw_text(4, 140, 400, 32, "Precio: "+@item.price.to_s, 0)
else
self.contents.draw_text(4, 140, 400, 32, "Precio: "+(@item.price/2).to_s, 0)
end
end
elsif @item.is_a?(RPG::Armor)
armor_set = $data_classes[@actor.class_id].armor_set
if armor_set.include?(@item.id)
@resposta = "Puede"
self.contents.font.color = Color.new(65,255,65)
else
@resposta = "No puede"
self.contents.font.color = Color.new(255,43,43)
end
rect = Rect.new(-3+2, 87, self.contents.width + 3, 32)
self.contents.draw_text(rect, "#{@resposta} ser equipado por", 1)
rect2 = Rect.new(4, 100, self.contents.width - 8, 32)
self.contents.draw_text(rect2, "#{$data_classes[$game_party.actors[0].class_id].name}", 1)
self.contents.font.color = Color.new(255,255,255)
if $loja == true
if $help_loja == true
self.contents.draw_text(80, 0, 400, 32, "Precio: "+@item.price.to_s, 0)
else
self.contents.draw_text(80, 0, 400, 32, "Precio: "+(@item.price/2).to_s, 0)
end
end
end
end
end
end
Se me olvidava tienen que tener esta imagen en su carpeta de su juego,
Nombrala como : anc_bar
tutoria :
1º - Ir ala bace de Datos do su jogo Arama/Armadura/Item's
2º - Chamarlo por exemplo : Excellent/Ancient/Divine/Quest
Imgns necesarias :
Creditos :
Jonny - Creador del Scritp
Última edição por Jonny em Ter Mar 12, 2013 10:14 pm, editado 1 vez(es)