Thread: Leprechaun noting (PI)

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 Leprechaun noting (PI) 
    Naughty Toys
    Toys's Avatar
    Join Date
    Sep 2013
    Posts
    201
    Thanks given
    21
    Thanks received
    9
    Rep Power
    37
    Code:
    case 3021:
    			for(int i = 0;i < 9999;i++){
    			for(int h = 0;h < 9999;h++){
    			if (c.getItems().playerHasItem(h, i)) {
    			c.getItems().deleteItem(h, i);
    			c.getItems().addItem(h, i);
    			}
    			}
    			}
    			break;
    I have that so far, but I need to make it determine what 'h' is, i want that to be the different herb id's, how would I do that?
    just like int h = {ID, ID, ID, ID};
    or something?
    Reply With Quote  
     

  2. #2  
    Member Leprechaun noting (PI) Market Banned


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    35
    Posts
    12,574
    Thanks given
    199
    Thanks received
    7,106
    Rep Power
    5000
    u already answered ur own question bro

    Attached imageAttached image
    Reply With Quote  
     

  3. #3  
    Naughty Toys
    Toys's Avatar
    Join Date
    Sep 2013
    Posts
    201
    Thanks given
    21
    Thanks received
    9
    Rep Power
    37
    Quote Originally Posted by Luke132 View Post
    u already answered ur own question bro
    http://i.imgur.com/JMfpDoj.png
    so what did I do wrong there then?
    Reply With Quote  
     

  4. #4  
    Member Leprechaun noting (PI) Market Banned


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    35
    Posts
    12,574
    Thanks given
    199
    Thanks received
    7,106
    Rep Power
    5000
    the array has to be named different, sec, i see what ur tryna do but ur going about it all wrong

    Attached imageAttached image
    Reply With Quote  
     

  5. #5  
    Member Leprechaun noting (PI) Market Banned


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    35
    Posts
    12,574
    Thanks given
    199
    Thanks received
    7,106
    Rep Power
    5000
    Code:
    int[] herbs = {1,2,3,4};
    for(int i = 0;i < herbs.length;i++){
    			if (c.getItems().playerHasItem(herbs[i], amount)) {
    			c.getItems().deleteItem(herbs[i], amount);
    			c.getItems().addItem(whateveritemuwannaadd, amount);
    			}
    			}
    			}

    Attached imageAttached image
    Reply With Quote  
     

  6. #6  
    Donator


    Join Date
    Mar 2013
    Age
    24
    Posts
    1,767
    Thanks given
    335
    Thanks received
    386
    Rep Power
    318
    Integer 'h1' is not Declared. The Array name is already being used for another Integer Variable. You should know how fix such a Simple Problem.

    (I'm referring to this: http://i.imgur.com/JMfpDoj.png)
    Reply With Quote  
     

  7. #7  
    Registered Member
    Zivik's Avatar
    Join Date
    Oct 2007
    Age
    28
    Posts
    4,421
    Thanks given
    891
    Thanks received
    1,527
    Rep Power
    3285
    Quote Originally Posted by Sir Paramvir View Post
    Integer 'h1' is not Declared. The Array name is already being used for another Integer Variable. You should know how fix such a Simple Problem.
    Give him a break mate. Atleast he's trying.

    What Luke did is correct. Just base it on that.
    Reply With Quote  
     

  8. Thankful user:


  9. #8  
    Donator


    Join Date
    Mar 2013
    Age
    24
    Posts
    1,767
    Thanks given
    335
    Thanks received
    386
    Rep Power
    318
    Quote Originally Posted by Zivik View Post
    Give him a break mate. Atleast he's trying.

    What Luke did is correct. Just base it on that.
    I'm pretty sure Eclispe helps Solve these Problems....
    Reply With Quote  
     

  10. #9  
    Member Leprechaun noting (PI) Market Banned


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    35
    Posts
    12,574
    Thanks given
    199
    Thanks received
    7,106
    Rep Power
    5000
    using eclipse is pointless if u dont understand what eclipse is telling u, everyone starts out somewhere u moron

    Attached imageAttached image
    Reply With Quote  
     

  11. #10  
    Naughty Toys
    Toys's Avatar
    Join Date
    Sep 2013
    Posts
    201
    Thanks given
    21
    Thanks received
    9
    Rep Power
    37
    Quote Originally Posted by Sir Paramvir View Post
    I'm pretty sure Eclispe helps Solve these Problems....
    I had it as h before but it wasn't working and eclipse said to change it to h1 so i did, that didn't do anything at all, so I just screenied there. I knew in the pic it wasn't declared, but when h was declared it didn't make a difference to h1, so i didn't bother changing.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. [pi] item noting [pi]
    By ruff in forum Help
    Replies: 4
    Last Post: 10-23-2011, 11:32 AM
  2. [PI]Fixed Noted dupe
    By Kobra in forum Snippets
    Replies: 14
    Last Post: 03-03-2011, 02:52 AM
  3. [PI] Noted Item Trade dupe help [PI]
    By Integer in forum Help
    Replies: 6
    Last Post: 08-07-2010, 04:19 AM
  4. [pi] noted dupe
    By Kobra in forum Help
    Replies: 4
    Last Post: 08-06-2010, 05:28 AM
  5. [PI]noted dupe
    By bobetoe in forum Help
    Replies: 0
    Last Post: 07-14-2010, 07:55 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •