Use code tags next time.
Also, you can just take the regular protect method, and replace what's necessary.
|
I have Curses on my server but wen i do protect item on curses, it doesnt protect it and i loose it here are the codes.
if(c.playerLevel[5] > 0 || !Config.PRAYER_POINTS_REQUIRED) {
if(c.getPA().getLevelForXP(c.playerXP[5]) >= c.CURSE_LEVEL_REQUIRED[i] || !Config.PRAYER_LEVEL_REQUIRED) {
boolean headIcon = false;
switch(i) {
case 0://pItem
if (c.curseActive[i] == false) {
c.lastProtItem = System.currentTimeMillis();
//c.startAnimation(12567);
//c.gfx0(2213);
c.protectItem = true;
} else {
c.protectItem = false;
}
break;
================================================== ======
if(c.prayerActive[10]) { // PROTECT ITEM = TRUE
if(c.itemKeptId[3] > 0) {
c.getItems().addItem(c.itemKeptId[3], 1);
}
}
}
================================================== =======
The normal Protect Item works but the one on curses doesnt is there like a better code were i can put it? Can somebody pls help
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |