Hola Aldea Quiero este viejo guión que sea trabajo con v4.9.1 maestro netplay:
- Código:
#================================================================[size=12][/size]
#================================================================[size=12][/size]
#==================== Habilidade de voo =========================[size=12][/size]
#================================================================[size=12][/size]
#=======BY:Gladistony Silva======================================[size=12][/size]
#=======Criada para o forum: Aldeiarpgbr ========================[size=12][/size]
#=======A pedido de rafaelgr ====================================[size=12][/size]
#=======NÃO POSTA EM OUTRO FORUM SEM AUTORIZAÇÃO=================[size=12][/size]
#================================================================[size=12][/size]
#================================================================[size=12][/size]
module Edit_Voo[size=12][/size]
SUF = '' #Sufixo que sera adicionado ao aciona a habilidade[size=12][/size]
IDHAB = 3 #Id da habilidade que permite vooa[size=12][/size]
end[size=12][/size]
class Game_Character[size=12][/size]
attr_accessor :always_on_top[size=12][/size]
attr_accessor :through[size=12][/size]
end[size=12][/size]
def voar[size=12][/size]
return if not $game_party.actors[0].skill_learn?(Edit_Voo::IDHAB)[size=12][/size]
$game_player.always_on_top = true[size=12][/size]
$game_player.through = true[size=12][/size]
$game_party.actors[0].voando = true[size=12][/size]
$game_party.actors[0].character_name += Edit_Voo::SUF[size=12][/size]
end[size=12][/size]
def pousar[size=12][/size]
$game_player.always_on_top = false[size=12][/size]
$game_player.through = false[size=12][/size]
$game_party.actors[0].voando = false[size=12][/size]
$game_party.actors[0].character_name.slice!(Edit_Voo::SUF)[size=12][/size]
end[size=12][/size]
def charge_voar[size=12][/size]
if $game_party.actors[0].voando[size=12][/size]
pousar[size=12][/size]
else[size=12][/size]
voar[size=12][/size]
end[size=12][/size]
end[size=12][/size]
class Game_Actor[size=12][/size]
attr_reader :voando[size=12][/size]
alias setup_voo setup[size=12][/size]
def setup(id)[size=12][/size]
setup_voo(id)[size=12][/size]
@voando = false[size=12][/size]
@char_voo = ''[size=12][/size]
end[size=12][/size]
def voando=(voando)[size=12][/size]
@voando = voando[size=12][/size]
end[size=12][/size]
end[size=12][/size]
class Scene_Map[size=12][/size]
alias update_voar update[size=12][/size]
def update[size=12][/size]
if Input.trigger?(Input::Letters["V"])[size=12][/size]
charge_voar[size=12][/size]
end[size=12][/size]
update_voar[size=12][/size]
end[size=12][/size]
end