Purpose : to teach you a little bit on how to make interfaces work.
Difficulty : 0/10 if you cant read please leave now.
Server base : Scratch
Credits : nobody since this is way too simple. or else it would be me
Step 1 : Add this command
Code:
else if (command.startsWith("pclegs"))
{
int pleg = Integer.parseInt(command.substring(10));
pCLegs = pleg;
}
You might have to change this command several times to figure out all styles , this is how they should be used
pCBeard = pCBeard
pCTorso = pCTorso;
pCArms = pCArms;
pCHands = pCHands;
pCLegs = pCLegs;
pCFeet = pCFeet;
Now in game you would have to type :chead ## then your head should change to the style belonging to that id.
With this command you can figure out all leg styles now we're going to use this to make Tessalias Leg shop working wich is interface 0 , so make it when you talk to tessalia interface pops up.
would be packet npc click 1 :
Code:
if(NPCID == ##) { // enter tessalias id
showInterface(0);
}
And in packet clicking most buttons add :
Code:
case 130://plain trousers standard
pCLegs = ##;
break;
case 131://shorts standard
pCLegs = ##;
break;
case 132://flares standard
pCLegs = ##;
break;
case 133://turn ups standard
pCLegs = ##;
break;
That is for clicking 1 of the 4 legs in the interface you will need the leg IDs for them ofcourse
also add:
Code:
case 92://kaki
pCLegs = ##;
break;
case 93://black
pCLegs = ##;
break;
case 94://crimson
pCLegs = ##;
break;
case 95://navy
pCLegs = ##;
break;
case 96://straw
pCLegs = ##;
break;
case 97://white
pCLegs = ##;
break;
case 98://red
pCLegs = ##;
break;
case 99://blue
pCLegs = ##;
break;
case 100://green
pCLegs = ##;
break;
case 101://yellow
pCLegs = ##;
break;
case 102://purple
pCLegs = ##;
break;
case 103://orange
pCLegs = ##;
break;
case 104://rose
pCLegs = ##;
break;
case 105://lime
pCLegs = ##;
break;
case 106://cyan
pCLegs = ##;
break;
case 107://emerald
pCLegs = ##;
break;
Those are the colours.
Now this isnt very well explained I know , but you should be able to work your way out as I gave you the button ids and the start.