Thread: edgepk

Results 1 to 5 of 5
  1. #1 edgepk 
    Registered Member
    Join Date
    Sep 2012
    Posts
    33
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    i wanty that whole edgevile of my rsps to be pking an i want to know how do i do?
    an what are the codes i need to do?
    i want it all wild exept for the bank
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jul 2011
    Posts
    691
    Thanks given
    163
    Thanks received
    161
    Rep Power
    0
    Go into Player.java and add:
    Code:
    public boolean inEdgePk () {
    	if(absX >= XCOORD1 && absX <= XCOORD2 && absY >= YCOORD1 && absY <= YCOORD2) {
    	return true;
    		}
    		return false;
    	}
    Run to the Start Point of your pking zone (South-West Point)
    type ::coords or ::mypos and fill in XCOORD1 and YCOORD1 with those coords

    then run to the end point of your pking zone (North-East Point)
    type ::coords or ::mypos and fill in XCOORD2 and YCOORD2 with those coords

    Then in the same class find your inWild() method and add this in there:
    Code:
    if(inEdgePk())
    		return true;
    Reply With Quote  
     

  3. #3  
    Registered Member
    whac's Avatar
    Join Date
    Nov 2011
    Posts
    176
    Thanks given
    35
    Thanks received
    84
    Rep Power
    245
    Quote Originally Posted by Karmakaidan View Post
    Go into Player.java and add:
    Code:
    public boolean inEdgePk () {
    	if(absX >= XCOORD1 && absX <= XCOORD2 && absY >= YCOORD1 && absY <= YCOORD2) {
    	return true;
    		}
    		return false;
    	}
    Run to the Start Point of your pking zone (South-West Point)
    type ::coords or ::mypos and fill in XCOORD1 and YCOORD1 with those coords

    then run to the end point of your pking zone (North-East Point)
    type ::coords or ::mypos and fill in XCOORD2 and YCOORD2 with those coords

    Then in the same class find your inWild() method and add this in there:
    Code:
    if(inEdgePk())
    		return true;
    That method can be simplified into:
    Code:
    public boolean inEdgePk () {
    	return absX >= XCOORD1 && absX <= XCOORD2 && absY >= YCOORD1 && absY <= YCOORD2;
    }
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Sep 2012
    Posts
    33
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    what does that mean i me what i have to walk give me an example of the cords?

    like i dont get it?
    Reply With Quote  
     

  5. #5  
    Author of the first public OSRSPS

    Shadowy's Avatar
    Join Date
    Sep 2009
    Age
    28
    Posts
    1,499
    Thanks given
    490
    Thanks received
    241
    Rep Power
    307
    it checks the position of the player - if it's within the coords then you can attack people, long as that booleans in the isWild method

    absX >= XCOORD1 && absX <= XCOORD2

    thats the x axis coords, so the bottom left and top right of the zone,

    others are ovbs y axis, bottom left y and top right y
    Owner of OS-RSPS, the first Oldschool RuneScape Server (2014)
    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. || EdgePk || VPS || [24/7]!
    By MrClassic in forum Advertise
    Replies: 6
    Last Post: 02-16-2010, 11:46 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
  •