Thread: items 11969+ weap slot

Results 1 to 7 of 7
  1. #1 items 11969+ weap slot 
    Registered Member Scenemo's Avatar
    Join Date
    Apr 2011
    Posts
    283
    Thanks given
    12
    Thanks received
    0
    Rep Power
    1
    all my items 11969+ in item.cfg are equipping in weap slot. even if they have the name "cape" they are equipping as a weapon. this is my item.java for capes part

    public static boolean playerCape(int itemId) {
    String[] data = {
    "cloak", "cape", "attractor", "Attractor", "Ava's"
    };
    String item = getItemName(itemId);
    if (item == null) {
    return false;
    }
    boolean item1 = false;
    for(int i = 0; i < data.length; i++ ) {
    if(item.endsWith(data[i]) || item.contains(data[i])) {
    item1 = true;
    }
    }
    return item1;
    }
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Sep 2010
    Age
    29
    Posts
    567
    Thanks given
    147
    Thanks received
    202
    Rep Power
    0
    Quote Originally Posted by Scenemo View Post
    all my items 11969+ in item.cfg are equipping in weap slot. even if they have the name "cape" they are equipping as a weapon. this is my item.java for capes part
    It has nothing to do with that method, it's obviously in your itemassistant.
    Reply With Quote  
     

  3. #3  
    Registered Member Scenemo's Avatar
    Join Date
    Apr 2011
    Posts
    283
    Thanks given
    12
    Thanks received
    0
    Rep Power
    1
    oh soz :/ where at in itemassistant would i look
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Jul 2008
    Posts
    3,523
    Thanks given
    188
    Thanks received
    696
    Rep Power
    0
    You have to add the items to item.cfg or item.xml for it to work, the server does not know the name of the item unless it is in the item configuration for the server.
    Reply With Quote  
     

  5. #5  
    Registered Member Scenemo's Avatar
    Join Date
    Apr 2011
    Posts
    283
    Thanks given
    12
    Thanks received
    0
    Rep Power
    1
    Quote Originally Posted by Badger View Post
    You have to add the items to item.cfg or item.xml for it to work, the server does not know the name of the item unless it is in the item configuration for the server.
    but they are all in item.cfg
    Reply With Quote  
     

  6. #6  
    Registered Member Scenemo's Avatar
    Join Date
    Apr 2011
    Posts
    283
    Thanks given
    12
    Thanks received
    0
    Rep Power
    1
    Quote Originally Posted by k3vin View Post
    It has nothing to do with that method, it's obviously in your itemassistant.
    lolz fail.. i found it. it was itemhandler P
    Reply With Quote  
     

  7. #7  
    Donator

    Robgob69's Avatar
    Join Date
    Oct 2010
    Age
    33
    Posts
    749
    Thanks given
    71
    Thanks received
    139
    Rep Power
    117
    or you could just add the item to the capes array thats in most common PI based servers. It too is in the Item.java.
    potatoes.
    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] items go in weapon slot
    By Jhcnhjm in forum Help
    Replies: 1
    Last Post: 05-06-2011, 10:40 PM
  2. [Pi] items in wrong armour slot
    By turm0ilz in forum Help
    Replies: 4
    Last Post: 02-26-2011, 03:04 PM
  3. Items go in currect slot?
    By Solid in forum Help
    Replies: 2
    Last Post: 10-12-2009, 04:54 AM
  4. how to fix armor from going into weap slot
    By owner josh in forum Tutorials
    Replies: 21
    Last Post: 05-25-2009, 10:21 PM
  5. [REQ] Items go in the right slot [REQ]
    By Hunter K0 U All in forum Requests
    Replies: 1
    Last Post: 12-04-2008, 03:54 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
  •