Thread: item id that's nothing?!

Results 1 to 8 of 8
  1. #1 item id that's nothing?! 
    Oxygen
    Guest
    Well I'm using a
    Code:
    public int halppl0x = 0;
    and when I drop that item, it's 0, so it's dwarf remains.
    Then I tried -1, and that just DC'ed me. So is there an id that is nothing? Like nothing at all.
    Reply With Quote  
     

  2. #2  
    Registered Member
    rmb7's Avatar
    Join Date
    Nov 2008
    Posts
    1,023
    Thanks given
    2
    Thanks received
    12
    Rep Power
    200
    nope. Just make a if statement if that it = 0 don't add the item. Simple
    Reply With Quote  
     

  3. #3  
    Oxygen
    Guest
    Ohhhhhh. Thanks.
    Reply With Quote  
     

  4. #4  
    Registered Member
    rmb7's Avatar
    Join Date
    Nov 2008
    Posts
    1,023
    Thanks given
    2
    Thanks received
    12
    Rep Power
    200
    your welcome. If you cant get it to work right just give me the code and I will try and fix it for you. using if statements for items and stuff is very affective because it helps to limit things with out needing to code a big huge code.
    Reply With Quote  
     

  5. #5  
    Oxygen
    Guest
    Nevermind, I can't do that. Because I'm using a random:
    Code:
    	public static int randomzoutofchest()
    	{
    		return randomoutofchest[(int)(Math.random()*randomoutofchest.length)];
    	}
    Reply With Quote  
     

  6. #6  
    Oxygen
    Guest
    Because I'm using a random, as you may know. One might equal 0 and one might equal if (xxx > 0), so I don't know how x(
    Reply With Quote  
     

  7. #7  
    Oxygen
    Guest
    ehztehbumpz?!~
    Reply With Quote  
     

  8. #8  
    Registered Member
    rmb7's Avatar
    Join Date
    Nov 2008
    Posts
    1,023
    Thanks given
    2
    Thanks received
    12
    Rep Power
    200
    hmm ok well post the whole code here. where it will add that item
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •