Aldeia RPG

Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

Suporte ao desenvolvimento de jogos


+4
Laxus
Jonny
Samuka_Maker
Peaverin
8 participantes

    Window Status + Cash/VIP system

    avatar
    Peaverin
    Ocasional
    Ocasional


    Mensagens : 182
    Créditos : 19

    Window Status + Cash/VIP system Empty Window Status + Cash/VIP system

    Mensagem por Peaverin Seg Out 29, 2012 5:07 pm

    Que é?
    Eu modifiquei a window status pra mostrar informaçao extra e adicionei um sistema de Cash/VIP (2 variabels). Se voce tem o suficiente cash, voce pode fazerse VIP.
    O VIP tem 3 rangos. (VIP1,VIP2 e VIP3). Cuando voce tem suficiente cash voce pode upar um lvl de VIP.
    Screens/Video
    Screen:
    Spoiler:
    Video:
    Pongam o video a 720p hq e pantalla completa pra ver melhor :)

    Script
    Postare um exemplo (download) em breve :)
    Script (traducido por Samuka_Maker pra o portugues):
    Spoiler:
    Creditos
    Peaverin
    Jonny
    Samuka_Maker
    Aldeiarpbr


    Última edição por Peaverin em Seg Out 29, 2012 6:48 pm, editado 5 vez(es)


    _________________
    Eu sou espanhol, desculpe se eu falho malamente o portugues :/+
    Novo NP modificado por mim: Netplay Extended Edition
    Window Status + Cash/VIP system Npexed
    Samuka_Maker
    Samuka_Maker
    Aldeia Friend
    Aldeia Friend


    Medalhas : Window Status + Cash/VIP system WBLhI
    Mensagens : 1204
    Créditos : 127

    Window Status + Cash/VIP system Empty Re: Window Status + Cash/VIP system

    Mensagem por Samuka_Maker Seg Out 29, 2012 5:31 pm

    ei cara eu n intendi como ponho o cash pro user :/
    e gente modifikei aki bem basiko pra vocês n perderem tempo xD (nada de mais só cor pra windowskin padrao pra n fikr invisivel e tb a lingagem pro português
    Código:
    #==============================================================================
    # ** Status
    #------------------------------------------------------------------------------
    #  By Marlos Gama
    #  Modified by Peaverin
    #------------------------------------------------------------------------------
    ##################Modified By Peaverin####################
    ############Netplay Extended Edition 1.0 script###########
    ##################www.aldeiarpgbr.com#####################
    class Window_Status2 < Window_Base
      def initialize
        super(25,70,230,340)#super(25,70,250,240)
        self.contents = Bitmap.new(width - 32, height - 32)
        self.contents.font.color = normal_color
        self.windowskin = RPG::Cache.windowskin("WindSkinA")
        @dragable = true
        @closable = true
        self.z = 999999
        self.back_opacity = 255
        if User_Edit::DISTRIBUIR_ACTIVE == true
        @str = Button.new(self,145+30, 120+3, " + ") {str}
        @agi = Button.new(self,145+30, 140+3, " + ") {agi}
        @dex = Button.new(self,145+30, 160+3, " + ") {dex}
        @int = Button.new(self,145+30, 180+3, " + ") {int}
      end
      if $game_variables[24] == 0
        @vip = Button.new(self,60, 280, "+1 VIP (100 cash)") {vip}
      elsif $game_variables[24] == 1
        @vip = Button.new(self,60, 280, "+2 VIP (250 cash)") {vip2}
      elsif $game_variables[24] == 2
        @vip = Button.new(self,60, 280, "+3 VIP (450 cash)") {vip3}
        end
        refresh
      end
     
      def update
        super
        refresh if something_changed?
      end
     
      def on_close
        self.visible = false
        self.active = false
        $fechando_ativar = true
      end

      def refresh
        @actor = $game_party.actors[0]
        @old_lvl = @actor.level
        @old_gold = $game_party.item_number(Item_Ouro::Item_Id.to_i)
        @old_hp = @actor.hp
        @old_sp = @actor.sp
        @old_exp = @actor.now_exp
        @old_maxhp = @actor.maxhp
        @old_maxsp = @actor.maxsp
        @old_pontos = $distribuir_pontos
        @old_str = @actor.str
        @old_dex = @actor.dex
        @old_int = @actor.int
        @old_agi = @actor.agi
        @old_atk = @actor.atk
        @old_pdef = @actor.pdef
        @old_mdef = @actor.mdef
        @old_eva = @actor.eva
        @old_cash = $game_variables[28]
        self.contents.clear
        self.contents.font.color = normal_color
        # Level
        self.contents.font.color = Color.new(0, 0, 0)
        self.contents.draw_text(0, 0, 62, 32, "Level")
        self.contents.draw_text(100, 0, 100, 32, "#{@actor.level}")
        # Clase
        self.contents.draw_text(0, 20, 62, 32, "Clase")
        self.contents.draw_text(100, 20, 100, 32, "#{$data_classes[$game_party.actors[0].class_id].name}")
        # HP\MaxHP
        self.contents.draw_text(0, 40, 100, 32, "HP/MáxHP")
        self.contents.draw_text(100, 40, 200, 32, "#{@actor.hp}/#{@actor.maxhp}")
        # SP\MaxSP
        self.contents.draw_text(0, 60, 100, 32, "MP/MáxMP")
        self.contents.draw_text(100, 60, 200, 32, "#{@actor.sp}/#{@actor.maxsp}")
        # HP\MaxHP
        self.contents.draw_text(0, 80, 72, 32, "Exp/Proximo")
        self.contents.draw_text(100, 80, 200, 32, "#{@actor.now_exp}/#{@actor.next_exp}")
        # Str
        self.contents.draw_text(0, 100, 50, 32, "atk")
        self.contents.draw_text(100, 100, 100, 32, "#{@actor.str}")
        # Agi
        self.contents.draw_text(0, 120, 50, 32, "Agi")
        self.contents.draw_text(100, 120, 100, 32, "#{@actor.agi}")
        # Destreza
        self.contents.draw_text(0, 140, 100, 32, "Resistencia")
        self.contents.draw_text(100, 140, 100, 32, "#{@actor.dex}")
        # Int
        self.contents.draw_text(0, 160, 50, 32, "Int")
        self.contents.draw_text(100, 160, 100, 32, "#{@actor.int}")
        # Puntos
        self.contents.draw_text(0, 180, 62, 32, "Pontos")
        if $distribuir_pontos < 0
        self.contents.draw_text(100, 180, 32, 32, "0",0) 
        else 
        self.contents.draw_text(100, 180, 100, 32, $distribuir_pontos.to_s,0)
        # Sep.
        self.contents.draw_text(0,185, 230, 32, "____________________________________________________________________________________________________________________________________________________________________________")
        # Ataque
        self.contents.draw_text(0, 200, 50, 32, "Ataque")
        self.contents.draw_text(50, 200, 100, 32, "#{@actor.atk}")
        # Pdef
            self.contents.draw_text(100, 200, 50, 32, "Defensa")
        self.contents.draw_text(150, 200, 100, 32, "#{@actor.pdef}")
        # Mdef
        self.contents.draw_text(0, 220, 50, 32, "Defensa M.")
        self.contents.draw_text(50, 220, 100, 32, "#{@actor.mdef}")
        # Evasión
            self.contents.draw_text(100, 220, 50, 32, "Evasión")
        self.contents.draw_text(150, 220, 100, 32, "#{@actor.eva}")
      # Cash
        if $game_variables[28] == 0
          self.contents.font.color = Color.new(227, 9, 9, 255)
          self.contents.draw_text(80, 280, 100, 32, "Cash")
          self.contents.draw_text(110, 280, 32, 32, "0") 
        else 
          self.contents.font.color = Color.new(0, 252,17, 255)
          self.contents.draw_text(80, 280, 100, 32, "Cash")
        self.contents.draw_text(110, 280, 100, 32, $game_variables[28].to_s,0)
      end
        #Cuenta Vip
        if $game_variables[24] == 0
          self.contents.font.color = Color.new(227, 9, 9, 255)
          self.contents.draw_text(65, 240, 100, 32, "Vip: 0")
        elsif $game_variables[24] == 1
          self.contents.font.color = Color.new(0, 255, 17, 255)
          self.contents.draw_text(65, 240, 100, 32, "Vip: 1")
              elsif $game_variables[24] == 2
        self.contents.font.color = Color.new(0, 255, 17, 255)
          self.contents.draw_text(65, 240, 100, 32, "Vip: 2")
              elsif $game_variables[24] == 3
          self.contents.font.color = Color.new(0, 255, 17, 255)
          self.contents.draw_text(65, 240, 100, 32, "Vip: 3")
          #VIP max
          if $game_variables[24] == 3
            self.contents.font.color = Color.new(0, 255, 17, 255)
            self.contents.draw_text(28, 260, 300, 32, "¡Seu Vip ja esta no máximo!")
            end
      end
        end
      end
     
      def something_changed?
        return true if @old_lvl != @actor.level
        return true if @old_gold != $game_party.item_number(Item_Ouro::Item_Id.to_i)
        return true if @old_exp != @actor.now_exp
        return true if @old_hp != @actor.hp
        return true if @old_sp != @actor.sp
        return true if @old_maxhp != @actor.maxhp
        return true if @old_maxsp != @actor.maxsp
        return true if @old_str != @actor.str
        return true if @old_dex != @actor.dex
        return true if @old_int != @actor.int
        return true if @old_agi != @actor.agi
        return true if @old_pontos != $distribuir_pontos
        return true if @old_atk != @actor.atk
        return true if @old_pdef != @actor.pdef
        return true if @old_mdef != @actor.mdef
        return true if @old_eva != @actor.eva
        return true if @old_cash != $game_variables[28]
        return false
      end
     
      def hp
        $game_system.se_play($data_system.decision_se)
        if $distribuir_pontos >= 1
        $distribuir_pontos -= 1
        $game_actors[1].maxhp += 5
        $status.refresh
      else
        $status.refresh
      end
     end
     
        def sp
        $game_system.se_play($data_system.decision_se)
        if $distribuir_pontos >= 1
        $distribuir_pontos -= 1
        $game_actors[1].maxsp += 5
        $status.refresh
      else
        $status.refresh
      end
     end
     
     
      def str
        $game_system.se_play($data_system.decision_se)
        if $distribuir_pontos >= 1
        $distribuir_pontos -= 1
        $game_actors[1].str += 1
        $status.refresh
      else
        $status.refresh
      end
     end
     
      def dex
      $game_system.se_play($data_system.decision_se)
      if $distribuir_pontos >= 1
      $distribuir_pontos -= 1
      $game_actors[1].dex += 1
      $status.refresh
     else
      $status.refresh
      end
     end
     
      def agi
        $game_system.se_play($data_system.decision_se)
        if $distribuir_pontos >= 1
        $distribuir_pontos -= 1
        $game_actors[1].agi += 1
        $status.refresh
      else
        $status.refresh
      end
     end
     
      def int
        $game_system.se_play($data_system.decision_se)
        if $distribuir_pontos >= 1
        $distribuir_pontos -= 1
        $game_actors[1].int += 1
        $status.refresh
      else
        $status.refresh
      end
     end
       
      def vip
        if $game_variables[24] == 1
          $game_temp.chat_log.push("Você ganhou 1 vip")
          $game_temp.chat_log.push("Reinicie o jogo para ativalo")
          else
        if $game_variables[28] >= 100
          $game_variables[24] = 1
          $game_variables[28] -= 100
            $game_temp.chat_log.push("Seu vip foi aumentado em 1")
            $game_temp.chat_log.push("Reinicie o jogo")
          else
            $game_temp.chat_log.push("nao tem cash sufifiente")
            $game_temp.chat_log.push("precisas de 100")
            end
          end
          end
            def vip2
              if $game_variables[24] == 2
          $game_temp.chat_log.push("você ganhou 2 vips")
          $game_temp.chat_log.push("Reinicie o jogo para ativalo")
          else
        if $game_variables[28] >= 250
          $game_variables[24] = 2
              $game_variables[28] -= 250
                    $game_temp.chat_log.push("Reinicie o jogo")
              $game_temp.chat_log.push("Seu vip foi amentado em 2")
          else
            $game_temp.chat_log.push("você nao tem cash suficiente")
                    $game_temp.chat_log.push("Precisas de 250")
                  end
                  end
                end
                def vip3
                  if $game_variables[24] == 3
          $game_temp.chat_log.push("Você ganhou 3 vips")
          $game_temp.chat_log.push("Reinicie o jogo para ativalo")
          else
              if $game_variables[28] >= 450
              $game_variables[28] -= 450
                $game_variables[24] = 3
                  $game_temp.chat_log.push("Reinicie o jogo")
                $game_temp.chat_log.push("Seu vip foi aumentado em 3")
          else
            $game_temp.chat_log.push("Você nao tem cash suficiente")
                    $game_temp.chat_log.push("Precisas de 450")
                  end
                end
                end

    end


    Última edição por Samuka_Maker em Seg Out 29, 2012 5:36 pm, editado 1 vez(es)


    _________________

    Life rpg maker, suporte para criacao de jgoos online eoffline, link do forum:(v2.0)
    http://liferpgmakerv2.forumais.com/

    Window Status + Cash/VIP system 6f4EA

    Window Status + Cash/VIP system Bxvno
    Tópico original/Tópico de Recrutamento
    avatar
    Peaverin
    Ocasional
    Ocasional


    Mensagens : 182
    Créditos : 19

    Window Status + Cash/VIP system Empty Re: Window Status + Cash/VIP system

    Mensagem por Peaverin Seg Out 29, 2012 5:34 pm

    Samuka_Maker escreveu:ei cara eu n intendi como ponho o cash pro user :/
    e gente modifikei aki bem basiko pra vocês n perderem tempo xD (nada de mais só cor pra windowskin padrao pra n fikr invisivel e tb a lingagem pro português
    Vip Rank nº= Variabel 24
    Cash = Variabel 28
    Nao entendi o que voce dis (eu nao sei muito portugues)
    Edit: Admins, postei na area errada, movam o topico pra netplay scripts, obrigado. :/
    Edit2: Samuka Maker: Obrigado pela traduçao, mas atk(str) nao é o mesmo que ataque.
    Se voce se fija na meva imagem, la windows tem força e ataque.
    O ataque depende da seva força e da seva arma (acho que la formula é str/4 + (ataque+ da arma)=ataque total).
    Eu modifiquei o script principal com sua traduçao e cambiei isso da força e atk.


    _________________
    Eu sou espanhol, desculpe se eu falho malamente o portugues :/+
    Novo NP modificado por mim: Netplay Extended Edition
    Window Status + Cash/VIP system Npexed
    Jonny
    Jonny
    Aldeia Friend
    Aldeia Friend


    Medalhas : Window Status + Cash/VIP system Trophy11Window Status + Cash/VIP system 9P5Gx
    Mensagens : 1936
    Créditos : 327

    Window Status + Cash/VIP system Empty Re: Window Status + Cash/VIP system

    Mensagem por Jonny Seg Out 29, 2012 6:14 pm

    Are incorrecta Paevering Window Status + Cash/VIP system 1625187496


    _________________
    Spoiler:


    Window Status + Cash/VIP system KVIdx
    avatar
    Peaverin
    Ocasional
    Ocasional


    Mensagens : 182
    Créditos : 19

    Window Status + Cash/VIP system Empty Re: Window Status + Cash/VIP system

    Mensagem por Peaverin Seg Out 29, 2012 6:16 pm

    Jonny escreveu:Are incorrecta Paevering Window Status + Cash/VIP system 1625187496
    Lo se, ja pedi a administracion que muevan el post.
    Peaverin, nao Paevering


    _________________
    Eu sou espanhol, desculpe se eu falho malamente o portugues :/+
    Novo NP modificado por mim: Netplay Extended Edition
    Window Status + Cash/VIP system Npexed
    Laxus
    Laxus
    Aldeia Friend
    Aldeia Friend


    Mensagens : 1150
    Créditos : 78

    Window Status + Cash/VIP system Empty Re: Window Status + Cash/VIP system

    Mensagem por Laxus Qui Nov 01, 2012 11:24 pm

    Qual a vantagem de ser vip?


    _________________
    "Não importa o quão forte o cara é, o que importa é encara-lo de frente sem fraquejar"
                                                                                                                                                        Laxus ~ Fairy Tail
    avatar
    Peaverin
    Ocasional
    Ocasional


    Mensagens : 182
    Créditos : 19

    Window Status + Cash/VIP system Empty Re: Window Status + Cash/VIP system

    Mensagem por Peaverin Sex Nov 02, 2012 8:14 am

    O que voce quiera. Voce pode fazer por exemplo um NPC que le teleporta a otro mapa se voce é VIP.


    _________________
    Eu sou espanhol, desculpe se eu falho malamente o portugues :/+
    Novo NP modificado por mim: Netplay Extended Edition
    Window Status + Cash/VIP system Npexed
    Laxus
    Laxus
    Aldeia Friend
    Aldeia Friend


    Mensagens : 1150
    Créditos : 78

    Window Status + Cash/VIP system Empty Re: Window Status + Cash/VIP system

    Mensagem por Laxus Sex Nov 02, 2012 9:06 am

    Voce poderia fazer que os vips ganharem 2x de exp?


    _________________
    "Não importa o quão forte o cara é, o que importa é encara-lo de frente sem fraquejar"
                                                                                                                                                        Laxus ~ Fairy Tail
    Samuka_Maker
    Samuka_Maker
    Aldeia Friend
    Aldeia Friend


    Medalhas : Window Status + Cash/VIP system WBLhI
    Mensagens : 1204
    Créditos : 127

    Window Status + Cash/VIP system Empty Re: Window Status + Cash/VIP system

    Mensagem por Samuka_Maker Sex Nov 02, 2012 11:53 am

    warrior acho ke sim se tiver uma condilao da variavel de vip pode faser algo mas o de exp ja naop sei
    se seu jogo for br fis uma traduçao(postei ali em cima)
    vou tentar aki dew xp e posto se conseguir


    _________________

    Life rpg maker, suporte para criacao de jgoos online eoffline, link do forum:(v2.0)
    http://liferpgmakerv2.forumais.com/

    Window Status + Cash/VIP system 6f4EA

    Window Status + Cash/VIP system Bxvno
    Tópico original/Tópico de Recrutamento
    Satheios
    Satheios
    Aldeia Friend
    Aldeia Friend


    Medalhas : Window Status + Cash/VIP system Trophy12Window Status + Cash/VIP system IlSfE
    Mensagens : 1248
    Créditos : 306

    Window Status + Cash/VIP system Empty Re: Window Status + Cash/VIP system

    Mensagem por Satheios Sex Nov 02, 2012 11:55 am

    Gostei do sistema.
    Posso usar no Pandorum caso ele volte.
    Mesmo assim, obrigado por disponibilizar.
    Talvez eu de umas editadas para que os membros com a conta VIP possam adquirir mais coisas ao fazer as mesmas tarefas que os membros FREE.
    Se tiver sucesso, posto para vocês.
    Abraços,
    Vinks.


    _________________



    Ninguém pode ser perfeito, mas todos podem ser melhores.
    Visite o meu projeto, Tales of a Kingdom e prepare-se para um novo mundo!





    Conteúdo patrocinado


    Window Status + Cash/VIP system Empty Re: Window Status + Cash/VIP system

    Mensagem por Conteúdo patrocinado


      Data/hora atual: Dom Abr 28, 2024 8:25 am