本文整理汇总了C#中Server.Network.Client.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# Client.ToString方法的具体用法?C# Client.ToString怎么用?C# Client.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.Network.Client
的用法示例。
在下文中一共展示了Client.ToString方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ProcessData
//.........这里部分代码省略.........
}
}
// Prevent hacking
if (ItemManager.Items[client.Player.Inventory[invNum].Num].Type != Enums.ItemType.Currency && ItemManager.Items[client.Player.Inventory[invNum].Num].StackCap > 0)
{
if (amount > client.Player.Inventory[invNum].Amount)
{
Messenger.HackingAttempt(client, "Item amount modification");
return;
}
}
client.Player.DropItem(invNum, amount);
//Messenger.SendStats(client);
}
break;
case "adventurelog":
{
Messenger.SendAdventureLog(client);
}
break;
case "checkarrows":
{
//int n = ArrowManagerBase.Arrows[parse[1].ToInt()].Pic;
//Messenger.SendDataToMap(client.Player.MapID, TcpPacket.CreatePacket("checkarrows", client.ToString(), n.ToString()));
}
break;
case "checkemoticons":
{
if (client.Player.Muted == false)
{
int n = EmoticonManagerBase.Emoticons[parse[1].ToInt()].Pic;
Messenger.SendDataToMap(client.Player.MapID, TcpPacket.CreatePacket("checkemoticons", client.ToString(), n.ToString()));
}
}
break;
case "clienterror":
{
string error = parse[1];
error += "\r\n\r\n------- ERROR REPORT END -------\r\n\r\n";
Logging.Logger.AppendToLog("/Client Error Logs/" + DateTime.Now.ToShortDateString().Replace("/", "-") + "/log.txt", error);
}
break;
#endregion
#region Scripts
case "hotscript1":
Scripting.ScriptManager.InvokeSub("HotScript1", client);
break;
case "hotscript2":
Scripting.ScriptManager.InvokeSub("HotScript2", client);
break;
case "hotscript3":
Scripting.ScriptManager.InvokeSub("HotScript3", client);
break;
case "hotscript4":
Scripting.ScriptManager.InvokeSub("HotScript4", client);
break;
case "questionresult":
if (!string.IsNullOrEmpty(client.Player.QuestionID))
{
string id = client.Player.QuestionID;
client.Player.QuestionID = "";
if (id.StartsWith("DropItem:"))
{