string url = "http://www.google.com";
WebClient webClient = new WebClient();
webClient.Encoding = System.Text.Encoding.UTF8;
try
{
string result = webClient.DownloadString(url);
//find the translation result and cut off everything before it.
result = result.Substring(result.IndexOf("result_box dir=") + 21, 500);
//find the end of the translation and cut off everything after it.
result = result.Substring(0, result.IndexOf("</div>"));
//what you should have left is the pure translation result.
MessageBox.Show(result);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
REPLACE INTO `mobxloottemplate` (`MobXLootTemplate_ID`, `MobName`,`LootTemplateName`, `DropCount`) VALUES ('Gjalpinulva12686','Gjalpinulva','Gjalpinulva','2');
REPLACE INTO `loottemplate` (`LootTemplate_ID`, `TemplateName`, `ItemTemplateID`, `Chance`) VALUES ('Gjalpinulva12686','Gjalpinulva','TWOHAND_Sword_Dragonfury','25');
MobName + Random.ToString()
Return to “%s” Third Party Tools
Users browsing this forum: No registered users and 1 guest