View Single Post
05/01/23, 11:25 AM   #8
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
Yeah, such refugees got several zoneIds, depening on the map they belong to. But I'm not sure if their zone name always got that "outlow refugge" yu could check for.

if you want to do this you could use

if string.find(stringToSearch, "outlaw refugee", 1, true) ~= nil then
--found
end

The last pattern will make it search with plain text, without any patterns!
If it returns something not nil it will return the position in the string where it was found.
-> You must use stirng.lower(stringToMakeLowercase) on the stringToSearch first to make it match the lower case "outlaw refugee" then!
  Reply With Quote