Put this in your commandsQuote:
try /prof blade 20
EDIT:does anybody know how to change hairstyle and avatar?
else if (Splitter[0].ToLower() == "/hair")
{
int Hairstyle_I = Convert.ToInt32(Splitter[1]);
Client.Char.HairStyle = Hairstyle_I;
Client.SendData(CPacket.CharInfo(Client.Char));
}
thnx it worked but do u know how to make it that items will use name instead of ID? and another minor thing avatarQuote:
Put this in your commands
Code:else if (Splitter[0].ToLower() == "/hair") { int Hairstyle_I = Convert.ToInt32(Splitter[1]); Client.Char.HairStyle = Hairstyle_I; Client.SendData(CPacket.CharInfo(Client.Char)); }
did you included prof.cs in the project? and i had the same error go 1 or 2 pages back for the answerQuote:
Ok, I have an error, it says "The name 'Prof' does not exist in the current context File: Commands.cs Line: 93 Column: 49" I have the Prof.cs in my "Server" file, help? :P
i changed it a bit but if i try it nothing happens for example i try @hairstyle 36 and nothing happens well the screen flashes but thats allQuote:
Put this in your commands
Code:else if (Splitter[0].ToLower() == "[b]@hairstyle[/b]") { int Hairstyle_I = Convert.ToInt32(Splitter[1]); Client.Char.HairStyle = Hairstyle_I; Client.SendData(CPacket.CharInfo(Client.Char)); }
hereQuote:
Djago160 can you upload your prof.cs and commands.cs pls :)