Leech it off a allstar base or sotmhing
|
does anybody know how to make fightpits or funpk area? or atleast can give me a link or code to one plz. and ive tried searching and googling so
Leech it off a allstar base or sotmhing
@ playerassistant the line above
Will check if there if they have a boolean or int true and drop items based on that.Code:c.getItems().resetKeepItems();
so make the zone in player.java, example
Code:public boolean funPK() { if(absX > 2942 && absX < 2948 && absY > 3367 && absY < 3374 || absX > 3179 && absX < 3191 && absY > 3432 && absY < 3448 || absX > 3248 && absX < 3258 && absY > 3414 && absY < 3425 || absX > 2947 && absX < 2950 && absY > 3367 && absY < 3370 || absX > 3008 && absX < 3019 && absY > 3352 && absY < 3359) { return true; } return false; }Code:if (!c.inPits && !c.infunPK() && c.playerRights != 4 && c.playerRights != 5) { c.getItems().resetKeepItems();
in player.java i found this and changed it to my coords i want funpk in but i still lose items :/
public boolean inFunPk() {
return absX >= 3068 && absX <= 3084 && absY >= 3529 && absY <= 3542;
}
did you addto to the line above @ playerassCode:!c.inFunPK()
and yes its for PICode:c.getItems().resetKeepItems();
do i add it here
if((c.playerRights == 2 && Config.ADMIN_DROP_ITEMS) || c.playerRights != 2) {
if(!c.isSkulled) { // what items to keep
c.getItems().keepItem(0, true);
c.getItems().keepItem(1, true);
c.getItems().keepItem(2, true);
}
if(c.prayerActive[10] && System.currentTimeMillis() - c.lastProtItem > 700) {
c.getItems().keepItem(3, true);
}
c.getItems().dropAllItemsPVP();
if(c.trade11 < 1 && !c.inRFD() && !c.isInFala() && !c.isInArd()) {
c.getItems().dropAllItems(); // drop all items
c.getItems().deleteAllItems(); // delete all items
}
if(c.inRFD()) {
c.getItems().deleteAllItems(); // delete all items
}
c.getPA().ResetGWKC();
Code:if((c.playerRights == 2 && Config.ADMIN_DROP_ITEMS) || c.playerRights != 2 && !c.inFunPK()) {
so i add after or before that
Code:if((c.playerRights == 2 && Config.ADMIN_DROP_ITEMS) || c.playerRights != 2 && !c.inFunPK()) { if(!c.isSkulled) { // what items to keep c.getItems().keepItem(0, true); c.getItems().keepItem(1, true); c.getItems().keepItem(2, true); } if(c.prayerActive[10] && System.currentTimeMillis() - c.lastProtItem > 700) { c.getItems().keepItem(3, true); } c.getItems().dropAllItemsPVP(); if(c.trade11 < 1 && !c.inRFD() && !c.isInFala() && !c.isInArd()) { c.getItems().dropAllItems(); // drop all items c.getItems().deleteAllItems(); // delete all items } if(c.inRFD()) { c.getItems().deleteAllItems(); // delete all items } c.getPA().ResetGWKC();
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |