Thread: 317 [PI] Need help defining if (nonWild) Statement (Safe Area)

Results 1 to 4 of 4
  1. #1 317 [PI] Need help defining if (nonWild) Statement (Safe Area) 
    Registered Member
    Join Date
    Jun 2014
    Posts
    48
    Thanks given
    1
    Thanks received
    1
    Rep Power
    13
    Hi there,

    I've been trying to create a safe area within a wilderness area I specified, however I didn't have a nonWild boolean in my player.java file!

    I shoved one in there, and am trying to "define" it in the client.java file, so that although it is within the wilderness area, if within the safe area, there is no wilderness level, or attack option.

    That said, I started my first ever java project and rsps three days ago, so I'm not the best at this...

    This is the best I could come up with sofar, which isn't really working...

    Code:
    			if (nonWild()){
    				wildLevel = 0;
    				getActionSender().showOption(3, 0, "Null", 1);
    				getActionSender().sendFrame126("@grn@Safe", 199);
    			}

    The problem with this is, it doesn't work at all! Any help would be greatly appreciated!
    Reply With Quote  
     

  2. #2  
    Donator

    Join Date
    Jul 2013
    Posts
    488
    Thanks given
    21
    Thanks received
    42
    Rep Power
    0
    no need for this i don't think? just edit the x and y coords of the wildy and remove the area you wish to be safe
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jun 2014
    Posts
    48
    Thanks given
    1
    Thanks received
    1
    Rep Power
    13
    That wont work, as I want the safe area to be Within the wilderness area:



    In order to do this, I need to create the boxed area of wilderness (which I've done) and then specify a box within that area which is not wilderness - to do this I believe I need to use a nonWild boolean.

    Something like this? Except it can't be right, as it's not working

    Code:
     public boolean nonWild() {
            if ((absX > 2417 && absX < 2432 && absY > 3072 && absY < 3087)
                    || heightLevel >= 0) {
                return true;
            } else {
                return false;
            }
    }
    Reply With Quote  
     

  4. Thankful user:


  5. #4  
    Registered Member
    Join Date
    Jan 2014
    Posts
    813
    Thanks given
    69
    Thanks received
    47
    Rep Power
    9
    if ((absX > 2417 && absX < 2432 && absY > 3072 && absY < 3087)


    first coords top right corner.

    2nd coords bottom left corner
    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. [317 PI] Need help with an NPC dialogue...
    By Shapesnatch in forum Help
    Replies: 4
    Last Post: 11-24-2013, 09:20 AM
  2. 317 PI - Need Help With Auto-Donation
    By Super Nova in forum Help
    Replies: 4
    Last Post: 09-24-2013, 12:58 PM
  3. [317] [PI] Need help adding mod crowns to yell...
    By Blood_Barrage in forum Help
    Replies: 0
    Last Post: 08-19-2013, 06:50 AM
  4. 317 [pi] need help bad
    By Hiken jr in forum Help
    Replies: 28
    Last Post: 02-18-2013, 04:15 PM
  5. [317][PI]Need help fixing equip item speed!
    By justinmperry in forum Help
    Replies: 0
    Last Post: 11-27-2012, 01:58 AM
Tags for this Thread

View Tag Cloud

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