Thread: Items wrong slot

Results 1 to 8 of 8
  1. #1 Items wrong slot 
    Generation-X

    Bilsma's Avatar
    Join Date
    Feb 2011
    Posts
    691
    Thanks given
    657
    Thanks received
    45
    Rep Power
    82
    Uhh does somebody know how to fix items that are in wrong slot?
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jul 2008
    Posts
    3,523
    Thanks given
    188
    Thanks received
    696
    Rep Power
    0
    add the item id to the correct array server sided
    Reply With Quote  
     

  3. #3  
    Generation-X

    Bilsma's Avatar
    Join Date
    Feb 2011
    Posts
    691
    Thanks given
    657
    Thanks received
    45
    Rep Power
    82
    Quote Originally Posted by Badger View Post
    add the item id to the correct array server sided
    Can u please explain it more?
    Reply With Quote  
     

  4. #4  
    ┌∩┐(◣_◢)┌∩┐

    Join Date
    Mar 2011
    Posts
    201
    Thanks given
    64
    Thanks received
    53
    Rep Power
    59
    In itemAssistant.java find this:

    Code:
    public boolean wearItem(int wearID, int slot) {
    Under that add this in...
    Code:
    				switch (wearID) {
    					case ****:
    						targetSlot = 7;
    					break;
    }
    The **** is the item's ID.
    - The targetSlot is the slot you want it to go in, you can find those yourself.
    - For example 7 is Legs.
    - Slot 4 = body.

    Also you may or may not have to comment out this part I haven't tested but it should work:

    Code:
    				/*if(itemType(wearID).equalsIgnoreCase("cape")) {
    					targetSlot=1;
    				} else if(itemType(wearID).equalsIgnoreCase("hat")) {
    					targetSlot=0;
    				} else if(itemType(wearID).equalsIgnoreCase("amulet")) {
    					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")) {
    					targetSlot=12;
    				} else {
    					targetSlot = 3;
    				}*/
    Reply With Quote  
     

  5. #5  
    Generation-X

    Bilsma's Avatar
    Join Date
    Feb 2011
    Posts
    691
    Thanks given
    657
    Thanks received
    45
    Rep Power
    82
    Quote Originally Posted by Draynor View Post
    In itemAssistant.java find this:

    Code:
    public boolean wearItem(int wearID, int slot) {
    Under that add this in...
    Code:
    				switch (wearID) {
    					case ****:
    						targetSlot = 7;
    					break;
    }
    The **** is the item's ID.
    - The targetSlot is the slot you want it to go in, you can find those yourself.
    - For example 7 is Legs.
    - Slot 4 = body.

    Also you may or may not have to comment out this part I haven't tested but it should work:

    Code:
    				/*if(itemType(wearID).equalsIgnoreCase("cape")) {
    					targetSlot=1;
    				} else if(itemType(wearID).equalsIgnoreCase("hat")) {
    					targetSlot=0;
    				} else if(itemType(wearID).equalsIgnoreCase("amulet")) {
    					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")) {
    					targetSlot=12;
    				} else {
    					targetSlot = 3;
    				}*/
    Still need help didnt work
    Reply With Quote  
     

  6. #6  
    Generation-X

    Bilsma's Avatar
    Join Date
    Feb 2011
    Posts
    691
    Thanks given
    657
    Thanks received
    45
    Rep Power
    82
    Can somebody help please
    Reply With Quote  
     

  7. #7  
    Extreme Donator


    Join Date
    Oct 2006
    Posts
    1,370
    Thanks given
    64
    Thanks received
    197
    Rep Power
    426
    Item.java has an array like "boots" "platelegs" "platebodies" add the ID in there


    ~flow@hacking . rs
    Reply With Quote  
     

  8. #8  



    Join Date
    Dec 2010
    Posts
    833
    Thanks given
    261
    Thanks received
    121
    Rep Power
    204
    Under public boolean wearItem(int wearID, int slot) {

    Insert
    Code:
    switch (wearID) {
    					case ****: //replace **** with item's id
    						targetSlot = #; //replace # with targetslot's number. 
    					break;
    }
    Targetslots:

    1=Hat
    0=amulet
    2=arrows
    13=body
    4=shield
    5=legs
    7=gloves
    9=boots
    10=ring
    etc.
    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. [help] wrong slot
    By Mark in forum Models
    Replies: 4
    Last Post: 02-26-2012, 08:15 AM
  2. items in wrong slot
    By mr code in forum Help
    Replies: 5
    Last Post: 11-22-2011, 08:10 PM
  3. Items = Wrong slot
    By Banter in forum Help
    Replies: 7
    Last Post: 07-19-2011, 10:43 PM
  4. [PI] Wrong SLOT
    By Mark in forum Help
    Replies: 20
    Last Post: 05-24-2011, 12:31 AM
  5. [Pi] items in wrong armour slot
    By turm0ilz in forum Help
    Replies: 4
    Last Post: 02-26-2011, 03: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
  •