objectives out of objectiveFullText
Hi,
so am taking objectiveFullText = GetQuestLogLeaderBoard(questID) and i would like to remove the objective information off the quest EG: (0/1) i been using Code:
arg1, agr2 = string.match(text, "(.-%S)%s(.*)") 0/1 Kill Cat Boss Kill Cat Boss: 0/1 I made this but it seems to be a bit to much and it will only work for quests with 0/4 at the start but at least it shows all the text on non English clients Code:
if text == nil then |
I think you'd be interested in the GetQuestObjectiveInfo function.
local objectiveText, objectiveType, finished, numFulfilled, numRequired = GetQuestObjectiveInfo(questID, objectiveIndex) return numFulfilled .. "/" .. numRequired |
Quote:
|
I think you can set it to 0.
|
Infact i do have objectiveIndex. A lot easyer using that. Now:
I need a way to remove the 0/1 text from the quest text be it at the front or end and olny that ( sorry tried) as if not my frame show column 1( 0/1 text ) column 2 ( 0/1 ) Thanks |
All times are GMT -6. The time now is 09:14 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI