no need for this i don't think? just edit the x and y coords of the wildy and remove the area you wish to be safe
|
Hi there,
I've been trying to create a safe area within a wilderness area I specified, however I didn't have a nonWild boolean in my player.java file!
I shoved one in there, and am trying to "define" it in the client.java file, so that although it is within the wilderness area, if within the safe area, there is no wilderness level, or attack option.
That said, I started my first ever java project and rsps three days ago, so I'm not the best at this...
This is the best I could come up with sofar, which isn't really working...
Code:if (nonWild()){ wildLevel = 0; getActionSender().showOption(3, 0, "Null", 1); getActionSender().sendFrame126("@grn@Safe", 199); }
The problem with this is, it doesn't work at all! Any help would be greatly appreciated!
no need for this i don't think? just edit the x and y coords of the wildy and remove the area you wish to be safe
That wont work, as I want the safe area to be Within the wilderness area:
In order to do this, I need to create the boxed area of wilderness (which I've done) and then specify a box within that area which is not wilderness - to do this I believe I need to use a nonWild boolean.
Something like this? Except it can't be right, as it's not working
Code:public boolean nonWild() { if ((absX > 2417 && absX < 2432 && absY > 3072 && absY < 3087) || heightLevel >= 0) { return true; } else { return false; } }
if ((absX > 2417 && absX < 2432 && absY > 3072 && absY < 3087)
first coords top right corner.
2nd coords bottom left corner
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
Tags for this Thread |