Thread: How to make it people can't walk if they are in a interface pi

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 How to make it people can't walk if they are in a interface pi 
    Registered Member
    Join Date
    Feb 2017
    Posts
    54
    Thanks given
    0
    Thanks received
    2
    Rep Power
    11
    Hello rune-server,

    I am trying to make people can't walk in a interface could anyone help me out?

    Thanks!

    /edit Interface id = 17250
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Oct 2015
    Posts
    136
    Thanks given
    3
    Thanks received
    7
    Rep Power
    11
    Walking should automaticly close the interface, if you want to make it so they can't walk at all, find the method that adds a path to the queu and add an if statement which looks somewhat like this:
    if(player.getOpenInterface() == INTERFACE_ID)
    return;
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Feb 2017
    Posts
    54
    Thanks given
    0
    Thanks received
    2
    Rep Power
    11
    Quote Originally Posted by monsterbull v2 View Post
    Walking should automaticly close the interface, if you want to make it so they can't walk at all, find the method that adds a path to the queu and add an if statement which looks somewhat like this:
    if(player.getOpenInterface() == INTERFACE_ID)
    return;

    Thank you man but there isn't something like openinterface added what would it be in a 317 server?

    Quote Originally Posted by monsterbull v2 View Post
    Walking should automaticly close the interface, if you want to make it so they can't walk at all, find the method that adds a path to the queu and add an if statement which looks somewhat like this:
    if(player.getOpenInterface() == INTERFACE_ID)
    return;
    BUMP
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Oct 2015
    Posts
    136
    Thanks given
    3
    Thanks received
    7
    Rep Power
    11
    That depends on your source.. Just check for anything interface related in Player.java and I'm sure you'll find it somewhere in there. If not you'll have to add it yourself.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Feb 2017
    Posts
    54
    Thanks given
    0
    Thanks received
    2
    Rep Power
    11
    Quote Originally Posted by monsterbull v2 View Post
    That depends on your source.. Just check for anything interface related in Player.java and I'm sure you'll find it somewhere in there. If not you'll have to add it yourself.
    i did this
    if(c.xInterfaceId == 17250)
    return;

    But its still letting me walk trough minimap?
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Oct 2015
    Posts
    136
    Thanks given
    3
    Thanks received
    7
    Rep Power
    11
    Then you didn't add the if statement in the correct place. You need to add it in the method where it adds a path to the walking queu. If your server handles minimap and regular walking differently you'll also have to add it in the method where it handles the minimap.

    EDIT: Actually, post the method for xInterfaceId and show us where you added the if statement
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Feb 2017
    Posts
    54
    Thanks given
    0
    Thanks received
    2
    Rep Power
    11
    Quote Originally Posted by monsterbull v2 View Post
    Then you didn't add the if statement in the correct place. You need to add it in the method where it adds a path to the walking queu. If your server handles minimap and regular walking differently you'll also have to add it in the method where it handles the minimap.

    EDIT: Actually, post the method for xInterfaceId and show us where you added the if statement
    the xinterface is added in player.java : xInterfaceId = 0,

    and i have added it walking.java if(c.xInterfaceId == 17250)
    return;
    Reply With Quote  
     

  8. #8  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    Quote Originally Posted by turk123 View Post
    the xinterface is added in player.java : xInterfaceId = 0,

    and i have added it walking.java if(c.xInterfaceId == 17250)
    return;
    try to do:
    Code:
     if(c.xInterfaceId == 17250)  {
    return;
    }
    If that do not work, your value c.xInterfaceId is incorrect or you send this in the wrong place.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Oct 2015
    Posts
    136
    Thanks given
    3
    Thanks received
    7
    Rep Power
    11
    Quote Originally Posted by arch337 View Post
    Code:
     if(c.xInterfaceId == 17250)  {
    return;
    }
    is the same as

    Code:
    if(c.xInterfaceId == 17250)
    return;
    also, you just copied the declaration of the variable.. You're not setting it anywhere..
    Reply With Quote  
     

  10. #10  
    Registered Member Drop X Rates's Avatar
    Join Date
    Jun 2017
    Age
    27
    Posts
    9
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    add me op skype mr.kazod
    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. Replies: 6
    Last Post: 07-04-2011, 09:35 PM
  2. Replies: 1
    Last Post: 02-18-2011, 11:00 AM
  3. Replies: 6
    Last Post: 12-08-2009, 09:17 PM
  4. Replies: 3
    Last Post: 11-28-2009, 04:31 PM
  5. How to make it so they can only,
    By *Rs-Coding* in forum Help
    Replies: 3
    Last Post: 01-02-2009, 07:31 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
  •