本文整理匯總了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:"))
{