i added 602 NPCDialogue.Heads on my galkon client
but now its look like this
i dont know what i do wrong cuz i added the head models to my raw.
here my code things:
clientside:
Code:
if(pktType == 75)
{
int j3 = inStream.method436();
int j11 = inStream.method436();
RSInterface.interfaceCache[j11].anInt233 = 2;
RSInterface.interfaceCache[j11].mediaID = j3;
pktType = -1;
return true;
}
Code:
if(pktType == 200)
{
int l8 = inStream.readUnsignedWord();
int i15 = inStream.readSignedWord();
RSInterface class9_4 = RSInterface.interfaceCache[l8];
class9_4.anInt257 = i15;
class9_4.anInt269 = 1600;
if(i15 == -1)
{
class9_4.anInt246 = 0;
class9_4.anInt208 = 0;
}
pktType = -1;
return true;
}
serverside:
DialogueHandler.java:
Code:
case 100:
sendNpcChat3(" ", "Good day. How may I help you?", " ", c.talkingNpc, "Banker");
c.nextChat = 101;
break;
ActionHandler.java:
Code:
case 44:
c.getDH().sendDialogues(100, i);
break;
sendNpcChat2, 3, and 4 voids:
Code:
public void sendNpcChat2(String s, String s1, int ChatNpc, String name) {
c.getPA().sendFrame200(4888, 9847);
c.getPA().sendFrame126(name, 4889);
c.getPA().sendFrame126(s, 4890);
c.getPA().sendFrame126(s1, 4891);
c.getPA().sendFrame75(ChatNpc, 4888);
c.getPA().sendFrame164(4887);
}
public void sendNpcChat3(String s, String s1, String s2, int ChatNpc, String name) {
c.getPA().sendFrame200(4894, 9847); //Was 591
c.getPA().sendFrame126(name, 4895);
c.getPA().sendFrame126(s, 4896);
c.getPA().sendFrame126(s1, 4897);
c.getPA().sendFrame126(s2, 4898);
c.getPA().sendFrame75(ChatNpc, 4894);
c.getPA().sendFrame164(4893);
}
private void sendNpcChat4(String s, String s1, String s2, String s3, int ChatNpc, String name) {
c.getPA().sendFrame200(4901, 9847);
c.getPA().sendFrame126(name, 4902);
c.getPA().sendFrame126(s, 4903);
c.getPA().sendFrame126(s1, 4904);
c.getPA().sendFrame126(s2, 4905);
c.getPA().sendFrame126(s3, 4906);
c.getPA().sendFrame75(ChatNpc, 4901);
c.getPA().sendFrame164(4900);
}
can someone tell me whats wrong?