Quantcast ESOUI - View Single Post - Names with ^M and ^F
View Single Post
04/19/14, 01:04 PM   #7
Bl4ckSh33p
 
Bl4ckSh33p's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 20
The German client has this "issue" almost everywhere. Zonenames, Charnames, Itemnames.. all have extra text added. I wrote a few lines to remove them and my brother created a function for it. If you have an addon with this issue you should be able to fix it with this code:

Code:
ESNT_sauber = function(test)
 	if test then
		local pos = string.find (test, "^", 1, true) 
		if pos then
			test = string.sub (test, 1, pos-1)
		end
	return test	
	end
end
Just call this function with your string as parameter (test). This should remove all parts behind "^" and just display the name.
__________________
New: ESO Research Assistant (ESORA) - My new App to track research times.
Coming soon: ESO Manager
Creator of WoW Launcher PLUS and Cube World Launcher PLUS.
Founder of Bl4ckSh33p-Soft.
  Reply With Quote