Introdução
Esse e um simples sistemas que fabinhu me ajudou e muito a fazer a maioria do sistema e dele, então creditos a ele também.
Screnshot
script:
subistitua a scene_conect1 por essa scene_conect 1
depois va no script user edit e subistitua isso
#----------------------Ativar Scene_Connect---------------------
ACTIVE_SCENE_CONNECT = true
#---------------------------------------------------------------
por isso
#----------------------Ativar Scene_Connect---------------------
ACTIVE_SCENE_CONNECT = true
#---------------------------------------------------------------
#---------------Modelo da Scene Connect (De 1 a 2)--------------
SC_CONNECT = 1
#---------------------------------------------------------------
e adicione esse script em cima do netplay
e coloque esta imagem, na pasta title e nomei ela como Regras
Creditos
Ao Fabinhuuu primeiramente sem ele eu não ia saber oque fazer
e pra mim
Esse e um simples sistemas que fabinhu me ajudou e muito a fazer a maioria do sistema e dele, então creditos a ele também.
Screnshot
- Spoiler:
script:
subistitua a scene_conect1 por essa scene_conect 1
- Spoiler:
- #==============================================================================
# ** Scene_Connect_Ultimate **
#------------------------------------------------------------------------------
# Author Jonny D' Guetta
# Version 1.5
# Date 10/04/2011
#==============================================================================
#------------------------------------------------------------------------------
# * SDK Log Script
#------------------------------------------------------------------------------
SDK.log('Scene_Connect', 'Me™ and Shark_Tooth', 2, '2006-03-04')
#------------------------------------------------------------------------------
# * Begin SDK Enable Test
#------------------------------------------------------------------------------
if SDK.state('Scene_Connect') == true
if User_Edit::SC_CONNECT == 1
class Scene_Connect
#--------------------------------------------------------------------------
# Initialiation
#--------------------------------------------------------------------------
def initialize
$Mouse.reset
# Loads data (If not loaded)
$data_actors ||= load_data("Data/Actors.rxdata")
$data_classes ||= load_data("Data/Classes.rxdata")
$data_skills ||= load_data("Data/Skills.rxdata")
$data_items ||= load_data("Data/Items.rxdata")
$data_weapons ||= load_data("Data/Weapons.rxdata")
$data_armors ||= load_data("Data/Armors.rxdata")
$data_enemies ||= load_data("Data/Enemies.rxdata")
$data_troops ||= load_data("Data/Troops.rxdata")
$data_states ||= load_data("Data/States.rxdata")
$data_animations ||= load_data("Data/Animations.rxdata")
$data_tilesets ||= load_data("Data/Tilesets.rxdata")
$data_common_events ||= load_data("Data/CommonEvents.rxdata")
# Load system Data
$data_system = load_data("Data/System.rxdata")
@sprite = Sprite.new
@sprite.bitmap = RPG::Cache.title($data_system.title_name)
# Make System Object
$game_system = Game_System.new
# Make Temporary Object
$game_temp = Game_Temp.new
# Stop playing ME and BGS
$game_system.bgm_play($data_system.title_bgm)
Audio.me_stop
Audio.bgs_stop
Network::Main.initialize
end
#--------------------------------------------------------------------------
# Opciones de comando del Scene_Connect_Master
#--------------------------------------------------------------------------
def main
Font.default_color = Color.new(-250, -255, -255)
@_connect_window = Window_Normal.new(60,390,550,550)
@_connect_window_first = Button.new(@_connect_window,25,57,"Eu li as Regras e Aceito os Termos") {login}
@_connect_window_first = Button.new(@_connect_window,260,57,"Eu li as Regras e não Aceito os Termos ") {sair}
@_connect_window.opacity = 0
#
$options_connect = Window_Connect.new(170,80,350,350)
$options_connect.visible = true
$options_connect.active = true
$options_connect.closable = false
$options_connect.dragable = false
#
#
#--------------------------------------------------------------------------
# Fin de las pciones de comando del Scene_Connect_Master
#--------------------------------------------------------------------------
if User_Edit::CONNTYPE == 0
# Make Server Window
@commands = []
for server in User_Edit::SERVERS
@commands.push(server[2])
end
@commands.push("Exit")
@window = Window_Command.new(200,@commands)
@window.x = 500
@window.y = 500
# Set variables
@log = false
@count = 0
# Show Window
Graphics.transition
# Test Servers
test if User_Edit::TESTSERVER == false
end
Graphics.transition
# Main Loop
loop do
Network::Base.update
update
break if $scene != self
end
# Freeze
Graphics.freeze
# Dispose
$options_connect.dispose
@sprite.dispose
@_connect_window.dispose
if User_Edit::CONNTYPE == 0
@window.dispose
if User_Edit::TESTSERVER == true
@window2.dispose if @window2 != nil
end
end
end
#--------------------------------------------------------------------------
# Test Connections
#--------------------------------------------------------------------------
def test
# Make the window
@window2 = Window_Base.new(@window.x + @window.width + 50, @window.y, @window.width, @window.height)
@window2.contents = Bitmap.new( @window2.width - 32, @window2.height - 32)
num = 0
# For every server, test the connectin
for server in User_Edit::SERVERS
#Graphics.freeze
test_do(server,num)
num += 1
#Graphics.transition
end
end
#--------------------------------------------------------------------------
# * Login
#--------------------------------------------------------------------------
def login
$game_system.se_play($data_system.decision_se)
if User_Edit::CONNTYPE == 0
@count += 1
@window.update
# In case of C Input
case @window.index
when 0..@commands.size - 2
Network::Main.start_connection(User_Edit::SERVERS[@window.index][0],User_Edit::SERVERS[@window.index][1])
#Network::Main.retrieve_mod
Network::Main.amnet_auth
return
when @commands.size - 1
$scene = nil
return
end
# Refresh Server Connection Test Window
if User_Edit::TESTSERVER == true
if @count >= User_Edit::SERVERREFRESH and @window2 != nil
Graphics.freeze
@window2.dispose
Graphics.transition
test
@count = 0
end
end
end
end
#--------------------------------------------------------------------------
# * Sair
#--------------------------------------------------------------------------
def sair
$game_system.se_play($data_system.decision_se)
Network::Main.close_socket
Audio.bgm_fade(800)
Audio.bgs_fade(800)
Audio.me_fade(800)
#Graphics.transition(25)
$scene = nil
end
#--------------------------------------------------------------------------
# Do Test
#--------------------------------------------------------------------------
def test_do(server,num)
begin
@status = Window_Normal.new(510,0,130,50)
@status.contents.font.size = 16
@status.opacity = 230
Network::Test.test_connection(server[0].to_s,server[1].to_i)
result = Network::Test.result
Network::Test.testreset
text = User_Edit::SERVERERR
rescue
result = true
end
if result == false
text = User_Edit::SERVERON
@status.contents.font.color = @status.text_color(3)
else
text = User_Edit::SERVEROFF if result == true
@status.contents.font.color = @status.text_color(2)
end
@status.contents.draw_text(0,num*32,@status.width,22,text)
end
#--------------------------------------------------------------------------
# Update
#--------------------------------------------------------------------------
def update
@_connect_window.update
$options_connect.update
if User_Edit::CONNTYPE == 0
@count += 1
@window.update
# In case of C Input
if Input.trigger?(Input::A)
case @window.index
when 0..@commands.size - 2
Network::Main.start_connection(User_Edit::SERVERS[@window.index][0],User_Edit::SERVERS[@window.index][1])
#Network::Main.retrieve_mod
Network::Main.amnet_auth
return
when @commands.size - 1
$scene = nil
return
end
end
# Refresh Server Connection Test Window
if User_Edit::TESTSERVER == true
if @count >= User_Edit::SERVERREFRESH and @window2 != nil
Graphics.freeze
@window2.dispose
Graphics.transition
test
@count = 0
end
end
end
end
end
end
end
depois va no script user edit e subistitua isso
#----------------------Ativar Scene_Connect---------------------
ACTIVE_SCENE_CONNECT = true
#---------------------------------------------------------------
por isso
#----------------------Ativar Scene_Connect---------------------
ACTIVE_SCENE_CONNECT = true
#---------------------------------------------------------------
#---------------Modelo da Scene Connect (De 1 a 2)--------------
SC_CONNECT = 1
#---------------------------------------------------------------
e adicione esse script em cima do netplay
- Spoiler:
- #==============================================================================
# ** Regras **
#==============================================================================
# By Faabinhuuu & matheus180
#==============================================================================
class Window_Connect < Window_Base
def initialize(x,y,a,b)
super(57,50,1000,1000)
@sprite = Sprite.new
@sprite.bitmap = RPG::Cache.title("Regras.png")
self.windowskin = RPG::Cache.windowskin("Blank")
self.contents = Bitmap.new(width-32,height-32)
@dragable = true
self.z = 9999
self.opacity = 230
refresh
end
def refresh
self.contents.clear
self.contents.font.color = Color.new(255, 255, 255)
self.contents.draw_text(220,-10,300,32,"Termos de uso")
self.contents.draw_text(0,20,2000,32,"edite como quiser va no script window regras e dite o texto")
self.contents.draw_text(0,40,2000,32,"")
self.contents.draw_text(0,60,2000,32,"")
self.contents.draw_text(0,80,2000,32,"")
self.contents.draw_text(0,100,2000,32,"")
self.contents.draw_text(0,120,2000,32,"")
self.contents.draw_text(0,140,2000,32,"")
self.contents.draw_text(0,160,2000,32,"")
self.contents.draw_text(0,180,2000,32,"")
self.contents.draw_text(0,200,2000,32,"")
self.contents.draw_text(0,220,2000,32,"")
self.contents.draw_text(0,240,2000,32,"")
self.contents.draw_text(0,260,2000,32,"")
self.contents.draw_text(0,280,2000,32,"")
self.contents.draw_text(0,300,2000,32,"")
self.contents.draw_text(0,320,2000,32,"")
end
def on_close
$options_connect.visible = false
$options_connect.active = false
super
end
end
e coloque esta imagem, na pasta title e nomei ela como Regras
- Spoiler:
Creditos
Ao Fabinhuuu primeiramente sem ele eu não ia saber oque fazer
e pra mim
Última edição por matheus180 em Dom Ago 21, 2011 7:03 pm, editado 1 vez(es)