Thread: Make safe zone say Safe

Results 1 to 3 of 3
  1. #1 Make safe zone say Safe 
    Registered Member BluePlex2000's Avatar
    Join Date
    Dec 2012
    Posts
    36
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    Hi, Just wondering how i would make it say Safe in bottom right corner when in a safe zone.
    It will say Safe if i remove the wilderness from the pk area.
    Reply With Quote  
     

  2. #2  
    Donator
    abd1's Avatar
    Join Date
    Nov 2011
    Posts
    708
    Thanks given
    150
    Thanks received
    67
    Rep Power
    38
    in client.java search for:

    if(inWild() && !isInPbox() && !inFunPk()) {
    if (isNpc) {
    returnNormal();
    }

    you will see something like this:


    } else if(inFunPk()) {
    if (isNpc) {
    returnNormal();
    }
    getPA().walkableInterface(197);
    getPA().sendFrame126("@[email protected]", 199);
    getPA().showOption(3, 0, "Attack", 1);
    wildLevel = 55;
    }



    add under it:
    } else if(inFunPk()) {
    getPA().walkableInterface(197);
    getPA().sendFrame126("@[email protected]", 199);
    }
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Dec 2011
    Posts
    967
    Thanks given
    234
    Thanks received
    208
    Rep Power
    0
    Quote Originally Posted by abd1 View Post
    in client.java search for:

    if(inWild() && !isInPbox() && !inFunPk()) {
    if (isNpc) {
    returnNormal();
    }

    you will see something like this:


    } else if(inFunPk()) {
    if (isNpc) {
    returnNormal();
    }
    getPA().walkableInterface(197);
    getPA().sendFrame126("@[email protected]", 199);
    getPA().showOption(3, 0, "Attack", 1);
    wildLevel = 55;
    }



    add under it:
    } else if(inFunPk()) {
    getPA().walkableInterface(197);
    getPA().sendFrame126("@[email protected]", 199);
    }
    That'll cause a whole lotta blinking and what not...

    Just create another boolean, like inSafezone() and LETS say your previous PK area was ALL of falador, well your safezone is falador bank, right?

    Code:
    public boolean inFalador() {
    return(ALL OF FALADOR coords);
    }
    public boolean inSafeZone() {
    return(FALADOR BANK coords);
    }
    public boolean inFunPk() {
    return(!inSafeZone() && inFalador());
    }
    Then you can add something like

    Code:
    if(inFunPk()) {
    getPA().walkableInterface(197);
    getPA().sendFrame126("@[email protected]", 199);
    getPA().showOption(3, 0, "Attack", 1);
    wildLevel = 55;	
    } else if (inSafeZone() {
    getPA().walkableInterface(197);
    getPA().sendFrame126("@[email protected]", 199);
    getPA().showOption(3, 0, "null", 1);
    }
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to make A Wildy Area SAFE ZONE!
    By xexplicitx in forum Tutorials
    Replies: 8
    Last Post: 12-11-2008, 12:36 PM
  2. How to make safe zones (not much of a tut)
    By willbill1 in forum Tutorials
    Replies: 8
    Last Post: 05-13-2008, 05:53 PM
  3. How To make Safe Zones :)
    By Mr. Gangster in forum Tutorials
    Replies: 4
    Last Post: 04-18-2008, 04:39 AM
  4. How To Make Area's Safe Zones
    By Vice in forum Tutorials
    Replies: 3
    Last Post: 03-09-2008, 02:41 PM
  5. How To Make Safe Zones
    By Shade in forum Tutorials
    Replies: 1
    Last Post: 02-06-2008, 06:06 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
  •