[Tut] The ::char command fix
Purpose: To fix the ::char command so it changes your appearance
Difficulty: 2
Assumed Knowledge: you should know how to add voids
Server Base: cheeazscape 78
Classes Modified: client.java
ok for you people who have testscape and the ::char command doesnt work then i have fixed your problem .
found the code needed in cheez 78 anyway here what 2 do
Procedure
Step 1
look for
Code:
case 72: //Click to attack
after that case add these 2 cases
Code:
/*case 101: // dunno wtf this is lol, *looks at char design tut* OF COURSE! :P
int boolean1047 = inStream.readUnsignedWord(); // apset? wtf is that lol
int unknown = inStream.readUnsignedWord();
System.out.println("Packet 101: Boolean1047 = "+boolean1047);
System.out.println("Packet 101: Unknown = "+unknown);
break;*/
case 101: //Character Design Screen
int gender = inStream.readSignedByte();
int head = inStream.readSignedByte();
int jaw = inStream.readSignedByte();
int torso = inStream.readSignedByte();
int arms = inStream.readSignedByte();
int hands = inStream.readSignedByte();
int legs = inStream.readSignedByte();
int feet = inStream.readSignedByte();
int hairC = inStream.readSignedByte();
int torsoC = inStream.readSignedByte();
int legsC = inStream.readSignedByte();
int feetC = inStream.readSignedByte();
int skinC = inStream.readSignedByte();
playerLook[0] = gender;
pHead = head;
pBeard = jaw;
pTorso = torso;
pArms = arms;
pHands = hands;
pLegs = legs;
pFeet = feet;
playerLook[1] = hairC;
playerLook[2] = torsoC;
playerLook[3] = legsC;
playerLook[4] = feetC;
playerLook[5] = skinC;
appearanceUpdateRequired = true;
break;
step 2
now find case 185: and add
Code:
case 14067: // Char design accept button
RemoveAllWindows();
break;
and now ure done :P
and incase u dont have it heres the ::char command add it with the rest of ure commands
Code:
else if(command.startsWith("char")) {
showInterface(3559);
}
credits : me me and me
Re: [Tut] The ::char command fix
Meh, I've never seen a server source that doesn't have proper ::char. I could have sworn cheezescape had ::char fully working.
Re: [Tut] The ::char command fix
It would be even cooler if it popped up upon one's first login. And to change it you would have to go to the make-over mage...Realism..haha
Brandon
Re: [Tut] The ::char command fix
But then what would be the fun in that Brandon , ive given them the base code, they can learn to do the rest,
@ Jare
This is an old tutorial i made ages back , so i know alot of server come with it built in now.
Re: [Tut] The ::char command fix
Okay I kind of got that impression. I was thinking.. :eh:
Re: [Tut] The ::char command fix
well
this tut works well for testscape good job :D
Re: [Tut] The ::char command fix
Your TUT Is Exellent!
As tried, i have tested your information and it has passed successfully! This TUT is the real deal. So if it doesnt work, your doing it wrong.
For your exellence, i pronouce you with this:
|\/\/\/\|
________
A Beautiful Hat!
:eek6:
tut rate out of 10: 9.62%
This has really helped the RageZone Community, thank you.