Thread: [PI] Smithing(smelting) issue

Results 1 to 2 of 2
  1. #1 [PI] Smithing(smelting) issue 
    Registered Member
    Join Date
    Aug 2013
    Posts
    42
    Thanks given
    21
    Thanks received
    2
    Rep Power
    36
    This is how the smelting 5 option looks like:
    Spoiler for Smithing.java:
    } else if (c.smeltAmount == 5) {
    c.getPA().closeAllWindows();
    if (hasOres(barType)) {
    c.getItems().deleteItem(oreId, c.getItems().getItemSlot(oreId), 1);
    if (oreId2 > 0)
    c.getItems().deleteItem(oreId2, c.getItems().getItemSlot(oreId2), 0);
    c.getItems().addItem(barId, 5);
    c.getPA().addSkillXP(exp * Config.SMITHING_EXPERIENCE, c.playerSmithing);
    c.getPA().refreshSkill(c.playerSmithing);
    c.smeltAmount--;
    c.smeltTimer = 1;
    } else {
    c.sendMessage("You do not have the required ores to smelt this.");
    c.getPA().removeAllWindows();
    }
    Spoiler for Clickingbuttons.java:
    case 29025:
    if (c.smeltInterface) {
    c.smeltType = 2363;
    c.smeltAmount = 5;
    c.getSmithing().startSmelting(c.smeltType);
    }
    break;
    So, the problem is that the character takes only 1 coal and 1 runite ore (for example) but gives away 5 bars. The thing is, the number of bars is given by "(barId, 5)", but where are the ores requirements placed?

    If I change the number 1 from --- getItemSlot(oreId), 1); --- and from --- getItemSlot(oreId2), 1); --- into 0, then the character will not use any ore anymore. If I change these two numbers into 5 instead, then it will still take only one ore of each, so basically the server doesn't seem to allow it to take more or something like that.

    Note - that I am talking here about the Make 5 option, not the make 1.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Aug 2013
    Posts
    42
    Thanks given
    21
    Thanks received
    2
    Rep Power
    36
    bump, nobody knows?
    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 [317] Smelting issue
    By Vexare in forum Help
    Replies: 1
    Last Post: 08-27-2012, 12:33 PM
  2. [PI] Smithing and Smelting Error
    By insaneisle in forum Help
    Replies: 0
    Last Post: 03-13-2012, 04:31 PM
  3. [pi] Smithing issue
    By Faygopenguin in forum Help
    Replies: 0
    Last Post: 01-01-2012, 03:22 AM
  4. [PI] Smithing Issue
    By Rockstar Jax in forum Help
    Replies: 2
    Last Post: 08-27-2011, 10:54 PM
  5. Replies: 10
    Last Post: 03-03-2009, 12:58 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •