Thread: [PI] Equipment slots...

Results 1 to 2 of 2
  1. #1 [PI] Equipment slots... 
    Registered Member
    Join Date
    Oct 2011
    Posts
    8
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    How do I set a custom item to the right slaw. Example : 14484 is Dragon claws on my server. They are in the helm slot, along with every other custom weapon.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Edd -'s Avatar
    Join Date
    Jul 2011
    Posts
    664
    Thanks given
    62
    Thanks received
    43
    Rep Power
    84
    itemassistant.

    Code:
    			if(c.playerItems[slot] == (wearID+1)) {				
    				getRequirements(getItemName(wearID).toLowerCase(), wearID);	
    				targetSlot = Item.targetSlots[wearID];
    				/*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;
    				}*/
    				switch (wearID) {
    					case 15040:
    						targetSlot = 3;

    theres an example for the chaotic staff
    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. Replies: 8
    Last Post: 07-15-2011, 05:15 PM
  2. Item Equipment Slots.
    By Bando in forum Configuration
    Replies: 5
    Last Post: 11-08-2010, 05:39 PM
  3. Replies: 2
    Last Post: 09-24-2010, 08:05 PM
  4. Replies: 109
    Last Post: 05-22-2009, 04:42 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
  •