Bom esse script é muito simples porem gasta muito tempo fazer por evento, então decidi fazer
Img:
- Código:
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:#
# Autor: Kielleds #
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:#
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:#
# O script permite escolha de salas PVP por janelas #
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:#
class Window_Pvp < Window_Base
def initialize
super(200, 80, 100, 150)
self.contents = Bitmap.new(width - 32, height - 32)
self.back_opacity = 255
self.windowskin = RPG::Cache.windowskin("Windowskin")
self.contents.font.color = Color.new(0, 0, 0)
self.contents.font.size = 13
self.contents.font.name = "Segoe UI"
@closable = true
@dragable = true
@clickable = true
self.visible = false
self.active = false
@title = Title.new(self, "Salas PVP")
#@Button = Button.new(self, X, Y, "nome que ira apareçer o botão") {nome do botão para chamar o processo}
@button1 = Button.new(self, 15, 25, "Floresta") {bto1}
@button2 = Button.new(self, 15, 45, " Castelo") {bto2}
@button3 = Button.new(self, 15, 65, "Caverna") {bto3}
@button4 = Button.new(self, 15, 85, " Cidade") {bto4}
@button5 = Button.new(self, 15, 105, " praia ") {bto5}
refresh
end
def bto1
#aqui o id do mapa
$game_temp.player_new_map_id = 1
#aqui a cordenada X
$game_temp.player_new_x = 12
#aqui a cordenada y
$game_temp.player_new_y = 12
$game_temp.player_transferring = true
$game_map.update
$scene = Scene_Map.new
Network::Main.send_start
$chat.texto("Bem Vindo a Floresta")
end
def bto2
#aqui o id do mapa
$game_temp.player_new_map_id = 1
#aqui a cordenada X
$game_temp.player_new_x = 12
#aqui a cordenada y
$game_temp.player_new_y = 12
$game_temp.player_transferring = true
$game_map.update
$scene = Scene_Map.new
Network::Main.send_start
$chat.texto("Bem Vindo ao Castelo")
end
def bto3
#aqui o id do mapa
$game_temp.player_new_map_id = 1
#aqui a cordenada X
$game_temp.player_new_x = 12
#aqui a cordenada y
$game_temp.player_new_y = 12
$game_temp.player_transferring = true
$game_map.update
$scene = Scene_Map.new
Network::Main.send_start
$chat.texto("Bem Vindo a Caverna")
end
def bto4
#aqui o id do mapa
$game_temp.player_new_map_id = 1
#aqui a cordenada X
$game_temp.player_new_x = 12
#aqui a cordenada y
$game_temp.player_new_y = 12
$game_temp.player_transferring = true
$game_map.update
$scene = Scene_Map.new
Network::Main.send_start
$chat.texto("Bem Vindo a Cidade")
end
def bto5
#aqui o id do mapa
$game_temp.player_new_map_id = 1
#aqui a cordenada X
$game_temp.player_new_x = 12
#aqui a cordenada y
$game_temp.player_new_y = 12
$game_temp.player_transferring = true
$game_map.update
$scene = Scene_Map.new
Network::Main.send_start
$chat.texto("Bem Vindo a Praia")
end
def refresh
self.contents.clear
end
end
Img: