Problems with GetInfamyLevel()
I am having trouble getting useful information out of the function GetInfamyLevel(). No matter what I do, it always returns that I am at infamy level "0" which means it thinks I am Upstanding. I can have the Kill On Sight active and when I use the code snippit below, it returns an infamy level of "0", meaning I am Upstanding. Which obviously I am not since the guards are beating on me while I run the code. It seems no matter what level of bounty I have, or if the guards are hitting me with sharp pointy objects and deadly spells, the function GetInfamyLevel() always cheerfully replies that I have an Infamy level of "0" which corresponds to INFAMY_THRESHOLD_UPSTANDING. Yay me!!
I am probably missing something really simple. The code below is embedded in a slash command so I can check it at any time by sending the slash command. local infamyNumber = GetInfamyLevel() d("Infamy Level: " .. infamyNumber) if infamyNumber == INFAMY_THRESHOLD_DISREPUTABLE then d("Disreputable") elseif infamyNumber == INFAMY_THRESHOLD_UPSTANDING then d("Upstanding") elseif infamyNumber == INFAMY_THRESHOLD_NOTORIOUS then d("Notorious") elseif infamyNumber == INFAMY_THRESHOLD_FUGITIVE then d("Fugitive") end new porn and reviews on them appear first here https://freeadultpornlist.com |
You are using it wrong. One look at the ESOUIDocumentation.txt tells me that it takes a parameter "infamityAmount". Looking a few entries above, I also see a function "GetInfamity" which returns an integer, so I suppose you have to use it like so:
Lua Code:
p.s. code questions should go into the developer forums. This one here is for addon support questions. ;) |
All times are GMT -6. The time now is 03:48 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI