Well, I have decided to get off my ass and start working on that Summoning Project I promised you guys a few months ago. I just found a code snippet to replace my packet 57, which is using items on npcs. Unfortunately, when I specify the NPC I ONLY want it to work on, your character will not do anything. He just sits there.
So....here is my packet 57:
case 57: // Use item on npc
int ItemUsed = inStream.readUnsignedWordA();
int NpcUsedOn = inStream.readSignedWordBigEndianA();//inStream.readUnsignedWordA(); tells which npc by order in list. 1 = first npc spawned ?
switch(ItemUsed) {
case 4151:
sendMessage("Whip.");
break;
case 15255:
if (NpcUsedOn == 409) {
customCommand("train");
}
break;
default:
sendMessage("Nothing interesting happens.");
break;
}
break;
The variables being used to specify the npc:
int NpcUsedOn = inStream.readSignedWordBigEndianA();
So does anyone know what's wrong? It won't do anything, BUT there are NO compile errors. Do I have the wrong variable being used, or what am I missing?
-Thanks
DO NOT REPLY UNLESS YOU HAVE A GUESS, SPAM POSTS WILL BE REMOVED AND YOU WILL BE WARNED.