Thread: [PI] SafeZone & better clipping [PI]

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 [PI] SafeZone & better clipping [PI] 
    Registered Member
    Join Date
    May 2012
    Posts
    445
    Thanks given
    31
    Thanks received
    19
    Rep Power
    48
    Hi everybody, I've been working in project insanity from 2 weeks and I added alot, I have 2 things that I could not find in my 2 weeks coding (started coding 3 weeks ago) and its how to add SafeZone and better following clip..

    Yes, there are many guides about SafeZones but I need one that has SafeZones for hieghts because My safe zone but I need hieghts only.. FIXED

    Following clip, searched alooooooooooooot in google about following clip for like 10 days till now but didn't find one.. I've added this guide http://www.rune-server.org/runescape...-clipping.html and it works good for following clip and npc clip.. But there is 1 problem with following clip and its if there is player A and player B. If player A and B both are in cornor, one of them follows the other and he goes throw wall and I need to fix this as soon as possible. Someone told me this guide will work http://www.rune-server.org/runescape...following.html Yes it worked but the problem is the following now is very very bad so I deleted it, the problem was when a player follows other he keeps going backward and forward for a while the follows the player..

    If someone has a suggestion for any of this please post here as soon as possible, ahh and yes I said that but again my base is Project Insanity.

    Thank you all for helping!

    Edit: I need now the interface for Castle Wars waiting zone, mine looks like: FIXED

    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    May 2012
    Posts
    445
    Thanks given
    31
    Thanks received
    19
    Rep Power
    48
    Bump, still needing it plz
    Reply With Quote  
     

  3. #3  
    Software Developer

    Tyrant's Avatar
    Join Date
    Jul 2013
    Age
    24
    Posts
    1,562
    Thanks given
    678
    Thanks received
    423
    Rep Power
    1060
    Meh, you could simply google how to add safezone, but i'll give you the base for it, on combatAssistant.java, search for checkReq you should find some void called in something similar to that, then scroll a down bit and do something like:

    Code:
    		if(Server.playerHandler.players[c.playerIndex].inSafeZone()) {
    			c.sendMessage("That player is in a safezone and cannot be harm'd.");
    			c.stopMovement();
    			c.getCombat().resetPlayerAttack();   
                }
    You will need to make inSafeZone area and on Client.java at HandlePvPInterface (Not sure about the uppercases )

    add this somewhere after a if
    Code:
    } else if (inSafeZone()) {
            // Send here the interface for Wild and change the text to SafeZone
    }
    ^ Can't remember that interface thing
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    May 2012
    Posts
    445
    Thanks given
    31
    Thanks received
    19
    Rep Power
    48
    Quote Originally Posted by DharokZ View Post
    Meh, you could simply google how to add safezone, but i'll give you the base for it, on combatAssistant.java, search for checkReq you should find some void called in something similar to that, then scroll a down bit and do something like:

    Code:
    		if(Server.playerHandler.players[c.playerIndex].inSafeZone()) {
    			c.sendMessage("That player is in a safezone and cannot be harm'd.");
    			c.stopMovement();
    			c.getCombat().resetPlayerAttack();   
                }
    You will need to make inSafeZone area and on Client.java at HandlePvPInterface (Not sure about the uppercases )

    add this somewhere after a if
    Code:
    } else if (inSafeZone()) {
            // Send here the interface for Wild and change the text to SafeZone
    }
    ^ Can't remember that interface thing
    Thanks bro, but if you read what I said you would know what I need.. I need it for hieght 1, because of something
    Reply With Quote  
     

  5. #5  
    Learning Code
    Riddler's Avatar
    Join Date
    Oct 2012
    Posts
    338
    Thanks given
    10
    Thanks received
    16
    Rep Power
    13
    When I made safe zones I would always put in the x,y,z for coordinates. your z is height. just change it to like, 1 , 1, 1. instead of 1 , 1, 0




    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    May 2012
    Posts
    445
    Thanks given
    31
    Thanks received
    19
    Rep Power
    48
    Quote Originally Posted by Riddler View Post
    When I made safe zones I would always put in the x,y,z for coordinates. your z is height. just change it to like, 1 , 1, 1. instead of 1 , 1, 0
    Thats exactly what I need, like mine in player.java is *absX > XXXX && absX < XXXX && absY > YYYY && absY < YYYY* But I don't have the height and I didn't find yet how to add it..

    Edit: fixed it thanks bro
    Now I need the clipping

    Edit2: Need the interface too got tired
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    May 2012
    Posts
    445
    Thanks given
    31
    Thanks received
    19
    Rep Power
    48
    Bump need this please as soon as possible please..
    Reply With Quote  
     

  8. #8  
    Software Developer

    Tyrant's Avatar
    Join Date
    Jul 2013
    Age
    24
    Posts
    1,562
    Thanks given
    678
    Thanks received
    423
    Rep Power
    1060
    so just add height or whatever is your height integer as == 1, I.E

    heightH = your height integer:


    absY <= 5000 && heightH == 1))



    Quote me if you don't get it
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    May 2012
    Posts
    445
    Thanks given
    31
    Thanks received
    19
    Rep Power
    48
    Quote Originally Posted by DharokZ View Post
    so just add height or whatever is your height integer as == 1, I.E

    heightH = your height integer:


    absY <= 5000 && heightH == 1))



    Quote me if you don't get it
    Quote you because I did it if you see up anyway thanks bro but I need the rest
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    May 2012
    Posts
    445
    Thanks given
    31
    Thanks received
    19
    Rep Power
    48
    Bump still needing this clipping and interface plz!
    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: 1
    Last Post: 06-07-2011, 09:43 PM
  2. Replies: 0
    Last Post: 06-05-2011, 07:03 PM
  3. [pi]$ Npc & Player combat clipping$ [pi]
    By Usaclub in forum Requests
    Replies: 2
    Last Post: 04-29-2011, 01:54 PM
  4. [PI] Re-enabling player clipping
    By Throat in forum Help
    Replies: 1
    Last Post: 07-26-2010, 12:46 PM
  5. [PI]Tips for better stability?
    By Division in forum Help
    Replies: 9
    Last Post: 06-15-2010, 01:40 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
  •