Galera, devido a uma dúvida postada anteriormente eu resolvi postar aqui um script de local onde renascer que depende da classe.
Crédito: Marlos e Jonny
- Código:
#==============================================================================
# ** Scene_Gameover
#------------------------------------------------------------------------------
# By Marlos Gama
#==============================================================================
class Scene_Gameover
#--------------------------------------------------------------------------
# * Configurações
#--------------------------------------------------------------------------
ANIMATIONH = 171
ANIMATIONM = 172
#--------------------------------------------------------------------------
# * Main
#--------------------------------------------------------------------------
def main
$msg_chat_w = true
$equip_w.visible = false
$equip_w.active = false
$member_list.visible = false
$member_list.active = false
$item_w.visible = false
$item_w.active = false
$help_w.visible = false
$help_w.active = false
$help_w_2.visible = false
$help_w_2.active = false
$help_w.visible = false
$help_w.active = false
$painel_adm.visible = false
$painel_adm.active = false
$convite.visible = false
$convite.active = false
$teleport.visible = false
$teleport.active = false
$skill.visible = false
$skill.active = false
#$distribuir.visible = false
#$distribuir.active = false
$flag1.visible = false
$guild_w.visible = false
$guild_w.active = false
$msg.visible = false
$msg.active = false
#$painel_adm.visible = false
#$painel_adm.active = false
$flag2.visible = false
$guild_created.visible = false
$guild_created.active = false
$memorizando_skill = false
$memorizando = false
# Renascer segundo a classe
if $data_classes[001]
$game_temp.player_new_map_id = 2
$game_temp.player_new_x = 6
$game_temp.player_new_y = 3
end
if $data_classes[002]
$game_temp.player_new_map_id = 1
$game_temp.player_new_x = 3
$game_temp.player_new_y = 4
end
if $data_classes[003]
$game_temp.player_new_map_id = 1
$game_temp.player_new_x = 3
$game_temp.player_new_y = 4
end
if $data_classes[004]
$game_temp.player_new_map_id = 1
$game_temp.player_new_x = 3
$game_temp.player_new_y = 4
end
if $data_classes[005]
$game_temp.player_new_map_id = 1
$game_temp.player_new_x = 3
$game_temp.player_new_y = 4
end
if $data_classes[006]
$game_temp.player_new_map_id = 1
$game_temp.player_new_x = 3
$game_temp.player_new_y = 4
end
if $data_classes[007]
$game_temp.player_new_map_id = 1
$game_temp.player_new_x = 3
$game_temp.player_new_y = 4
end
if $data_classes[008]
$game_temp.player_new_map_id = 1
$game_temp.player_new_x = 3
$game_temp.player_new_y = 4
end
$game_player.animation_id = 15
if $sexo == "Homem" #or $genero = 1
$game_player.animation_id = ANIMATIONH
end
if $sexo == "Mulher" #or $genero = 2
$game_player.animation_id = ANIMATIONM
end
@move = $game_player
@move.turn_down
Audio.me_stop
Audio.bgs_stop
#$game_map.setup($game_temp.player_new_map_id)
#$game_player.moveto($game_temp.player_new_x, $game_temp.player_new_y)
#$game_map.setup($data_system.start_map_id)
#$game_player.moveto($data_system.start_x, $data_system.start_y)
@actor = $game_party.actors[0]
last_level = @actor.level
$game_map.update
$game_player.refresh
$game_party.actors[0].hp = $game_party.actors[0].maxhp
$game_party.actors[0].sp = $game_party.actors[0].maxsp
$game_temp.gameover = false
#$game_temp.player_transferring = false
$game_temp.transition_processing = false
$game_actors[1].exp -= (($game_actors[1].level.to_i * User_Edit::GAME_OVER_EXP) / 1)
$ABS = MrMo_ABS.new
$ABS.skill_keys[Input::Numberkeys[1]] = 82
$ABS.skill_keys[Input::Numberkeys[2]] = 82
$ABS.skill_keys[Input::Numberkeys[3]] = 82
$ABS.skill_keys[Input::Numberkeys[4]] = 82
$ABS.skill_keys[Input::Numberkeys[5]] = 82
$ABS.skill_keys[Input::Numberkeys[6]] = 82
$game_temp.player_transferring = true
if Network::Main.group == 'admin'
$game_party.actors[0].grupo = "Admin"
else
$game_party.actors[0].grupo = "Standard"
end
if @actor.level < last_level
$distribuir_pontos -= 5
end
salvar
$scene = Scene_Map.new
Network::Main.send_start
#if $assassinato == true
# $assassinato = false
#else
if !$party.empty?
for i in 0..$party.members.size
if $party.members[i] != nil
if $parte_s == true
name = $game_party.actors[0].name
Network::Main.pchat($charzinho_id,"[COM] [ET] #{name}")
Network::Main.pchat($charzinho_id,"[COM] [EXIT] #{name}")
#Network::Main.pchat($charzinho_id,"#{name} foi assassinado e saiu da party!")
$party.party_remove($charzinho_id)#$lider_hud)
$divide_exp = false
#@Hud_Party.visible = false
else
name = $game_party.actors[0].name
Network::Main.pchat($party.members[i].netid,"[COM] [ET] #{name}")
Network::Main.pchat($party.members[i].netid,"[COM] [EXIT] #{name}")
#Network::Main.pchat($party.members[i].netid,"#{name} foi assassinado e saiu da party!")
$party.party_remove($party.members[i])
$divide_exp = false
#@Hud_Party.visible = false
end
end
end
end
#end
loop do
Graphics.update
if $scene != self
break
end
end
Graphics.freeze
end
end
Crédito: Marlos e Jonny
Última edição por Paulo Soreto em Qua Dez 21, 2011 10:50 pm, editado 1 vez(es)