Thread: [PI] Protect Item Curse

Results 1 to 2 of 2
  1. #1 [PI] Protect Item Curse 
    Registered Member
    Join Date
    Aug 2011
    Posts
    18
    Thanks given
    0
    Thanks received
    1
    Rep Power
    11
    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
    Reply With Quote  
     

  2. #2  
    HEAD GFX DESIGNER

    Rusko's Avatar
    Join Date
    Aug 2010
    Posts
    3,316
    Thanks given
    645
    Thanks received
    1,199
    Rep Power
    5000
    Use code tags next time.
    Also, you can just take the regular protect method, and replace what's necessary.
    Attached image
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [PI]Fix protect item curse prayer!![PI]
    By pk flavor in forum Tutorials
    Replies: 32
    Last Post: 07-19-2011, 04:14 AM
  2. [PI] DSPK item protect curse REP
    By Syndicate in forum Help
    Replies: 3
    Last Post: 02-09-2011, 03:08 AM
  3. Curse Protect Item
    By darky in forum Help
    Replies: 2
    Last Post: 12-29-2010, 10:40 PM
  4. Protect 3 Item on Death/Protect 1 Item
    By LeBron James in forum Show-off
    Replies: 18
    Last Post: 05-25-2009, 08:48 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •