Thread: idk what but its easy fix

Results 1 to 8 of 8
  1. #1 idk what but its easy fix 
    Irathient Developer

    mr selby's Avatar
    Join Date
    May 2011
    Age
    28
    Posts
    1,183
    Thanks given
    95
    Thanks received
    166
    Rep Power
    97
    ok so here is the code that needs fixing :


    case 404:
    if (c.getItems().playerHasItem(18015,1) && c.getItems().playerHasItem(18016,10) && c.getItems().playerHasItem(18017,2) && c.getItems().playerHasItem(526,1) && c.getItems().freeSlots() >= 1) {
    c.getItems().deleteItem(18015, 1);
    c.getItems().deleteItem(18016, 10);
    c.getItems().deleteItem(526, 1);
    c.getItems().deleteItem(18017, 2);
    c.getItems().addItem(12047, 1);
    c.getPA().addSkillXP((1500), 22);
    c.sendMessage("You Created A Spirit Wolf Pouch!");
    } else {
    c.sendMessage("You need a 2 gold charms, 10 shards, a pouch, and a bone");
    }
    break;

    issue : i had 100k of each of those items click the npc it took ALL of them, requires less than 10 of each anyone know the issue?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Apr 2011
    Posts
    29
    Thanks given
    0
    Thanks received
    7
    Rep Power
    1
    edit: nvm
    Reply With Quote  
     

  3. #3  
    Irathient Developer

    mr selby's Avatar
    Join Date
    May 2011
    Age
    28
    Posts
    1,183
    Thanks given
    95
    Thanks received
    166
    Rep Power
    97
    no one knows whats wronge?? i really need this!!
    Reply With Quote  
     

  4. #4  
    Registered Member
    thim slug's Avatar
    Join Date
    Nov 2010
    Age
    28
    Posts
    4,132
    Thanks given
    1,077
    Thanks received
    1,137
    Rep Power
    5000
    Wronge? lol! anyway, I cannot see the problem check the method.
    Reply With Quote  
     

  5. #5  
    Irathient Developer

    mr selby's Avatar
    Join Date
    May 2011
    Age
    28
    Posts
    1,183
    Thanks given
    95
    Thanks received
    166
    Rep Power
    97
    ofc theres something wronge or else i wouldnt post it =p

    the problem is it takes everything instead of whats required, like say i have 100k of each of the items it doesnt take 1,1,2,10 it takes 100k,100k,100k,100k
    i have no clue why it does that either
    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Nov 2010
    Posts
    508
    Thanks given
    5
    Thanks received
    61
    Rep Power
    0
    no idea what your trying todo
    Reply With Quote  
     

  7. #7  
    Irathient Developer

    mr selby's Avatar
    Join Date
    May 2011
    Age
    28
    Posts
    1,183
    Thanks given
    95
    Thanks received
    166
    Rep Power
    97
    can someone help me instead of wondering lol
    Reply With Quote  
     

  8. #8  
    Banned

    Join Date
    Jun 2009
    Posts
    2,916
    Thanks given
    169
    Thanks received
    806
    Rep Power
    0
    delete items things to:

    c.getItems().deleteItem(12155, c.getItems().getItemSlot(12155), 1);

    np
    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. [Easy] Ancient Magicks Anim Gfx [Easy]
    By K2 in forum Requests
    Replies: 0
    Last Post: 05-24-2011, 03:45 AM
  2. Replies: 5
    Last Post: 11-17-2010, 06:48 AM
  3. Replies: 0
    Last Post: 03-25-2010, 11:01 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
  •