Thread: Cant equip new customs added

Results 1 to 5 of 5
  1. #1 Cant equip new customs added 
    Founder of Divine Services
    DivineServices's Avatar
    Join Date
    Jul 2013
    Posts
    320
    Thanks given
    8
    Thanks received
    41
    Rep Power
    27
    Alright so basically I added Polypore + Ganodermic Models and everything works perfect until I try to wear them. Every time I attempt to wear it I get a error in my server's console which will be shown down below. One thing I did do was put random bonuses in my item.cfg just cuz im lazy as shit. I will be showing

    Tutorial I used
    [SPOIL]http://www.rune-server.org/runescape...ic-models.html[/SPOIL]

    My item.cfg
    [SPOIL]item = 15130 Ganodermic_visor Boss. 02600 2600 2600 0 0 0 -21 -7 24 22 20 -4 22 0 0
    item = 15131 Ganodermic_poncho Boss. 2600 2600 2600 0 0 0 -21 -7 24 22 20 -4 22 0 0
    item = 15132 Ganodermic_leggings Boss. 2600 2600 2600 0 0 0 -21 -7 24 22 20 -4 22 0 0
    item = 15133 Polypore_staff Boss. 0 0 0 41 57 -4 0 0 13 26 7 0 0 56 0[/SPOIL]

    My ints
    [SPOIL]case 15130:
    itemDef.name = "Ganodermic visor";
    itemDef.description = "It's an Ganodermic visor";
    itemDef.actions = new String[] { null, "Wear", "Check", "Clean", "Drop"};
    itemDef.groundActions = new String[] { null, null, "take", null, null};
    itemDef.modelID = 10935;
    itemDef.maleEquip1 = 10373;
    itemDef.femaleEquip1 = 10523;
    itemDef.modelZoom = 1118;
    itemDef.modelRotation1 = 215;
    itemDef.modelRotation2 = 175;
    itemDef.modelOffset1 = 1;
    itemDef.modelOffset2 = -30;
    break;
    case 15131:
    itemDef.name = "Ganodermic poncho";
    itemDef.description = "It's an Ganodermic poncho";
    itemDef.actions = new String[] { null, "Wear", "Check", "Clean", "Drop"};
    itemDef.groundActions = new String[] { null, null, "take", null, null};
    itemDef.modelID = 10919;
    itemDef.maleEquip1 = 10490;
    itemDef.femaleEquip1 = 10664;
    itemDef.modelZoom = 1513;
    itemDef.modelRotation1 = 485;
    itemDef.modelRotation2 = 13;
    itemDef.modelOffset1 = 1;
    itemDef.modelOffset2 = -3;
    break;
    case 15132:
    itemDef.name = "Ganodermic leggings";
    itemDef.description = "It's an Ganodermic leggings";
    itemDef.actions = new String[] { null, "Wear", "Check", "Clean", "Drop"};
    itemDef.groundActions = new String[] { null, null, "take", null, null};
    itemDef.modelID = 10942;
    itemDef.maleEquip1 = 10486;
    itemDef.femaleEquip1 = 10578;
    itemDef.modelZoom = 1513;
    itemDef.modelRotation1 = 498;
    itemDef.modelRotation2 = 0;
    itemDef.modelOffset1 = 8;
    itemDef.modelOffset2 = -18;
    break;
    case 15133:
    itemDef.name = "Polypore staff";
    itemDef.description = "It's an Polypore staff";
    itemDef.actions = new String[] { null, "Wield", "Check", "Clean", "Drop"};
    itemDef.groundActions = new String[] { null, null, "take", null, null};
    itemDef.modelID = 13426;
    itemDef.maleEquip1 = 13417;
    itemDef.femaleEquip1 = 13417;
    itemDef.modelZoom = 3750;
    itemDef.modelRotation1 = 1454;
    itemDef.modelRotation2 = 997;
    itemDef.modelOffset1 = 0;
    itemDef.modelOffset2 = 8;
    break/SPOIL]

    Console Error I get
    [SPOIL][/SPOIL]


    Any help will be greatly appreciated
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Jan 2012
    Posts
    265
    Thanks given
    6
    Thanks received
    14
    Rep Power
    0
    Quote Originally Posted by kapsieart View Post
    One thing I did do was put random bonuses in my item.cfg just cuz im lazy as shit.
    This shouldn't cause anything because the server wouldn't start if something was off. You would just get a **** ton of errors running the server.

    ItemAssistant.java and paste the code around line: 1231
    Reply With Quote  
     

  3. #3  
    Founder of Divine Services
    DivineServices's Avatar
    Join Date
    Jul 2013
    Posts
    320
    Thanks given
    8
    Thanks received
    41
    Rep Power
    27
    Quote Originally Posted by A Deja Vu View Post
    This shouldn't cause anything because the server wouldn't start if something was off. You would just get a **** ton of errors running the server.

    ItemAssistant.java and paste the code around line: 1231
    if(slot >= 0 && wearID >= 0) {
    int toEquip = c.playerItems[slot];
    int toEquipN = c.playerItemsN[slot];
    int toRemove = c.playerEquipment[targetSlot];
    int toRemoveN = c.playerEquipmentN[targetSlot];
    if (toEquip == toRemove + 1 && Item.itemStackable[toRemove]) {
    deleteItem(toRemove, getItemSlot(toRemove), toEquipN);
    c.playerEquipmentN[targetSlot] += toEquipN;
    } else if (targetSlot != 5 && targetSlot != 3) {
    c.playerItems[slot] = toRemove + 1;
    c.playerItemsN[slot] = toRemoveN;
    c.playerEquipment[targetSlot] = toEquip - 1;
    c.playerEquipmentN[targetSlot] = toEquipN;
    } else if (targetSlot == 5) {
    boolean wearing2h = is2handed(getItemName(c.playerEquipment[c.playerWeapon]).toLowerCase(), c.playerEquipment[c.playerWeapon]);
    boolean wearingShield = c.playerEquipment[c.playerShield] > 0;
    if (wearing2h) {
    toRemove = c.playerEquipment[c.playerWeapon];
    toRemoveN = c.playerEquipmentN[c.playerWeapon];
    c.playerEquipment[c.playerWeapon] = -1;
    c.playerEquipmentN[c.playerWeapon] = 0;
    updateSlot(c.playerWeapon);
    }
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Jan 2012
    Posts
    265
    Thanks given
    6
    Thanks received
    14
    Rep Power
    0
    Okay, did you put the wear item id or name into the server? I'm only guessing off the top of my head here to try to give you a hand. Do you have teamviewer because maybe we can help each other because I will be adding polypore into my server shortly already have it 100% wearing but not server sided where it uses mage.

    Add my skype: Zeke.nye (We can help each other out!)
    Reply With Quote  
     

  5. Thankful user:


  6. #5  
    Founder of Divine Services
    DivineServices's Avatar
    Join Date
    Jul 2013
    Posts
    320
    Thanks given
    8
    Thanks received
    41
    Rep Power
    27
    fixed the problem, thanks so much a deja vu
    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. Cant equip new customs added
    By DivineServices in forum Help
    Replies: 0
    Last Post: 03-13-2014, 04:35 AM
  2. [718]Adding a new custom rank to a server
    By Saddam in forum Snippets
    Replies: 4
    Last Post: 03-08-2014, 09:02 PM
  3. Adding a new custom item
    By Galaxica in forum Help
    Replies: 17
    Last Post: 01-23-2014, 08:15 PM
  4. [718+]Adding New Custom Items .
    By Cya Forever in forum Help
    Replies: 2
    Last Post: 04-22-2013, 08:20 PM
  5. Replies: 14
    Last Post: 07-17-2012, 04:13 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
  •