Thread: Bank Intrest Rates

Results 1 to 8 of 8
  1. #1 Bank Intrest Rates 
    RSSJ
    Guest
    Purpose: Intrest for GP in your bank (with RATES)

    Difficulty: 1/10

    Assumed Knowledge: Copy/paste ++ (if you wanna really get into the possablities) editing script and codeing java.

    Server Base: Josh's RELOADED

    Classes Modified: client.JAVA
    Some people may not have known this, some people may have, but I found this pretty intresting while scanning through my source for things that may not work,
    this is explaining intrest rates in your server, for you BANK ACCOUNT!!!



    Procedure
    Step 1: look for this-
    Code:
    if ((playerGameTime % 1440) == 0) { //1440 minutes = 24 hours
    theres a code attached to it, (duh?) ok remove that code, It most likely doesnt work


    Step 2: Heres a pretty resonable code that WILL work...
    Code:
    //intrest
    		if ((playerGameTime % 10) == 0) { //10== 10 mins
    			for (int i = 0; i < bankItems.length; i++) {
    				if (bankItems[i] == 995) {
    					bankItemsN[i] += ((bankItemsN / 100) * 25); //25% intrest rates
    				}
    			}
    		}

    ok replace that with the code you just deleted, now to explain this...


    "This parts"
    Code:
    bankItemsN[i] += ((bankItemsN[i] / 100) * 25); //25% intrest rates
    25 is your intrest rate, Iv got it set to 25%, just change that to make it whatever you want
    Code:
    if ((playerGameTime % 10) == 0) { //10== 10 mins
    this part is the time, 10 is the number of minutes that this happens, so in this code every 10 mins they get 25% of there gp in there bank added.

    Code:
    if (bankItems[i] == 995)
    this part 995 is the id for gp, you can edit it if you want but Idk what you would, maby add in intrest on runes or something?

    Credits: Me, and Xero for makeing it in his oridginal source
     

  2. #2  
    Retix
    Guest
    kwl relly good i might use this good tut
     

  3. #3  
    I'm unique


    Join Date
    Oct 2006
    Age
    29
    Posts
    708
    Thanks given
    0
    Thanks received
    1
    Rep Power
    82
    Uhm, can you tell me exactly where I can find it? Or add it if I don't got it?
    Sincerly yours,
    Simox.
     

  4. #4  
    project-rs owner
    Join Date
    Sep 2006
    Age
    29
    Posts
    914
    Thanks given
    4
    Thanks received
    4
    Rep Power
    49
    public boolean process()

    most of the servers got this already it is old
     

  5. #5  
    Strayer
    Guest
    nice tut i hope it works lol
     

  6. #6  
    Legend Rene
    Guest
    Code:
    		if ((playerGameTime % 1440) == 0) { //1440 minutes = 24 hours
    			for (int i = 0; i < bankItems.length; i++) {
    				if (bankItems[i] == 995) {
    					bankItemsN[i] += ((bankItemsN[i] / 100) * 4); //increase money like in real banks (4% rente)
    				}
    			}
    Thats from Xeroz as you can see theres only a small difference
     

  7. #7  
    RSSJ
    Guest
    so..? I gave xero his credit.
     

  8. #8  
    Registered Member
    Join Date
    Jul 2006
    Age
    32
    Posts
    487
    Thanks given
    0
    Thanks received
    0
    Rep Power
    56
    Yea I reposted this a while back. It's pretty useful.
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 3
    Last Post: 05-29-2010, 04:48 AM
  2. bank anywere bluurs client? (bank from button)
    By Snow Cat123 in forum Requests
    Replies: 0
    Last Post: 08-26-2009, 07:52 PM
  3. Adding Bank intrest
    By LesterKnome in forum Snippets
    Replies: 17
    Last Post: 08-07-2009, 04:26 AM
  4. Replies: 3
    Last Post: 07-18-2009, 02:16 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •