Thread: [PI]Item slots

Results 1 to 7 of 7
  1. #1 [PI]Item slots 
    Extreme Donator


    Join Date
    Nov 2011
    Posts
    793
    Thanks given
    217
    Thanks received
    137
    Rep Power
    181
    I need to change the item slots for a few custom items on my pi, but i don't have a ItemAssistant.java and i cant find a tut to change them without ItemAssistant.java, help is appreciated
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Feb 2012
    Posts
    629
    Thanks given
    201
    Thanks received
    59
    Rep Power
    0
    LOLwut, you don't have an ItemAssistant.java, I've never seen that before lol. Have you tried searching properly ?
    Reply With Quote  
     

  3. #3  
    Extreme Donator


    Join Date
    Nov 2011
    Posts
    793
    Thanks given
    217
    Thanks received
    137
    Rep Power
    181

    Not sure why..
    :/
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Feb 2012
    Posts
    629
    Thanks given
    201
    Thanks received
    59
    Rep Power
    0
    ItemAssistant is in the source files.
    Reply With Quote  
     

  5. #5  
    Extreme Donator


    Join Date
    Nov 2011
    Posts
    793
    Thanks given
    217
    Thanks received
    137
    Rep Power
    181
    Sorry, dont use pi much thanks
    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Feb 2012
    Posts
    629
    Thanks given
    201
    Thanks received
    59
    Rep Power
    0
    No problem, we are all learning java at different levels.
    Reply With Quote  
     

  7. #7  
    Trap God

    Join Date
    Jun 2010
    Age
    28
    Posts
    570
    Thanks given
    27
    Thanks received
    26
    Rep Power
    4
    Go into source file.
    Src/Server/Model/Items/ItemAssistant.java

    Search for "wearItem(int"

    You will see something like this

    Code:
    				} else if(itemType(wearID).equalsIgnoreCase("hat")) {
    					targetSlot=0;
    				} else if(itemType(wearID).equalsIgnoreCase("amulet")) {
    					targetSlot=2;
    				} else if(itemType(wearID).equalsIgnoreCase("necklace")) {
    					targetSlot=2;
    				} else if(itemType(wearID).equalsIgnoreCase("arrows")) {
    					targetSlot=13;
    				} else if(itemType(wearID).equalsIgnoreCase("body")) {
    					targetSlot=4;
    				} else if(itemType(wearID).equalsIgnoreCase("shield")) {
    					targetSlot=5;
    				} else if(itemType(wearID).equalsIgnoreCase("legs")) {
    					targetSlot=7;
    				} else if(itemType(wearID).equalsIgnoreCase("gloves")) {
    					targetSlot=9;
    				} else if(itemType(wearID).equalsIgnoreCase("boots")) {
    					targetSlot=10;	
    				} else if(itemType(wearID).equalsIgnoreCase("ring")) {
    Then add this with your info

    Code:
    } else if (wearID == ####) {
    					targetSlot = 1;
    "What was done to me was monstrous."
    "And they created a monster."
    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] Fixing Item Slots
    By Dexter Morgan in forum Snippets
    Replies: 44
    Last Post: 03-01-2012, 12:07 AM
  2. [PI]Need help with item slots[PI]
    By Dispute in forum Help
    Replies: 1
    Last Post: 11-05-2011, 09:33 AM
  3. [PI]Item Slots[PI]
    By 01053 in forum Help
    Replies: 8
    Last Post: 06-05-2011, 07:04 PM
  4. [PI] Item equip slots [PI]
    By Sillhouette in forum Help
    Replies: 2
    Last Post: 04-01-2011, 09:04 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
  •