Thread: Interface, can only see one

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1 fixed 
    Registered Member
    Join Date
    Apr 2013
    Posts
    12
    Thanks given
    1
    Thanks received
    2
    Rep Power
    21
    fixed
    Reply With Quote  
     

  2. #2  
    Registered Member
    Markian's Avatar
    Join Date
    Apr 2009
    Posts
    614
    Thanks given
    17
    Thanks received
    26
    Rep Power
    373
    Quote Originally Posted by Alonzo View Post


    That wildy level interface is what I just added. But when i go to places (such as pest control, in like the pest control boat, or in the pest control game) it doesn't show those interfaces. Just the wildy level.

    Is there any way I could allow it so it shows the wildy level AND other interfaces? Such as the pest control ones.
    If you want to change the walkable interface just call it when you are in boat or in pest control, for example:

    Code:
    if (inPestControl())
    c.getPA().walkableInterface(18050);
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Apr 2013
    Posts
    12
    Thanks given
    1
    Thanks received
    2
    Rep Power
    21
    Quote Originally Posted by Markian View Post
    If you want to change the walkable interface just call it when you are in boat or in pest control, for example:

    Code:
    if (inPestControl())
    c.getPA().walkableInterface(18050);
    Where exactly would i declare that? In the pc method or what?
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Mar 2013
    Posts
    256
    Thanks given
    356
    Thanks received
    109
    Rep Power
    0
    Quote Originally Posted by Alonzo View Post
    Where exactly would i declare that? In the pc method or what?
    Put it inside the process() method in Client.java
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Apr 2013
    Posts
    12
    Thanks given
    1
    Thanks received
    2
    Rep Power
    21
    Quote Originally Posted by Darkness View Post
    Put it inside the process() method in Client.java

    Didn't work
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Apr 2013
    Posts
    12
    Thanks given
    1
    Thanks received
    2
    Rep Power
    21
    Anyone else got any ideas?
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Dec 2011
    Posts
    967
    Thanks given
    234
    Thanks received
    208
    Rep Power
    0
    I looked through the guide, and just find

    Code:
    	public boolean inPvP() {
    		return(!inSafeZone());
    	}
    and simply change it to

    Code:
    	public boolean inPvP() {
    		return(!inSafeZone() && !inPestControl());
    	}
    Ect...
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Apr 2013
    Posts
    12
    Thanks given
    1
    Thanks received
    2
    Rep Power
    21
    Quote Originally Posted by icandoit View Post
    I looked through the guide, and just find

    Code:
    	public boolean inPvP() {
    		return(!inSafeZone());
    	}
    and simply change it to

    Code:
    	public boolean inPvP() {
    		return(!inSafeZone() && !inPestControl());
    	}
    Ect...
    Ok that works, but then if i do that in a pvp area (such as fight pits) it won't let me attack other players. It says "That player is not in pvp"
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Apr 2013
    Posts
    12
    Thanks given
    1
    Thanks received
    2
    Rep Power
    21
    Bump
    Reply With Quote  
     

  10. #10  
    Banned

    Join Date
    Dec 2011
    Posts
    967
    Thanks given
    234
    Thanks received
    208
    Rep Power
    0
    You added this in combat assistant

    Code:
    		if(!Server.playerHandler.players[c.playerIndex].inPvP() && Server.playerHandler.players[c.playerIndex].safeTimer <= 0) {
    			c.sendMessage("@[email protected] player is not in PvP.");
    			c.stopMovement();
    			c.getCombat().resetPlayerAttack();
    			return false;
    		}
    		if(c.inSafeZone() && c.safeTimer <= 0) {
    			c.sendMessage("@[email protected] are not in PvP.");
    			c.stopMovement();
    			c.getCombat().resetPlayerAttack();
    			return false;
    		}
    Just change it to

    Code:
    		if(!Server.playerHandler.players[c.playerIndex].inPvP() && Server.playerHandler.players[c.playerIndex].safeTimer <= 0) {
    			c.sendMessage("@[email protected] player is not in PvP.");
    			c.stopMovement();
    			c.getCombat().resetPlayerAttack();
    			return false;
    		}
    		if(c.inSafeZone() && c.safeTimer <= 0 && !c.inFunPk && !c.inDuelArena && !c.inFightPits()) {
    			c.sendMessage("@[email protected] are not in PvP.");
    			c.stopMovement();
    			c.getCombat().resetPlayerAttack();
    			return false;
    		}
    Replace that with whatever your fight pit method is
    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] I can only add one ladder?
    By Matt0wn3r in forum Help
    Replies: 5
    Last Post: 09-16-2010, 11:38 PM
  2. I can only see the Forums to Red Carpet.
    By Xero in forum Complaints
    Replies: 9
    Last Post: 07-21-2009, 11:08 PM
  3. Can't see vet section
    By Fezz in forum Forum Related Help
    Replies: 2
    Last Post: 11-15-2008, 09:28 PM
  4. Using a List to only allow one connection
    By meiscooldude in forum Tutorials
    Replies: 7
    Last Post: 08-10-2008, 10:45 PM
  5. Replies: 3
    Last Post: 12-27-2007, 11:05 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
  •