Just add the fun PK coordinates in the inWild boolean.
|
Ok, well I am making a fun pk type of area in my server. How can i make it so that if "isInFunpk" you can attack others? Right now when you go to attack someone in the area you get the message "This player is not in the wilderness!" Also one of the players gets skulled. If someone can help me get it so you can attack if isInFunpk and help me get no skull to show up when you attack there i'll rep++ I hope that is clear enough.
Thanks.
~Comedy
Just add the fun PK coordinates in the inWild boolean.
Thanks it worked, I still need to know how to make it so that the person does not get skulled if in that area.
~Comedy
Oh, then you would want to create a new boolean with coordinates.
So like
isInFunPK() {
if(getX() = ###, etc....
return true;
Then find the method in which it makes it so you can ONLY attack in the wilderness. So like
if(inWild) {
showPlayerCommand("Attack") sort of thing.
Change the inWild to inWild || isInFunPK so it will check whether you are in the wilderness OR in fun PK. Then in the method in which it skulls you just add a boolean.
if(inWild && firstAttacker) {
skullTimer = 10;
The boolean with check if you are in the wilderness. Since you are in FUNPK, it won't skull you. Lol this was really messy but I hope it helps
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |