|
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
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);
}
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!)
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |