I want to know this world like whole varrock
|
How will i do this? title says it all
I want to know this world like whole varrock
public boolean isInPvP() {
return absX > Config.PVP_X_ONE && abs X < Config.PVP_X_TWO && absY > Config.PVP_Y_ONE && absY < Config.PVP_Y_TWO;
}
public boolean isInSafeArea() {
return absX > Config.SAFE_X_ONE && absX < Config.SAFE_X_TWO && absY > Config.SAFE_Y_ONE && absY < Config.SAFE_Y_TWO;
}
if(isInPvP() && !isInSafeArea()) {
//methodology here
}
Hope this helped?
i Too would like to know how this is done, like what coords youwould need
i dont understand :/
public boolean isInPvP() {
return absX > Config.PVP_X_ONE && abs X < Config.PVP_X_TWO && absY > Config.PVP_Y_ONE && absY < Config.PVP_Y_TWO;
}
public boolean isInSafeArea() {
return absX > Config.SAFE_X_ONE && absX < Config.SAFE_X_TWO && absY > Config.SAFE_Y_ONE && absY < Config.SAFE_Y_TWO;
}
if(isInPvP() && !isInSafeArea()) {
//methodology here
}
isinpvp is stating that
area absX > Config.PVP_X_ONE && abs X < Config.PVP_X_TWO && absY > Config.PVP_Y_ONE && absY < Config.PVP_Y_TWO;
is a pvp area
isinsafearea is stating that
absX > Config.SAFE_X_ONE && absX < Config.SAFE_X_TWO && absY > Config.SAFE_Y_ONE && absY < Config.SAFE_Y_TWO;
is a safe area.
if(isInPvP() && !isInSafeArea()) {
is saying if theyre in pvp and NOT in safezone, he put that the rest should be common sense because, thats where you make it like a dangerous area or whatever you wanna do with the "pvp" area
Work a PVP area on a different height level to your main world?
Here follow this.
http://www.rune-server.org/runescape...afe-timer.html
Take what you need from it and modify it according to your preference.
okay thanks guys, to make a whole world pvp would coords be 0 and 0? as its not defining a particular place? orrrrr what shall i just put 324234 23432423 hehe
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |