Wednesday, 2025-01-08, 7:31 AM
CoolerScape
Welcome Guest | RSS
Main | [TuT]Making a safe zone[TuT] - Forum | Registration | Login
[ New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
[TuT]Making a safe zone[TuT]
shockzDate: Wednesday, 2008-09-24, 9:28 PM | Message # 1
Man/Woman
Group: Administrator
Messages: 16
Reputation: 1
Status: Member is Offline
Description: How to make a wilderness zone in your game turn into a safe zone!
Difficulty: 3/10
Assumed Knowledge: How to understand english language...
Tested Server: peltascape (works for all)
Files/Classes Modified: client.java

TUT:

Open client.java
Search for:

Code
public boolean nonWild() {

Then you should see something like this under that:

Code
        if ((absX >= 3249 && absX <= 3258 && absY >= 3438 && absY <= 3431)

Then all kinds of other codes.
Now lets make you a safe zone.
Copy and paste this code under the code above.

Code
|| (absX >= #### && absX <= #### && absY >= #### && absY <= ####)

OK now to understand this code this is what it means (im a dumby and I understand it)
the first absX and absY is your southwest corner of the safe area.
the second absX and absY is the northeast cornor of your safe area.

So you simply go to the soutwest area and get the coordinates and replace it with ####
Then you go to the norteast area and get the coordinates and replace it with ####
This makes a square safe area!

Here's a little extra of what varrock would be if it was safe area:

Code
               || (absX >= 3175 && absX <= 3255 && absY >= 3381 && absY <= 3505)

i no its a simple [tut] but its for new comers so enjoy
100% credit
shockz.

 
  • Page 1 of 1
  • 1
Search:

Copyright MyCorp © 2025 Powered by uCoz