Jump to content
  • 0
Sign in to follow this  
petergrayson

Everywhere is 'dangerous' Help?

Question

Everywhere on my source that i'm working on is a 'dangerous' area apart from banks ect.. It was a pk server before it was released. Does anyone know how to change it from pk worlds? Like, only make the wildy and dangerous place instead of alover the world? I've been looking through some files and nothing jumps out at me:/ If anyone knows what files to look at could they let me know? Thanks

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0
Still needing help.. How can i remove "Dangerous" area's apart from in the wildy?

Share this post


Link to post
Share on other sites
  • 0
First thing is first you should get x and y coords of the wilderness, simply go from one end of the wildly get coords then the other end, you should make something like a square so everything bounded in that area will be the wilderness.

Than there should be coords that determine how big the wildy or pvp bounderies are. I am not sure about your source but in mine I can find it in world.java or wilderness.java. Look for something that has coords like:

(tile.getX() >= 3280 && tile.getX() <= 3183
&& tile.getY() >= 3883 && tile.getY() <= 3888);

Than look for each of the coord boundaries and take out the onces outside of the wilderness or add whatever you want. Then test it out.

hope I helped

Share this post


Link to post
Share on other sites
  • 0
[MENTION=133675]plot[/MENTION] In World.Java I've got this code
[CODE]public static final boolean isMultiArea(WorldTile tile) {
int destX = tile.getX();
int destY = tile.getY();[/CODE]
and then it goes like
[CODE](destX >= 3462 && destX <= 3511 && destY >= 9481 && destY <= 9521 && tile.getPlane() == 0) //kalphite queen lair[/CODE]

This is for adding multi-combat areas? But i'll have a look in wilderness.java

Share this post


Link to post
Share on other sites
  • 0
In wilderness.java there's this code:
[CODE]public static final boolean isAtWild(WorldTile tile) {//TODO fix this
return (tile.getX() >= 3011 && tile.getX() <= 3132
&& tile.getY() >= 10052 && tile.getY() <= 10175) //fortihrny dungeon
|| (tile.getX() >= 2940 && tile.getX() <= 3395
&& tile.getY() >= 3525 && tile.getY() <= 4000)
|| (tile.getX() >= 3264 && tile.getX() <= 3279
&& tile.getY() >= 3279 && tile.getY() <= 3672)
|| (tile.getX() >= 2756 && tile.getX() <= 2875
&& tile.getY() >= 5512 && tile.getY() <= 5627)
|| (tile.getX() >= 3158 && tile.getX() <= 3181
&& tile.getY() >= 3679 && tile.getY() <= 3697)
|| (tile.getX() >= 3280 && tile.getX() <= 3183
&& tile.getY() >= 3885 && tile.getY() <= 3888) || (tile.getX() >= 3012 && tile.getX() <= 3059
&& tile.getY() >= 10303 && tile.getY() <= 10351);
}[/CODE]
But when I take the coords out its still wilderness everywhere? Really need some assistance please anyone.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×