PDA

View Full Version : Some problems



Caldito
June 19th, 2010, 02:50
Base: Codeusa

Ok Here's my 2 little problem that i have to fix because tomorrow I will unleash my server :p
1.- In my server instead of using ::yell for general speaking you put / but when you put that this appear:
[Pk2vs]Caldito: Message here. How do i change that pk2vs?

2.- In commands like ::mb, ::kq, ::godwars, ::corpbeast, when i use that command it teleport me to there but in the right top corner it appear the wilderness skull at lvl 150 :o and i can't teleport out of there. can you tell me how to fix that?

Thanks!!!!!:p:p:p:p

Musicmasta
June 19th, 2010, 05:00
1.) the / you would open up PublicChat.java and Search Pk2vs Change All Pk2vs to your Servers Name
2.) You Would Have To Create The Areas Into A Safe Pvp Zone So To Do That You Would Open Player.java and Search


public boolean Safezone

You Should See Something like


public boolean Safezone(int x, int y) {
if ((x >= 3091 && x <= 3098 && y >= 3488 && y <= 3499) ||

So that line if ((x >= 3091 && x <= 3098 && y >= 3488 && y <= 3499) ||
Below That You Would Add


(x >= XXXX && x <= XXXX && y >= YYYY && y <= YYYY) ||

The X's and Y's Would Be X and Y Coordinates :D the >= represents if the coordinate is Greater than or Equal To that Absolute X or that Absolute Y Coordinat and the <= means the X or Y Coordinate is less then the coordinate you've added into the postitions where the XXXX or YYYY are.
Hope I Helped XD Good Luck With Your Server!!! Lol =D

Caldito
June 19th, 2010, 05:23
Well tried but not working instead of doing all that how can i make that any player can teleport in lvl 20 of the wilderness +?

Nathan'
June 19th, 2010, 05:41
ERRRRMMMM here you go sunny jim. In player.java search for


if (getWildernessLevel() >= 20 && !lever && getWildernessLevel()

change the 20 to what ever number you want to be ( this is the level people are able to teleport out of)