goodmorning
New Member
- Joined
- Sep 16, 2010
- Messages
- 259
- Reaction score
- 1
So.. it'd be awesome if i could integrate this lua code into a plugin.. but I've got no idea in the world how I'd do it.
Any help would be appreciated.
Code:
string login = "if (WoWAccountSelectDialog and WoWAccountSelectDialog:IsShown()) then "
"for i = 0, GetNumGameAccounts() do "
"if GetGameAccountInfo(i) == '" + accname + "' then "
"WoWAccountSelect_SelectAccount(i) "
"end "
"end "
"elseif (AccountLoginUI and AccountLoginUI:IsVisible()) then "
"DefaultServerLogin('" + username + "', '" + password + "') "
"AccountLoginUI:Hide() "
"elseif (RealmList and RealmList:IsVisible()) then "
"for i = 1, select('#',GetRealmCategories()) do "
"for j = 1, GetNumRealms(i) do "
"if GetRealmInfo(i, j) == '" + realm + "' then "
"RealmList:Hide() "
"ChangeRealm(i, j) "
"end "
"end "
"end "
"elseif (CharacterSelectUI and CharacterSelectUI:IsVisible()) then "
"if GetServerName() ~= '"+ realm + "' and (not RealmList or not RealmList:IsVisible()) then "
"RequestRealmList(1) "
"else "
"for i = 0,GetNumCharacters() do "
"if (GetCharacterInfo(i) == '" + name + "') then "
"CharacterSelect_SelectCharacter(i) "
"EnterWorld() "
"end "
"end "
"end "
"end ";
Any help would be appreciated.