Thread: Item slots

Results 1 to 4 of 4
  1. #1 Item slots 
    Registered Member
    Join Date
    Aug 2013
    Posts
    42
    Thanks given
    21
    Thanks received
    2
    Rep Power
    36
    Hello there.
    I downloaded recently a source and I am pretty fine with it, but it seems like some items don't go in the correct spots (ex: Void top). Could anybody tell me what should I do in order to fix such items?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Aug 2013
    Posts
    42
    Thanks given
    21
    Thanks received
    2
    Rep Power
    36
    nobody knows?
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Aug 2013
    Age
    27
    Posts
    1,128
    Thanks given
    373
    Thanks received
    754
    Rep Power
    0
    Go to ItemAssistant.java
    Search for: public boolean wearItem(int wearID, int slot) {
    Under targetSlot = 3;
    You will see a bracket }
    Under it add:
    Code:
    switch (wearID) {
    Then under the code above, you add this:
    Code:
    				case ####: //change #### to the item ID
    				targetSlot=13; //change this for the slot you want it to be
    				break;
    Hat -> targetSlot=0;
    Cape -> targetSlot=1;
    Amulet -> targetSlot=2;
    Arrows -> targetSlot=13;
    Body -> targetSlot=4;
    Shield -> targetSlot=5;
    Legs -> targetSlot=7;
    Gloves -> targetSlot=9;
    Boots -> targetSlot=10;
    Ring -> targetSlot=12;
    Weapon -> targetSlot=3;
    Reply With Quote  
     

  4. Thankful user:


  5. #4  
    Registered Member
    Join Date
    Aug 2013
    Posts
    42
    Thanks given
    21
    Thanks received
    2
    Rep Power
    36
    Quote Originally Posted by Ardi Rizal View Post
    Go to ItemAssistant.java
    Search for: public boolean wearItem(int wearID, int slot) {
    Under targetSlot = 3;
    You will see a bracket }
    Under it add:
    Code:
    switch (wearID) {
    Then under the code above, you add this:
    Code:
    				case ####: //change #### to the item ID
    				targetSlot=13; //change this for the slot you want it to be
    				break;
    Hat -> targetSlot=0;
    Cape -> targetSlot=1;
    Amulet -> targetSlot=2;
    Arrows -> targetSlot=13;
    Body -> targetSlot=4;
    Shield -> targetSlot=5;
    Legs -> targetSlot=7;
    Gloves -> targetSlot=9;
    Boots -> targetSlot=10;
    Ring -> targetSlot=12;
    Weapon -> targetSlot=3;
    Wow, that worked really well, thank you very much for your help! Repped
    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. Wrong item slot
    By MetalGear in forum Help
    Replies: 4
    Last Post: 05-31-2011, 04:11 PM
  2. Replies: 4
    Last Post: 06-25-2010, 05:11 AM
  3. Item slot help rep++ rewarded
    By xx k03d xx in forum Help
    Replies: 18
    Last Post: 07-13-2009, 03:11 PM
  4. different item slot
    By wildcard in forum Requests
    Replies: 2
    Last Post: 03-23-2009, 04:01 AM
  5. [RS2D] Item Slot Packet
    By CORBA in forum Tutorials
    Replies: 8
    Last Post: 06-12-2008, 06: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
  •