Somehow if(item.getLocationSlot() == Inventory.PAPERDOLL_NECK) doesn't seem to work for me even thou item is necklace, neither using if(item.getLocationSlot() == Item.SLOT_NECK)
Edit: Just noticed that getLocationSlot doesn't fit my needs :D
if(item.getItem().getBodyPart() == Item.SLOT_NECK)
worked fine.
Maybe you just put the check in wrong place.
Just put above the line where you send main html and it will work, but don't forget to put return; like Tessa said, or else it wont work :D
Hey, could someone help me a little with this ?
I'm using acis and I need to split armor category.
Because there is only item.isArmor / item.isWeapon / Item.isEtcItem and I would need something like item.isAccesorie.
I tried doing like this:
if((item.isArmor() && item.getLocationSlot() == Inventory.PAPERDOLL_LFINGER || item.getLocationSlot() == Inventory.PAPERDOLL_RFINGER || item.getLocationSlot() == Inventory.PAPERDOLL_NECK || item.getLocationSlot() == Inventory.PAPERDOLL_LEAR || item.getLocationSlot() == Inventory.PAPERDOLL_REAR)
{
itemModel.setL2Type("Accesory");
}
But this didn't work for me :S
I don't understand whats the difference between your and mine code? And I putted ID because I created new line in systemmsg-e.dat with that ID.
EDIT
No more warning when I added :
/**
* ID: 2038<br>
* Message: s1
*/
public static final SystemMessageId TEXT_RED;
TEXT_RED = new SystemMessageId(2038);
Hello cheaters!
I'm sending a message to client like this:
final SystemMessage sm = SystemMessage.getSystemMessage(2038);
sm.addString("Test!");
activeChar.sendPacket(sm);
And I get a warning:
Wrong parameter count '1' for SystemMessageId: SM[2038:null]
What I'm doing wrong?
Hey guys, I wanted to ask maybe someone have a different font for interlude client ? because I seen in some servers they have different font on npc/player names and titles, escpecially on Russian servers.