Thanks
You're doing it a bit wrong. This for example would work (tested)Quote:
Yeah if you recheck my post I figured it out just I got abit confused :S xD
Thanks anyway
EDIT: I have this command why wont it work ? it is suppose to announce the message I type in ex: @announce Hello everyone!
here is my command
Any help would be nice, thanks.Code:case "@announce": { GamePackets.Message announce = new GamePackets.Message(Message, "SYSTEM", System.Drawing.Color.Green, GamePackets.Message.Center); client.Send(announce); break; }
case "announce":
{
client.Send(new Message(Data[1], System.Drawing.Color.White, GamePackets.Message.Center));
break;
}
#region Leave market
case 11181:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Would you like to leave the Market ? It's free!");
dialog.Option("Yes.", 1);
dialog.Option("No.", 255);
dialog.Send();
break;
}
case 1:
{
if (client.Entity.PreviousMapID == 1002) //Twincity
{
client.Entity.Teleport(1002, 400, 400);
}
if (client.Entity.PreviousMapID == 1020) // Ape mountian
{
client.Entity.Teleport(1020, 567, 576);
}
if (client.Entity.PreviousMapID == 1000) // Desert City
{
client.Entity.Teleport(1000, 500, 650);
}
if (client.Entity.PreviousMapID == 1001) //Mystic castle
{
client.Entity.Teleport(1001, 316, 642);
}
if (client.Entity.PreviousMapID == 1015) //Bird Island
{
client.Entity.Teleport(1015, 723, 573);
}
if (client.Entity.PreviousMapID == 1011) //Phoenix Castle
{
client.Entity.Teleport(1011, 190, 271);
}
else
{
client.Entity.Teleport(1002, 400, 400);
}
}
break;
}
break;
}
#endregion