[PLUS] Credit Timer Clarification!

Results 1 to 7 of 7
  1. #1
    I use to love it more! Jmandupree is offline
    MemberRank
    Oct 2009 Join Date
    /ragezone/homeLocation
    996Posts

    [PLUS] Credit Timer Clarification!

    I need some clarification on this (NOOB MOMENT)

    PHP Code:
    public void CheckCreditsTimer()
            {
                try
                {
                    
    this._creditsTickUpdate--;
     
                    if (
    this._creditsTickUpdate <= 0)
                    {
                        
    int CreditUpdate PlusStaticGameSettings.UserCreditsUpdateAmount;
                        
    int DucketUpdate PlusStaticGameSettings.UserPixelsUpdateAmount;
                       
                        
    SubscriptionData SubData null;
                        if (
    PlusEnvironment.GetGame().GetSubscriptionManager().TryGetSubscriptionData(this._vipRankout SubData))
                        {
                            
    CreditUpdate += SubData.Credits;
                            
    DucketUpdate += SubData.Duckets;
                        }
     
                        
    this._credits += CreditUpdate;
                        
    this._duckets += DucketUpdate;
     
                        
    this._client.SendMessage(new CreditBalanceComposer(this._credits));
                        
    this._client.SendMessage(new HabboActivityPointNotificationComposer(this._ducketsDucketUpdate));
     
                        
    this.CreditsUpdateTick PlusStaticGameSettings.UserCreditsUpdateTimer;
                    }
                }
                catch { }
            } 
    So my take on this is server is checking the timer to see if it has been 15 minutes yet and sends out the default 100 coins. Then I see under it says subscription data what caught my eye was ' _viprank' So basically the question i wanna know is if the server sends more credits & pixels to users that are VIP? If so where can I change this at because in server settings I have it disabled but still seems to send 600 coins.

    UPDATE:

    I figured out that any users with VIP gets extra credits regardless of the server settings if anyone knows how to change the number of coins sent post below please.
    @Sledmore
    Last edited by Jmandupree; 13-01-16 at 04:35 AM.


  2. #2
    Account Upgraded | Title Enabled! YoWesty is offline
    MemberRank
    Oct 2012 Join Date
    285Posts

    Re: [PLUS] Credit Timer Clarification!

    Quote Originally Posted by Jmandupree View Post
    I need some clarification on this (NOOB MOMENT)

    PHP Code:
    public void CheckCreditsTimer()
            {
                try
                {
                    
    this._creditsTickUpdate--;
     
                    if (
    this._creditsTickUpdate <= 0)
                    {
                        
    int CreditUpdate PlusStaticGameSettings.UserCreditsUpdateAmount;
                        
    int DucketUpdate PlusStaticGameSettings.UserPixelsUpdateAmount;
                       
                        
    SubscriptionData SubData null;
                        if (
    PlusEnvironment.GetGame().GetSubscriptionManager().TryGetSubscriptionData(this._vipRankout SubData))
                        {
                            
    CreditUpdate += SubData.Credits;
                            
    DucketUpdate += SubData.Duckets;
                        }
     
                        
    this._credits += CreditUpdate;
                        
    this._duckets += DucketUpdate;
     
                        
    this._client.SendMessage(new CreditBalanceComposer(this._credits));
                        
    this._client.SendMessage(new HabboActivityPointNotificationComposer(this._ducketsDucketUpdate));
     
                        
    this.CreditsUpdateTick PlusStaticGameSettings.UserCreditsUpdateTimer;
                    }
                }
                catch { }
            } 
    So my take on this is server is checking the timer to see if it has been 15 minutes yet and sends out the default 100 coins. Then I see under it says subscription data what caught my eye was ' _viprank' So basically the question i wanna know is if the server sends more credits & pixels to users that are VIP? If so where can I change this at because in server settings I have it disabled but still seems to send 600 coins.

    UPDATE:

    I figured out that any users with VIP gets extra credits regardless of the server settings if anyone knows how to change the number of coins sent post below please.
    @Sledmore
    edit the table `subscriptions`

    - - - Updated - - -

    Or you can change it to this.
    PHP Code:
      public void CheckCreditsTimer()
            {
                try
                {
                    
    this._creditsTickUpdate--;

                    if (
    this._creditsTickUpdate <= 0)
                    {
                        
    int cred;
                        
    int ducket;

                        if (
    this.VIPRank == 1)
                            
    cred PlusStaticGameSettings.UserCreditsUpdateAmount 2;
                        else if (
    this.VIPRank == 2)
                            
    cred PlusStaticGameSettings.UserCreditsUpdateAmount 3;                  
                        else if (
    this.VIPRank 2)
                            
    cred PlusStaticGameSettings.UserCreditsUpdateAmount 4;
                        else
                            
    cred PlusStaticGameSettings.UserCreditsUpdateAmount;

                        if (
    this.VIPRank == 1)
                            
    ducket PlusStaticGameSettings.UserPixelsUpdateAmount 2;
                        else if (
    this.VIPRank == 2)
                            
    ducket PlusStaticGameSettings.UserPixelsUpdateAmount 3;
                        else if (
    this.VIPRank == 3)
                            
    ducket PlusStaticGameSettings.UserPixelsUpdateAmount 4;
                        else
                            
    ducket PlusStaticGameSettings.UserPixelsUpdateAmount;




                        
    this._credits += cred;
                        
    this._duckets += ducket;

                        
    this._client.SendMessage(new CreditBalanceComposer(this._credits));
                        
    this._client.SendMessage(new HabboActivityPointNotificationComposer(this._ducketsPlusStaticGameSettings.UserPixelsUpdateAmount));


                        
    this.CreditsUpdateTick PlusStaticGameSettings.UserCreditsUpdateTimer;
                    }
                }
                catch { }
            } 

  3. #3
    Proficient Member Boraida is offline
    MemberRank
    May 2011 Join Date
    The NetherlandsLocation
    161Posts

    Re: [PLUS] Credit Timer Clarification!

    Quote Originally Posted by YoWesty View Post
    edit the table `subscriptions`

    - - - Updated - - -

    Or you can change it to this.
    PHP Code:
      public void CheckCreditsTimer()
            {
                try
                {
                    
    this._creditsTickUpdate--;

                    if (
    this._creditsTickUpdate <= 0)
                    {
                        
    int cred;
                        
    int ducket;

                        if (
    this.VIPRank == 1)
                            
    cred PlusStaticGameSettings.UserCreditsUpdateAmount 2;
                        else if (
    this.VIPRank == 2)
                            
    cred PlusStaticGameSettings.UserCreditsUpdateAmount 3;                  
                        else if (
    this.VIPRank 2)
                            
    cred PlusStaticGameSettings.UserCreditsUpdateAmount 4;
                        else
                            
    cred PlusStaticGameSettings.UserCreditsUpdateAmount;

                        if (
    this.VIPRank == 1)
                            
    ducket PlusStaticGameSettings.UserPixelsUpdateAmount 2;
                        else if (
    this.VIPRank == 2)
                            
    ducket PlusStaticGameSettings.UserPixelsUpdateAmount 3;
                        else if (
    this.VIPRank == 3)
                            
    ducket PlusStaticGameSettings.UserPixelsUpdateAmount 4;
                        else
                            
    ducket PlusStaticGameSettings.UserPixelsUpdateAmount;




                        
    this._credits += cred;
                        
    this._duckets += ducket;

                        
    this._client.SendMessage(new CreditBalanceComposer(this._credits));
                        
    this._client.SendMessage(new HabboActivityPointNotificationComposer(this._ducketsPlusStaticGameSettings.UserPixelsUpdateAmount));


                        
    this.CreditsUpdateTick PlusStaticGameSettings.UserCreditsUpdateTimer;
                    }
                }
                catch { }
            } 
    Why are you using the same if-statements. Just combine duckets and credits in one if-statement.

  4. #4
    Account Upgraded | Title Enabled! YoWesty is offline
    MemberRank
    Oct 2012 Join Date
    285Posts

    Re: [PLUS] Credit Timer Clarification!

    Quote Originally Posted by Boraida View Post
    Why are you using the same if-statements. Just combine duckets and credits in one if-statement.
    Because then you can customize them differently, if you have a Ducket Eco.

  5. #5
    Proficient Member Boraida is offline
    MemberRank
    May 2011 Join Date
    The NetherlandsLocation
    161Posts

    Re: [PLUS] Credit Timer Clarification!

    Quote Originally Posted by YoWesty View Post
    Because then you can customize them differently, if you have a Ducket Eco.
    Makes no sense. I'm telling you, don't create the same if-statements.
    Instead of:
    x == 1
    do a
    x == 2
    do b
    x == 1
    do c

    You should do:
    x == 1
    do a
    do c
    ...

  6. #6
    Account Upgraded | Title Enabled! YoWesty is offline
    MemberRank
    Oct 2012 Join Date
    285Posts

    Re: [PLUS] Credit Timer Clarification!

    Quote Originally Posted by Boraida View Post
    Makes no sense. I'm telling you, don't create the same if-statements.
    Instead of:
    x == 1
    do a
    x == 2
    do b
    x == 1
    do c

    You should do:
    x == 1
    do a
    do c
    ...
    updated.
    if (this.VIPRank == 1) {
    cred = PlusStaticGameSettings.UserCreditsUpdateAmount * 2;
    ducket = PlusStaticGameSettings.UserPixelsUpdateAmount * 2;
    }
    else if (this.VIPRank == 2) {
    cred = PlusStaticGameSettings.UserCreditsUpdateAmount * 3;
    ducket = PlusStaticGameSettings.UserPixelsUpdateAmount * 3;
    }
    else if (this.VIPRank > 2) {
    cred = PlusStaticGameSettings.UserCreditsUpdateAmount * 4;
    ducket = PlusStaticGameSettings.UserPixelsUpdateAmount * 4;
    }
    else {
    cred = PlusStaticGameSettings.UserCreditsUpdateAmount;
    ducket = PlusStaticGameSettings.UserPixelsUpdateAmount;
    }
    I never really thought of it that way lol

  7. #7
    I use to love it more! Jmandupree is offline
    MemberRank
    Oct 2009 Join Date
    /ragezone/homeLocation
    996Posts

    Re: [PLUS] Credit Timer Clarification!

    Thanks, WOW all I had to do was check subscriptions table didn't even think about it thanks @YoWesty



Advertisement