Thread: [PI] Alching Help

Results 1 to 5 of 5
  1. #1 [PI] Alching Help 
    Registered Member
    Join Date
    Jan 2010
    Posts
    62
    Thanks given
    2
    Thanks received
    0
    Rep Power
    1
    Even though you cannot alch gp, it still deletes the runes. How can I fix this?

    if(itemId == 995 || itemId == 8890) {
    c.sendMessage("Coins are already made out of gold.");
    return;
    c.getItems().deleteItem(itemId, slot, 1);
    c.getItems().addItem(995, (int)(c.getShops().getItemShopValue(itemId)*.75));
    c.startAnimation(c.MAGIC_SPELLS[50][2]);
    c.gfx100(c.MAGIC_SPELLS[50][3]);
    c.alchDelay = System.currentTimeMillis();
    sendFrame106(6);
    addSkillXP(c.MAGIC_SPELLS[50][7] * Config.MAGIC_EXP_RATE, 6);
    refreshSkill(6);
    }
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Mar 2010
    Posts
    121
    Thanks given
    12
    Thanks received
    9
    Rep Power
    24
    Quote Originally Posted by H O R R O R View Post
    Even though you cannot alch gp, it still deletes the runes. How can I fix this?
    Code:
    if(itemId == 995 || itemId == 8890) {
    c.sendMessage("Coins are already made out of gold.");
    return;
    } // You need to close the if statement.
    c.getItems().deleteItem(itemId, slot, 1);
    c.getItems().addItem(995, (int)(c.getShops().getItemShopValue(itemId)*.75));
    c.startAnimation(c.MAGIC_SPELLS[50][2]);
    c.gfx100(c.MAGIC_SPELLS[50][3]);
    c.alchDelay = System.currentTimeMillis();
    sendFrame106(6);
    addSkillXP(c.MAGIC_SPELLS[50][7] * Config.MAGIC_EXP_RATE, 6);
    refreshSkill(6);
    }
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jan 2010
    Posts
    62
    Thanks given
    2
    Thanks received
    0
    Rep Power
    1
    Quote Originally Posted by Kakariko505 View Post
    Code:
    if(itemId == 995 || itemId == 8890) {
    c.sendMessage("Coins are already made out of gold.");
    return;
    } // You need to close the if statement.
    c.getItems().deleteItem(itemId, slot, 1);
    c.getItems().addItem(995, (int)(c.getShops().getItemShopValue(itemId)*.75));
    c.startAnimation(c.MAGIC_SPELLS[50][2]);
    c.gfx100(c.MAGIC_SPELLS[50][3]);
    c.alchDelay = System.currentTimeMillis();
    sendFrame106(6);
    addSkillXP(c.MAGIC_SPELLS[50][7] * Config.MAGIC_EXP_RATE, 6);
    refreshSkill(6);
    }
    well I have an item I want to edit with, so it's going to look like

    if(itemId == 995 || itemId == 8890) {
    c.sendMessage("Coins are already made out of gold.");
    return;
    } else if(itemId == xxxx) {

    etc..
    and it still deletes the runes.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Mar 2010
    Posts
    121
    Thanks given
    12
    Thanks received
    9
    Rep Power
    24
    Can you post the whole method please?
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jan 2010
    Posts
    62
    Thanks given
    2
    Thanks received
    0
    Rep Power
    1
    Quote Originally Posted by Kakariko505 View Post
    Can you post the whole method please?
    case 1178: // high alch if(System.currentTi
    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. Alching Help
    By Keeps Quiet in forum Help
    Replies: 7
    Last Post: 02-28-2010, 06:02 AM
  2. alching
    By austin_gct in forum Help
    Replies: 0
    Last Post: 10-24-2009, 02:12 AM
  3. my alching BEST EVA!
    By Andy in forum Show-off
    Replies: 18
    Last Post: 09-30-2009, 05:50 PM
  4. alching help
    By Kingdad38 in forum Help
    Replies: 4
    Last Post: 05-24-2009, 10:09 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
  •