Thread: Just noticed this

Results 1 to 4 of 4
  1. #1 Just noticed this 
    Registered Member Sentimental's Avatar
    Join Date
    Apr 2011
    Posts
    308
    Thanks given
    120
    Thanks received
    35
    Rep Power
    3
    but on my server, when I go to do an action and buy a kit, it removes the money in general rather than the amount I'm wanting it to.

    Code:
    } else if (c.dialogueAction == 14) {
    					c.getItems().deleteItem(995, 100000);
    					c.getItems().addItem(861, 1);
    					c.getItems().addItem(892, 500);
    					c.getItems().addItem(2498, 5);
    					c.getItems().addItem(2504, 5);
    					c.getItems().addItem(1713, 5);
    					c.getItems().addItem(3105, 5);
    					c.getItems().addItem(7460, 5);
    					c.getItems().addItem(10499, 5);
    					c.getItems().addItem(2581, 1);
    					c.getItems().addItem(9186, 5);
    					c.getItems().addItem(9144, 250);
    					c.getPA().closeAllWindows();
    Could anyone tell me why it's happening? I'm just wondering because I don't think I see anything wrong.

    you'll be thanked and repped for helping.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Zivik's Avatar
    Join Date
    Oct 2007
    Age
    28
    Posts
    4,421
    Thanks given
    891
    Thanks received
    1,527
    Rep Power
    3285
    Try using deleteItem2 method instead of deleteItem.
    Reply With Quote  
     

  3. #3  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    ItemAssistant.java

    Find:
    Code:
    public void deleteItem(int id, int amount) {
    		if(id <= 0)
    			return;
    		for (int j = 0; j < c.playerItems.length; j++) {
    			if (amount <= 0)
    				break;
    			if (c.playerItems[j] == id+1) {
    				c.playerItems[j] = 0;
    				c.playerItemsN[j] = 0;
    				amount--;			
    			}	
    		}
    		resetItems(3214);
    	}
    And replace with:
    Code:
                  	public void deleteItem(int id, int amount) {
    		deleteItem(id, getItemSlot(id), amount);
    	}

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  4. Thankful user:


  5. #4  
    Registered Member Sentimental's Avatar
    Join Date
    Apr 2011
    Posts
    308
    Thanks given
    120
    Thanks received
    35
    Rep Power
    3
    Thanks, fixed it.
    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. You just noticed you are using an inferior browser
    By c0tt0n bud in forum Software
    Replies: 26
    Last Post: 11-05-2009, 09:08 PM
  2. I'll just leave this here.
    By Jammy780 in forum Chat
    Replies: 2
    Last Post: 06-28-2009, 07:35 AM
  3. Just made this
    By why teh fuc in forum Showcase
    Replies: 3
    Last Post: 06-12-2009, 01:32 PM
  4. Just leaving this here again..
    By Brett` in forum RS 503+ Client & Server
    Replies: 2
    Last Post: 09-11-2008, 03:56 AM
  5. Just leaving this here.
    By Brett` in forum RS 503+ Client & Server
    Replies: 2
    Last Post: 09-09-2008, 07:05 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
  •