Thread: Adding tax bags to my server?

Results 1 to 7 of 7
  1. #1 Adding tax bags to my server? 
    Registered Member
    Join Date
    Dec 2010
    Posts
    1
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    I am currently hosting a 317 server. How do I go about adding tax bags to it?
    Reply With Quote  
     

  2. #2  
    Banned imsuperman05's Avatar
    Join Date
    May 2011
    Posts
    410
    Thanks given
    21
    Thanks received
    25
    Rep Power
    0
    saw this on moparscape, but i'm kinda warned so u wont see my post for a while. try this
    Code:
    		if(itemId == 10831) {
    				if(cashAmount > 1999999999){
    				c.getItems().deleteItem(995, CSlot, 2000000000);
    				c.getItems().deleteItem(10831,1);
    				c.getItems().addItem(10835,1);
    				c.sendMessage("You fill the bag with 2Bil GP.");
    				} else if (cashAmount < 1999999999) {
    				c.sendMessage("You need 2Bil GP to fill this bag.");
    				}
    			}
    		if(itemId == 10835) {
    				c.getItems().deleteItem(10835, 1);
    				c.getItems().addItem(995,2000000000);
    				c.getItems().addItem(10831,1);
    				c.sendMessage("You empty the bag and recieve 2Bil GP.");
    				}
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Mar 2011
    Posts
    4,064
    Thanks given
    194
    Thanks received
    689
    Rep Power
    0
    Quote Originally Posted by imsuperman05 View Post
    saw this on moparscape, but i'm kinda warned so u wont see my post for a while. try this
    Code:
    		if(itemId == 10831) {
    				if(cashAmount > 1999999999){
    				c.getItems().deleteItem(995, CSlot, 2000000000);
    				c.getItems().deleteItem(10831,1);
    				c.getItems().addItem(10835,1);
    				c.sendMessage("You fill the bag with 2Bil GP.");
    				} else if (cashAmount < 2000000000) {
    				c.sendMessage("You need 2Bil GP to fill this bag.");
    				}
    			}
    		if(itemId == 10835) {
    				c.getItems().deleteItem(10835, 1);
    				c.getItems().addItem(995,2000000000);
    				c.getItems().addItem(10831,1);
    				c.sendMessage("You empty the bag and recieve 2Bil GP.");
    				}
    other than that small error,thats the way you can do it
    Reply With Quote  
     

  4. #4  
    Banned imsuperman05's Avatar
    Join Date
    May 2011
    Posts
    410
    Thanks given
    21
    Thanks received
    25
    Rep Power
    0
    Quote Originally Posted by relex lawl View Post
    other than that small error,thats the way you can do it
    If you change it to 20000000 then they can add 2b in there, and it should be 1.9b so that they MUST have 2b+ to put it in there. That barely made sense..
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Mar 2011
    Posts
    4,064
    Thanks given
    194
    Thanks received
    689
    Rep Power
    0
    read the line lol

    it basically means if the person has less than 2b they cant use it,what you put is if they had 1999999999 they could use it
    Reply With Quote  
     

  6. #6  
    Registered Member CruzBishop's Avatar
    Join Date
    Jan 2011
    Posts
    20
    Thanks given
    0
    Thanks received
    5
    Rep Power
    27
    Quote Originally Posted by relex lawl View Post
    read the line lol

    it basically means if the person has less than 2b they cant use it,what you put is if they had 1999999999 they could use it
    No, it doesn't.

    Code:
    if(cashAmount > 1999999999){
    This indicates that there has to be more than 1,999,999,999 GP to fill the bag.

    Code:
    } else if (cashAmount < 1999999999) {
    This indicates that the error shows if the first check is not matched and there are less than 1,999,999,999 GP. Although, it'd be better off as a simple else

    The glitch isn't that somebody with 1,999,999,999 GP would be able to use the bag, it's simply that said person wouldn't get the message that they couldn't do it.
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Mar 2011
    Posts
    4,064
    Thanks given
    194
    Thanks received
    689
    Rep Power
    0
    Quote Originally Posted by CruzBishop View Post
    No, it doesn't.

    Code:
    if(cashAmount > 1999999999){
    This indicates that there has to be more than 1,999,999,999 GP to fill the bag.

    Code:
    } else if (cashAmount < 1999999999) {
    This indicates that the error shows if the first check is not matched and there are less than 1,999,999,999 GP. Although, it'd be better off as a simple else

    The glitch isn't that somebody with 1,999,999,999 GP would be able to use the bag, it's simply that said person wouldn't get the message that they couldn't do it.
    3rd grade is very important bro

    no shit,thats why i just said it was a small error....did i say omg this is gonna fuck up your server or something?
    Reply With Quote  
     


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. Adding a Login Server to your Server.
    By Ultimate in forum Tutorials
    Replies: 36
    Last Post: 06-11-2011, 09:34 AM
  2. Do you think Jagex are Douche bags?
    By 'Pancakes in forum Voting
    Replies: 68
    Last Post: 11-12-2009, 10:18 PM
  3. Adding Server to Server List -- HELP! PLZ!
    By iTz PROFESSOR in forum Help
    Replies: 4
    Last Post: 01-18-2009, 10:44 PM
  4. adding gui into server
    By lastpkz in forum Help
    Replies: 2
    Last Post: 01-17-2009, 01:39 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
  •