Thread: 317 PI Need Help With Item Slot

Results 1 to 3 of 3
  1. #1 317 PI Need Help With Item Slot 
    Registered Member
    Join Date
    Sep 2013
    Posts
    78
    Thanks given
    2
    Thanks received
    1
    Rep Power
    9
    I looked at about 4 tuts on how to change item slot for a shield so that it goes into the shield slot for pi. I went into the itemassistant.java, and searched for
    } else if(itemType(wearID).equalsIgnoreCase("ring")) {
    targetSlot=12;
    }
    Then, under that I added:

    switch (wearID) {
    }
    case 14487://Item ID
    targetSlot = 5;//Slot Desired (In Equipment Tab)
    break;
    And it gave me this error:

    src\server\model\items\ItemAssistant.java:1202: error: orphaned case
    case 14487://Item ID
    ^
    1 error
    Press any key to continue . . .

    Please help? Thanks.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jul 2013
    Posts
    32
    Thanks given
    4
    Thanks received
    3
    Rep Power
    14
    switch (wearID) {
    }
    case 14487://Item ID
    targetSlot = 5;//Slot Desired (In Equipment Tab)

    ------>

    switch (wearID) {
    case 14487://Item ID
    targetSlot = 5;//Slot Desired (In Equipment Tab)
    break;
    }

    You need to put your cases inside your switch statements
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Sep 2013
    Posts
    78
    Thanks given
    2
    Thanks received
    1
    Rep Power
    9
    I feel sooo dumb for that lol Thank you very much.
    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] need help with items [thanks + rep]
    By RSWSkiller in forum Help
    Replies: 1
    Last Post: 02-25-2014, 12:57 AM
  2. (PI) need Help with item uses dialogue (PI)
    By VestaZcape in forum Help
    Replies: 0
    Last Post: 03-10-2012, 10:13 PM
  3. [PI]Need help with item slots[PI]
    By Dispute in forum Help
    Replies: 1
    Last Post: 11-05-2011, 09:33 AM
  4. PI: Need help with item req
    By cnx4mia123 in forum Help
    Replies: 9
    Last Post: 08-13-2011, 01:09 PM
  5. [PI] Need help with item+dialogue
    By Beanerrr in forum Help
    Replies: 9
    Last Post: 03-22-2011, 10:11 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
  •