public static string GetClientLanguage() { string randomString = Others.GetRandomString(Others.Random(5, 10)); string result = Lua.LuaDoString(randomString + " = GetLocale();", randomString); return(result); }
public static WoWCurrency GetCurrencyInfo(int entry) { string randomString = Others.GetRandomString(Others.Random(5, 10)); string result = Lua.LuaDoString( randomString + " = \"\"; " + "local name, currentAmount, texture, earnedThisWeek, weeklyMax, totalMax, isDiscovered = GetCurrencyInfo(" + entry + "); " + randomString + " = tostring(name) .. \"##\" .. tostring(currentAmount) .. \"##\" .. tostring(texture) .. \"##\" .. tostring(earnedThisWeek) .. \"##\" .. tostring(weeklyMax) .. \"##\" .. tostring(totalMax) .. \"##\" .. tostring(isDiscovered);" , randomString); if (!string.IsNullOrWhiteSpace(result)) { string[] ar = { "##" }; string[] slipped = result.Split(ar, StringSplitOptions.None); if (slipped.Length == 6) { var tmp = new WoWCurrency { Entry = entry, Name = slipped[0], CurrentAmount = Others.ToInt32(slipped[1]), FileId = Others.ToInt32(slipped[2]), EarnedThisWeek = Others.ToInt32(slipped[3]), WeeklyMax = Others.ToInt32(slipped[4]), TotalMax = Others.ToInt32(slipped[5]), IsDiscovered = Others.ToBoolean(slipped[6]) }; return(tmp); } } return(new WoWCurrency()); }
public static bool IsTaxiOpen() { string result = Others.GetRandomString(Others.Random(4, 10)); Lua.LuaDoString(result + " = tostring((TaxiFrame and TaxiFrame:IsVisible()) or (FlightMapFrame and FlightMapFrame:IsVisible()))"); return(Lua.GetLocalizedText(result) == "true"); }
public static void JoinGroup() { byte[] opCodeAndSize = new byte[2]; byte[] buffer; string randomString = Others.GetRandomString(Others.Random(4, 10)); Lua.LuaDoString(randomString + " = GetRealmName()"); byte[] bufferName = MimesisHelpers.StringToBytes(ObjectManager.Me.Name + "-" + Lua.GetLocalizedText(randomString)); opCodeAndSize[0] = (byte)MimesisHelpers.opCodes.RequestGrouping; opCodeAndSize[1] = (byte)bufferName.Length; NetworkStream clientStream = client.GetStream(); clientStream.Write(opCodeAndSize, 0, 2); clientStream.Write(bufferName, 0, bufferName.Length); // It's hardcoded "PlayerName-RealmName" clientStream.Flush(); // Now wait for an answer try { int bytesRead = clientStream.Read(opCodeAndSize, 0, 2); int len = opCodeAndSize[1]; // It's 4 (one uint) buffer = new byte[len]; bytesRead += clientStream.Read(buffer, 0, len); RollId = BitConverter.ToUInt32(buffer, 0); } catch (Exception e) { Logging.WriteError("MimesisClientCom > JoinGroup(): " + e); return; } EventsListener.UnHookEvent(WoWEventsType.GROUP_ROSTER_UPDATE, callback => CloseGroupPopup()); EventsListener.HookEvent(WoWEventsType.GROUP_ROSTER_UPDATE, callback => CloseGroupPopup()); System.Threading.Thread.Sleep(250 + 2 * Usefuls.Latency); Lua.LuaDoString("AcceptGroup()"); }
public static string GetItemNameById(int entry) { try { if (ItemNameCache.ContainsKey(entry)) { return(ItemNameCache[entry]); } lock (Locker) { string randomString = Others.GetRandomString(Others.Random(4, 10)); Lua.LuaDoString(randomString + ",_,_,_,_,_,_,_,_,_,_ = GetItemInfo(" + entry + ")"); string itemName = Lua.GetLocalizedText(randomString); if (!string.IsNullOrWhiteSpace(itemName)) { ItemNameCache.Add(entry, itemName); } return(itemName); } } catch (Exception exception) { Logging.WriteError("GetNameById(int entry): " + exception); } return(""); }
public static int GetNumGossipOptions() { string randomString = Others.GetRandomString(Others.Random(4, 10)); Lua.LuaDoString(randomString + " = GetNumGossipOptions()"); return(Others.ToInt32(Lua.GetLocalizedText(randomString))); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var account = Others.GetProcessOwner(Process.GetCurrentProcess().Id); var botFile = Others.ReadFileAllLines(Application.StartupPath + "\\Data\\Launcher.txt")[0].Trim(); if (File.Exists(botFile)) { string random = Others.GetRandomString(Others.Random(4, 10)); string tnbExe = random + ".exe"; var sw = new StreamWriter(Application.StartupPath + "\\Data\\Launcher.txt"); sw.WriteLine(tnbExe); sw.Close(); File.Move(botFile, tnbExe); if (File.Exists(botFile + ".config")) { File.Move(botFile + ".config", tnbExe + ".config"); } Others.AddFileSecurity(tnbExe, account, FileSystemRights.ReadData, AccessControlType.Allow); Others.RemoveFileSecurity(tnbExe, account, FileSystemRights.ReadData, AccessControlType.Deny); Process.Start(tnbExe); Process.GetCurrentProcess().Kill(); } MessageBox.Show("Please do not modify the name of the executable by yourself. Restore the original name or re-download the software."); Process.GetCurrentProcess().Kill(); }
public static bool SpellHasCharges(uint spellId) { string randomStringResult = Others.GetRandomString(Others.Random(4, 10)); string ret = Lua.LuaDoString("_, " + randomStringResult + " = GetSpellCharges(" + spellId + ")", randomStringResult); return(Others.ToInt32(ret) > 0); }
public static List <string> ExtractAllPathsTaxi() { string result = Others.GetRandomString(Others.Random(4, 10)); Lua.LuaDoString(result + "= \"\"; nb = NumTaxiNodes(); for i=1,nb do n = TaxiNodeName(i); x,y = TaxiNodePosition(i); " + result + " = " + result + ".. n .. \"#\" .. x .. \"^\" .. y .. \"@\" .. GetNumRoutes(i) .. \"~\" .. TaxiNodeGetType(i) .. \"|\" end"); string allPaths = Lua.GetLocalizedText(result); var ListPaths = new List <String>(); for (int i = 0; i < allPaths.Split('|').Length - 1; i++) { ListPaths.Add(allPaths.Split('|')[i]); } var listPathFinal = new List <string>(); string lowerValue = ""; while (ListPaths.Count > 0) { foreach (string listPath in ListPaths) { if (lowerValue == "") { lowerValue = listPath; } else if (Others.ToSingle(listPath.Split('^')[1].Split('@')[0].Trim()) < Others.ToSingle(lowerValue.Split('^')[1].Split('@')[0].Trim())) { lowerValue = listPath; } } ListPaths.Remove(lowerValue); listPathFinal.Add(lowerValue); lowerValue = ""; } return(listPathFinal); // listPathFinal; }
public static bool HasToy(int entry) { string randomString = Others.GetRandomString(Others.Random(4, 10)); Lua.LuaDoString(randomString + " = tostring(PlayerHasToy(" + entry + "));"); return(Others.ToBoolean(Lua.GetLocalizedText(randomString))); }
public static bool IsSpellUsableLUA(Spell spell) { try { if (IsSpellOnCooldown(spell.Id, spell.CategoryId, spell.StartRecoveryCategoryId)) { return(false); } if (IsSpellOnCooldown(spell.Ids, spell.CategoryId, spell.StartRecoveryCategoryId)) { return(false); // Some spell like Ascendance that has multiples Ids would fails the "Id" check. } // We only need LUA to check for ressources now. string luaVarUsable = Others.GetRandomString(Others.Random(4, 10)); string luaVarNoMana = Others.GetRandomString(Others.Random(4, 10)); string luaResultUsable = Others.GetRandomString(Others.Random(4, 10)); string luaCode = luaVarUsable + "," + luaVarNoMana + "=IsUsableSpell(\"" + spell.NameInGame + "\"); "; luaCode += "if " + luaVarUsable + " and not " + luaVarNoMana + " then "; luaCode += luaResultUsable + "=\"1\" "; luaCode += "end "; Lua.LuaDoString(luaCode, false, false); string ret = Lua.GetLocalizedText(luaResultUsable); return(ret == "1"); } catch (Exception exception) { Logging.WriteError("public static bool IsSpellUsableLUA(Spell spell): " + exception); return(false); } }
internal static void Connect(string login, string password) { try { if (HardwareKey == "") { HardwareKey = Others.GetRandomString(20); } Application.DoEvents(); if (login == "" || (password == "" && login.Length != 20)) { MessageBox.Show(Translate.Get(Translate.Id.User_name_or_Password_error) + ".", Translate.Get(Translate.Id.Error), MessageBoxButtons.OK, MessageBoxIcon.Error); Process.GetCurrentProcess().Kill(); return; } Login = login.ToLower(); Password = password; Thread connectThreadLaunch = new Thread(ConnectThread) { Name = "ConnectThread" }; connectThreadLaunch.Start(); } catch (Exception e) { Logging.WriteError("FDsojfOFDSiojfzeosqodifjksdfjsij: " + e); } }
private void Translate() { recordWayB.Text = nManager.Translate.Get(nManager.Translate.Id.Record_Way); saveB.Text = nManager.Translate.Get(nManager.Translate.Id.Save); labelX1.Text = nManager.Translate.Get(nManager.Translate.Id.Separation_distance_record) + ":"; delB.Text = nManager.Translate.Get(nManager.Translate.Id.Del); delBlackRadius.Text = nManager.Translate.Get(nManager.Translate.Id.Del); addBlackB.Text = nManager.Translate.Get(nManager.Translate.Id.Add_this_position_to_Black_list_Radius); addNpcB.Text = nManager.Translate.Get(nManager.Translate.Id.Add_Target_to_Npc_list); delNpcB.Text = nManager.Translate.Get(nManager.Translate.Id.Del); loadB.Text = nManager.Translate.Get(nManager.Translate.Id.Load); nameNpcTb.Text = nManager.Translate.Get(nManager.Translate.Id.Name); addByNameNpcB.Text = nManager.Translate.Get(nManager.Translate.Id.Add_by_Name_to_Npc_list); ListOfZonesLabel.Text = nManager.Translate.Get(nManager.Translate.Id.List_Zones) + ":"; addZoneB.Text = nManager.Translate.Get(nManager.Translate.Id.Add_Zone); delZoneB.Text = nManager.Translate.Get(nManager.Translate.Id.Del_Zone); ZoneNameLabel.Text = nManager.Translate.Get(nManager.Translate.Id.Zone_Name) + ":"; ZoneMinLevel.Text = nManager.Translate.Get(nManager.Translate.Id.Player_Lvl) + " " + nManager.Translate.Get(nManager.Translate.Id.Min); ZoneMaxLevelLabel.Text = nManager.Translate.Get(nManager.Translate.Id.Max); TargetMaxLevelLabel.Text = nManager.Translate.Get(nManager.Translate.Id.Max); TargetMinLevelLabel.Text = nManager.Translate.Get(nManager.Translate.Id.Target_Lvl) + " " + nManager.Translate.Get(nManager.Translate.Id.Min); addTargetEntryB.Text = nManager.Translate.Get(nManager.Translate.Id.Add_Target); labelX8.Text = nManager.Translate.Get(nManager.Translate.Id.Target_Ids); MainHeader.TitleText = nManager.Translate.Get(nManager.Translate.Id.Profile_Creator) + " - " + Information.MainTitle; this.Text = Others.GetRandomString(Others.Random(4, 10)); }
private static bool IsButtonActive(string buttonName) { string randomString = Others.GetRandomString(Others.Random(4, 10)); Lua.LuaDoString(randomString + " = " + buttonName + ":GetButtonState();"); return(Lua.GetLocalizedText(randomString) == "NORMAL"); }
public static bool CheckItemStats(string link) { string randomString = Others.GetRandomString(Others.Random(4, 10)); string command = randomString + "='' "; command += "stats=GetItemStats(\"" + link + "\"); "; command += "for key,value in pairs(stats) do "; command += randomString + "=" + randomString + " .. key .. '^' .. value .. '^' "; command += "end;"; Lua.LuaDoString(command); string sResult = Lua.GetLocalizedText(randomString); string[] itemStatsArray = sResult.Split('^'); int index = 0; bool valid = true; while (index < itemStatsArray.Length - 1) { string name = itemStatsArray[index]; //string value = itemStatsArray[index+1]; Enums.WoWStatistic Stat = ConvertToStatistic(name); if (Stat != Enums.WoWStatistic.None && !EquipmentAndStats.InternalEquipementStats.Contains(Stat)) { valid = false; } //Logging.WriteDebug(name + "=" + value); index += 2; } return(valid); }
private void Translate() { AlteracValleyLabel.Text = nManager.Translate.Get(nManager.Translate.Id.QueueAlteracValley); WarsongGulchLabel.Text = nManager.Translate.Get(nManager.Translate.Id.QueueWarsongGulch); ArathiBasinLabel.Text = nManager.Translate.Get(nManager.Translate.Id.QueueArathiBasin); EyeoftheStormLabel.Text = nManager.Translate.Get(nManager.Translate.Id.QueueEyeoftheStorm); StrandoftheAncientsLabel.Text = nManager.Translate.Get(nManager.Translate.Id.QueueStrandoftheAncients); IsleofConquestLabel.Text = nManager.Translate.Get(nManager.Translate.Id.QueueIsleofConquest); TwinPeaksLabel.Text = nManager.Translate.Get(nManager.Translate.Id.QueueTwinPeaks); BattleforGilneasLabel.Text = nManager.Translate.Get(nManager.Translate.Id.QueueBattleforGilneas); TempleOfKotmoguLabel.Text = nManager.Translate.Get(nManager.Translate.Id.QueueTempleofKotmogu); SilvershardMinesLabel.Text = nManager.Translate.Get(nManager.Translate.Id.QueueSilvershardMines); RandomBattlegroundLabel.Text = nManager.Translate.Get(nManager.Translate.Id.QueueRandomBattleground); AlteracValley.Text = nManager.Translate.Get(nManager.Translate.Id.AlteracValley); WarsongGulch.Text = nManager.Translate.Get(nManager.Translate.Id.WarsongGulch); ArathiBasin.Text = nManager.Translate.Get(nManager.Translate.Id.ArathiBasin); EyeoftheStorm.Text = nManager.Translate.Get(nManager.Translate.Id.EyeoftheStorm); StrandoftheAncients.Text = nManager.Translate.Get(nManager.Translate.Id.StrandoftheAncients); IsleofConquest.Text = nManager.Translate.Get(nManager.Translate.Id.IsleofConquest); TwinPeaks.Text = nManager.Translate.Get(nManager.Translate.Id.TwinPeaks); BattleforGilneas.Text = nManager.Translate.Get(nManager.Translate.Id.BattleforGilneas); TempleofKotmogu.Text = nManager.Translate.Get(nManager.Translate.Id.TempleofKotmogu); SilvershardMines.Text = nManager.Translate.Get(nManager.Translate.Id.SilvershardMines); RandomBattleground.Text = nManager.Translate.Get(nManager.Translate.Id.RandomBattleground); RequeueAfterXMinutesLabel.Text = nManager.Translate.Get(nManager.Translate.Id.RequeueAfterXMinutes); SaveButton.Text = nManager.Translate.Get(nManager.Translate.Id.Save_and_Close); MainHeader.TitleText = nManager.Translate.Get(nManager.Translate.Id.Settings_Battlegrounder) + " - " + Information.MainTitle; this.Text = Others.GetRandomString(Others.Random(4, 10)); }
public static void ConsumeQuestsCompletedRequest() { FinishedQuestSet.Clear(); string luaTable = Others.GetRandomString(Others.Random(4, 10)); string luaResultStr = Others.GetRandomString(Others.Random(4, 10)); string command = ""; command += "local " + luaTable + " = GetQuestsCompleted() "; command += "if " + luaTable + " == nil then " + luaResultStr + " = \"NIL\" else "; command += luaResultStr + " = \"\" "; command += "for key,value in pairs(" + luaTable + ") do "; // value is "true" always command += luaResultStr + " = " + luaResultStr + " .. \"^\" .. key "; command += "end end"; Lua.LuaDoString(command); string sResult = Lua.GetLocalizedText(luaResultStr); if (sResult == "NIL") { return; } foreach (string strQuestId in sResult.Split('^')) { if (strQuestId != string.Empty) { FinishedQuestSet.Add(Others.ToInt32(strQuestId)); } } }
public static String GetActiveTitle(int index) { string randomString = Others.GetRandomString(Others.Random(4, 10)); Lua.LuaDoString(randomString + " = GetActiveTitle(" + index + ")"); return(Lua.GetLocalizedText(randomString)); }
public static int GetItemIdByName(string name) { if (name == "") { return(0); } try { if (ItemIdCache.ContainsKey(name)) { return(ItemIdCache[name]); } lock (Locker) { string randomString = Others.GetRandomString(Others.Random(4, 10)); Lua.LuaDoString( "local nameItem = \"" + name + "\" " + "_,itemLink,_,_,_,_,_,_,_,_,_ = GetItemInfo(nameItem); " + "if itemLink == nil then " + randomString + " = 0 else " + "_,_," + randomString + " = string.find(itemLink, 'item:(%d+)') end"); int itemEntry = Others.ToInt32(Lua.GetLocalizedText(randomString)); if (itemEntry > 0) { ItemIdCache.Add(name, itemEntry); } return(itemEntry); } } catch (Exception exception) { Logging.WriteError("GetIdByName(string name): " + exception); } return(0); }
public static bool ItemIsInBag(string name) { try { string randomString = Others.GetRandomString(Others.Random(4, 10)); string scriptLua = "local c,l,r,_=0 "; scriptLua = scriptLua + randomString + " = \"False\" "; scriptLua = scriptLua + "for b=0,4 do "; scriptLua = scriptLua + "for s=1,40 do "; scriptLua = scriptLua + "local l=GetContainerItemLink(b,s) "; scriptLua = scriptLua + "if l then namei,_,r=GetItemInfo(l) "; scriptLua = scriptLua + "if namei == " + name + " then "; scriptLua = scriptLua + randomString + " = \"True\" "; scriptLua = scriptLua + " end "; scriptLua = scriptLua + "end "; scriptLua = scriptLua + "end "; scriptLua = scriptLua + "end "; lock (Locker) { Lua.LuaDoString(scriptLua); return(Lua.GetLocalizedText(randomString) == "True"); } } catch (Exception exception) { Logging.WriteError("ItemIsInBag(string name): " + exception); return(false); } }
public static string GetItemSpell(int entry) { try { lock (ItemSpellCache) { if (ItemSpellCache.ContainsKey(entry)) { return(ItemSpellCache[entry]); } string randomString = Others.GetRandomString(Others.Random(4, 10)); Lua.LuaDoString(randomString + ",_ = GetItemSpell(" + entry + ")"); string sResult = Lua.GetLocalizedText(randomString); if (sResult != string.Empty && sResult != "nil") { ItemSpellCache.Add(entry, sResult); return(sResult); } } } catch (Exception exception) { Logging.WriteError("GetItemSpellByItemId(uint itemId): " + exception); } return(""); }
public static List <Taxi> GetAllTaxisAvailable() { List <Taxi> ret = new List <Taxi>(); string randomString = Others.GetRandomString(Others.Random(4, 10)); Lua.LuaDoString(randomString + " = NumTaxiNodes()"); int nbTaxiNode = Others.ToInt32(Lua.GetLocalizedText(randomString)); for (int id = 1; id <= nbTaxiNode; id++) { string chkpx = nManager.Helpful.Others.GetRandomString(nManager.Helpful.Others.Random(4, 10)); string chkpy = nManager.Helpful.Others.GetRandomString(nManager.Helpful.Others.Random(4, 10)); string chktype = nManager.Helpful.Others.GetRandomString(nManager.Helpful.Others.Random(4, 10)); nManager.Wow.Helpers.Lua.LuaDoString(chkpx + "," + chkpy + " = TaxiNodePosition(" + id + "); " + chktype + "= TaxiNodeGetType(" + id + ");"); string retpx = nManager.Wow.Helpers.Lua.GetLocalizedText(chkpx); string retpy = nManager.Wow.Helpers.Lua.GetLocalizedText(chkpy); string retType = nManager.Wow.Helpers.Lua.GetLocalizedText(chktype); if (retType != "DISTANT" && retType != "NONE") { Taxi t = new Taxi(); t.Xcoord = retpx; t.Ycoord = retpy; ret.Add(t); } else if (retType == "DISTANT") // NONE = Taxi not in use { Logging.WriteDebug("Player is missing taxi X: " + retpx + ", Y: " + retpy); } } return(ret); }
private static int GetNumUnspentTalents() { string res = Others.GetRandomString(Others.Random(4, 10)); int numUnspent = Others.ToInt32(Lua.LuaDoString(res + " = GetNumUnspentTalents()", res)); return(numUnspent); }
public WoWSpecialization WowSpecialization(bool doOutput = false) { try { string specInfo = Others.GetRandomString(Others.Random(4, 10)); Lua.LuaDoString( "if GetSpecialization() ~= nil and GetSpecializationInfo(GetSpecialization()) ~= nil then id,name,description,icon,role,primary = GetSpecializationInfo(GetSpecialization()) " + specInfo + " = id .. \"^\" .. name .. \"^\" .. role .. \"^\" .. primary else " + specInfo + " = 0 end"); string[] specInfos = Lua.GetLocalizedText(specInfo).Split('^'); if (specInfos.Count() != 4) { if (doOutput) { Logging.WriteDebug("WoW Specialization not found"); } return(WoWSpecialization.None); } if (doOutput) { Logging.WriteDebug("WoW Specialization found: " + WowClass + " " + specInfos[1] + ", role: " + specInfos[2]); } WoWSpecialization rWoWSpecialization = (WoWSpecialization)Others.ToInt32(specInfos[0]); return(rWoWSpecialization); } catch (Exception e) { Logging.WriteError("WoWPlayer > WoWSpecialization: " + e); } return(WoWSpecialization.None); }
public static string GetAFreeKey(bool easyonly = false) { try { foreach (Helpful.Win32.UnreservedVK key in Enum.GetValues(typeof(Helpful.Win32.UnreservedVK))) { if (key.ToString() == Usefuls.AfkKeyPress) { continue; } string randomStringResult = Others.GetRandomString(Others.Random(4, 10)); Lua.LuaDoString(randomStringResult + " = GetBindingAction(\"" + key + "\", true)", false, false); string result = Lua.GetLocalizedText(randomStringResult); if (string.IsNullOrEmpty(result)) { return(key.ToString()); } } if (easyonly) { return(""); /* We did not found any key for our Anti-AFK, if we use a combination, * it will cast the Simple key as there is no binded action for the extended keybind. */ } foreach (Helpful.Win32.UnreservedVK key in Enum.GetValues(typeof(Helpful.Win32.UnreservedVK))) { string randomStringResult = Others.GetRandomString(Others.Random(4, 10)); Lua.LuaDoString(randomStringResult + " = GetBindingAction(\"CTRL-" + key + "\", true)"); if (string.IsNullOrEmpty(Lua.GetLocalizedText(randomStringResult))) { return("CTRL-" + key); } } foreach (Helpful.Win32.UnreservedVK key in Enum.GetValues(typeof(Helpful.Win32.UnreservedVK))) { string randomStringResult = Others.GetRandomString(Others.Random(4, 10)); Lua.LuaDoString(randomStringResult + " = GetBindingAction(\"SHIFT-" + key + "\", true)"); if (string.IsNullOrEmpty(Lua.GetLocalizedText(randomStringResult))) { return("SHIFT-" + key); } } foreach (Helpful.Win32.UnreservedVK key in Enum.GetValues(typeof(Helpful.Win32.UnreservedVK))) { string randomStringResult = Others.GetRandomString(Others.Random(4, 10)); Lua.LuaDoString(randomStringResult + " = GetBindingAction(\"CTRL-SHIFT-" + key + "\", true)"); if (string.IsNullOrEmpty(Lua.GetLocalizedText(randomStringResult))) { return("CTRL-SHIFT-" + key); } } return(""); // No key found. Quite impossible since we try 236 bindings. } catch (Exception exception) { Logging.WriteError("GetAFreeKey(): " + exception); return(""); } }
private void Translate() { SaveButton.Text = nManager.Translate.Get(nManager.Translate.Id.SaveAndClose).ToUpper(); // SAVE AND CLOSE LoadButton.Text = nManager.Translate.Get(nManager.Translate.Id.LoadTranslationFile).ToUpper(); // LOAD A TRANSLATION FILE QuitButton.Text = nManager.Translate.Get(nManager.Translate.Id.CloseWithoutSaving).ToUpper(); // CLOSE WITHOUT SAVING MainHeader.TitleText = nManager.Translate.Get(nManager.Translate.Id.Translate_Tools) + @" - " + Information.MainTitle; this.Text = Others.GetRandomString(Others.Random(4, 10)); }
private void Translate() { TrackByNPCNameLabel.Text = nManager.Translate.Get(nManager.Translate.Id.By_npc_name) + ":"; TrackByObjectTypeLabel.Text = nManager.Translate.Get(nManager.Translate.Id.Object_type) + ":"; TrackByCreatureTypeLabel.Text = nManager.Translate.Get(nManager.Translate.Id.Creature_type) + ":"; MainHeader.TitleText = nManager.Translate.Get(nManager.Translate.Id.Tracker); this.Text = Others.GetRandomString(Others.Random(4, 10)); }
private void Translate() { LoadProfileButton.Text = nManager.Translate.Get(nManager.Translate.Id.Load_Profile); SelectProfileLabel.Text = nManager.Translate.Get(nManager.Translate.Id.Profile) + ":"; ProfileCreatorButton.Text = nManager.Translate.Get(nManager.Translate.Id.Profile_Creator); MainHeader.TitleText = nManager.Translate.Get(nManager.Translate.Id.Load_Profile) + " Grinder"; this.Text = Others.GetRandomString(Others.Random(4, 10)); }
private void Translate() { convertB.Text = nManager.Translate.Get(nManager.Translate.Id.Convert_Profiles); MainContent.Text = string.Format("{0}(Pirox Fly gatherer, MMOLazy MyFlyer, Gather Buddy, WowRobot Gather Fly, HonorBuddy grind) {1} TheNoobBot profiles.", nManager.Translate.Get(nManager.Translate.Id.Convert_Profiles), nManager.Translate.Get(nManager.Translate.Id.to)); MainHeader.TitleText = nManager.Translate.Get(nManager.Translate.Id.Profiles_Converters); this.Text = Others.GetRandomString(Others.Random(4, 10)); }
public static Reaction GetReputationReaction(int reputationId) { //_, _, standingID, _, _, _, _, _, _, _, _, _, _, _, _, _= GetFactionInfoByID(970); string randomString = Others.GetRandomString(Others.Random(4, 10)); string standing = Lua.LuaDoString("_, _," + randomString + ", _, _, _, _, _, _, _, _, _, _, _, _, _= GetFactionInfoByID(" + reputationId + ")", randomString); return((Reaction)Others.ToInt32(standing)); }