Thread: [PI] Multiple Harpoons used for one spot

Results 1 to 5 of 5
  1. #1 [PI] Multiple Harpoons used for one spot 
    Registered Member
    Join Date
    Jul 2010
    Posts
    241
    Thanks given
    24
    Thanks received
    13
    Rep Power
    6
    How would I make it so if they have a bigger level harpoon it would make them use that one instead of a lower level one? Tried using the wcing with the for statement.

    But the old fishing base can't read it. Then I changed the wcing into a new fishing base, and that didn't work out too well. So now I am I just asking .


    HTML, PHP, SQL, Java, C++, Javascript coder. I am learning all I can for the upcoming development of some sites and some games.

    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Oct 2011
    Age
    28
    Posts
    1,880
    Thanks given
    311
    Thanks received
    557
    Rep Power
    703
    You'd have to do something like:
    Code:
    public int harpoonToUse() {
            if(c.getItems().playerHasItem(HIGHEST_LEVEL_HARPOON) {
                    return HIGHEST_LEVEL_HARPOON;
            } else if(c.getItems().playerHasItem(LOWER_LEVEL_HARPOON) {
                    //etc...
            }
    }
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jul 2010
    Posts
    241
    Thanks given
    24
    Thanks received
    13
    Rep Power
    6
    Quote Originally Posted by Revival View Post
    You'd have to do something like:
    Code:
    public int harpoonToUse() {
            if(c.getItems().playerHasItem(HIGHEST_LEVEL_HARPOON) {
                    return HIGHEST_LEVEL_HARPOON;
            } else if(c.getItems().playerHasItem(LOWER_LEVEL_HARPOON) {
                    //etc...
            }
    }
    Yea but with my fishing base it requires a c.fishitem = #;

    And doesn't recognize different items if I added a string.


    HTML, PHP, SQL, Java, C++, Javascript coder. I am learning all I can for the upcoming development of some sites and some games.

    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jul 2012
    Posts
    361
    Thanks given
    185
    Thanks received
    9
    Rep Power
    25
    public int harpoonToUse() {
    if(c.getItems().(twoboons).playerHasItem(HIGHEST_L EVEL_HARPOON) {
    return HIGHEST_LEVEL_HARPOON;
    } else if(c.getItems().(oneharboon).playerHasItem(LOWER_L EVEL_HARPOON) {
    //etc...
    }
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jul 2010
    Posts
    241
    Thanks given
    24
    Thanks received
    13
    Rep Power
    6
    Quote Originally Posted by always View Post
    public int harpoonToUse() {
    if(c.getItems().(twoboons).playerHasItem(HIGHEST_L EVEL_HARPOON) {
    return HIGHEST_LEVEL_HARPOON;
    } else if(c.getItems().(oneharboon).playerHasItem(LOWER_L EVEL_HARPOON) {
    //etc...
    }
    That's the same thing he posted... But worse... And its not just two harpoons.. It's 5.


    That wouldn't work still with my fishing base..


    HTML, PHP, SQL, Java, C++, Javascript coder. I am learning all I can for the upcoming development of some sites and some games.

    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. Spot the difference between these two:
    By Teemuzz in forum Requests
    Replies: 3
    Last Post: 06-27-2012, 09:36 AM
  2. Where is this spot?
    By W I N in forum Chat
    Replies: 2
    Last Post: 05-07-2011, 10:45 PM
  3. new spot in rs?
    By Mr. Gangster in forum Media
    Replies: 8
    Last Post: 02-06-2009, 11:30 PM
  4. Not sure if this is in right spot S:
    By LeaP Of FaitH in forum Application Development
    Replies: 0
    Last Post: 01-01-2009, 06:54 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
  •