Thread: fightpits/funpk

Results 1 to 10 of 10
  1. #1 fightpits/funpk 
    Registered Member Scenemo's Avatar
    Join Date
    Apr 2011
    Posts
    283
    Thanks given
    12
    Thanks received
    0
    Rep Power
    1
    does anybody know how to make fightpits or funpk area? or atleast can give me a link or code to one plz. and ive tried searching and googling so
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Dec 2008
    Posts
    183
    Thanks given
    3
    Thanks received
    1
    Rep Power
    0
    Leech it off a allstar base or sotmhing
    Reply With Quote  
     

  3. #3  
    q.q


    Join Date
    Dec 2010
    Posts
    6,519
    Thanks given
    1,072
    Thanks received
    3,535
    Rep Power
    4752
    @ playerassistant the line above

    Code:
    c.getItems().resetKeepItems();
    Will check if there if they have a boolean or int true and drop items based on that.

    so make the zone in player.java, example

    Code:
    public boolean funPK() {
    		if(absX > 2942 && absX < 2948 && absY > 3367 && absY < 3374 || absX > 3179 && absX < 3191 && absY > 3432 && absY < 3448 || absX > 3248 && absX < 3258 && absY > 3414 && absY < 3425 || absX > 2947 && absX < 2950 && absY > 3367 && absY < 3370 || absX > 3008 && absX < 3019 && absY > 3352 && absY < 3359)		 {	
    			return true;
    		}
    		return false;
    	}
    Code:
    if (!c.inPits && !c.infunPK() && c.playerRights != 4 && c.playerRights != 5) {
    					c.getItems().resetKeepItems();
    Reply With Quote  
     

  4. #4  
    Registered Member Scenemo's Avatar
    Join Date
    Apr 2011
    Posts
    283
    Thanks given
    12
    Thanks received
    0
    Rep Power
    1
    Quote Originally Posted by Harlan View Post
    @ playerassistant the line above

    Code:
    c.getItems().resetKeepItems();
    Will check if there if they have a boolean or int true and drop items based on that.

    so make the zone in player.java, example

    Code:
    public boolean funPK() {
    		if(absX > 2942 && absX < 2948 && absY > 3367 && absY < 3374 || absX > 3179 && absX < 3191 && absY > 3432 && absY < 3448 || absX > 3248 && absX < 3258 && absY > 3414 && absY < 3425 || absX > 2947 && absX < 2950 && absY > 3367 && absY < 3370 || absX > 3008 && absX < 3019 && absY > 3352 && absY < 3359)		 {	
    			return true;
    		}
    		return false;
    	}
    Code:
    if (!c.inPits && !c.infunPK() && c.playerRights != 4 && c.playerRights != 5) {
    					c.getItems().resetKeepItems();
    thx but is it PI?
    Reply With Quote  
     

  5. #5  
    Registered Member Scenemo's Avatar
    Join Date
    Apr 2011
    Posts
    283
    Thanks given
    12
    Thanks received
    0
    Rep Power
    1
    in player.java i found this and changed it to my coords i want funpk in but i still lose items :/
    public boolean inFunPk() {
    return absX >= 3068 && absX <= 3084 && absY >= 3529 && absY <= 3542;
    }
    Reply With Quote  
     

  6. #6  
    q.q


    Join Date
    Dec 2010
    Posts
    6,519
    Thanks given
    1,072
    Thanks received
    3,535
    Rep Power
    4752
    did you add
    Code:
    !c.inFunPK()
    to to the line above @ playerass
    Code:
     c.getItems().resetKeepItems();
    and yes its for PI
    Reply With Quote  
     

  7. #7  
    Registered Member Scenemo's Avatar
    Join Date
    Apr 2011
    Posts
    283
    Thanks given
    12
    Thanks received
    0
    Rep Power
    1
    do i add it here
    if((c.playerRights == 2 && Config.ADMIN_DROP_ITEMS) || c.playerRights != 2) {
    if(!c.isSkulled) { // what items to keep
    c.getItems().keepItem(0, true);
    c.getItems().keepItem(1, true);
    c.getItems().keepItem(2, true);
    }
    if(c.prayerActive[10] && System.currentTimeMillis() - c.lastProtItem > 700) {
    c.getItems().keepItem(3, true);
    }
    c.getItems().dropAllItemsPVP();
    if(c.trade11 < 1 && !c.inRFD() && !c.isInFala() && !c.isInArd()) {
    c.getItems().dropAllItems(); // drop all items
    c.getItems().deleteAllItems(); // delete all items
    }
    if(c.inRFD()) {
    c.getItems().deleteAllItems(); // delete all items
    }
    c.getPA().ResetGWKC();
    Reply With Quote  
     

  8. #8  
    q.q


    Join Date
    Dec 2010
    Posts
    6,519
    Thanks given
    1,072
    Thanks received
    3,535
    Rep Power
    4752
    Code:
    if((c.playerRights == 2 && Config.ADMIN_DROP_ITEMS) || c.playerRights != 2 && !c.inFunPK()) {
    Reply With Quote  
     

  9. #9  
    Registered Member Scenemo's Avatar
    Join Date
    Apr 2011
    Posts
    283
    Thanks given
    12
    Thanks received
    0
    Rep Power
    1
    so i add after or before that
    Reply With Quote  
     

  10. #10  
    q.q


    Join Date
    Dec 2010
    Posts
    6,519
    Thanks given
    1,072
    Thanks received
    3,535
    Rep Power
    4752
    Code:
    if((c.playerRights == 2 && Config.ADMIN_DROP_ITEMS) || c.playerRights != 2 && !c.inFunPK()) {
    if(!c.isSkulled) {	// what items to keep
    c.getItems().keepItem(0, true);
    c.getItems().keepItem(1, true);	
    c.getItems().keepItem(2, true);
    }	
    if(c.prayerActive[10] && System.currentTimeMillis() - c.lastProtItem > 700) {
    c.getItems().keepItem(3, true);
    }
    c.getItems().dropAllItemsPVP();
    if(c.trade11 < 1 && !c.inRFD() && !c.isInFala() && !c.isInArd()) {
    c.getItems().dropAllItems(); // drop all items
    c.getItems().deleteAllItems(); // delete all items
    }
    if(c.inRFD()) {
    c.getItems().deleteAllItems(); // delete all items
    }
    c.getPA().ResetGWKC();
    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. fightpits
    By Mickt3 in forum Help
    Replies: 3
    Last Post: 04-04-2011, 07:32 PM
  2. [TUT]Adding 100% FightPits[TUT]
    By MasonHadley in forum Tutorials
    Replies: 8
    Last Post: 02-07-2011, 06:09 PM
  3. [PI] - Fightpits w/ Staking -
    By Jinrake in forum Tutorials
    Replies: 19
    Last Post: 11-06-2010, 03:38 AM
  4. Broken Fightpits
    By Venum112 in forum Help
    Replies: 1
    Last Post: 02-01-2010, 03:41 PM
  5. The Best Fightpits!!!
    By J.A.V.A in forum Tutorials
    Replies: 20
    Last Post: 05-03-2008, 12:44 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
  •