Thanks for your answer.
In deed i don't need to know the Id of an item, i know how to find it. I have already try the GetItemInfo(Itemid) but it return me an error cause the fonction use to count is like format (n,s).
After reading the lua file i fnd this who seems to be the function which count the item:
if goal.questgoal then
local quest,qgoal,count = goal.questgoal[1],goal.questgoal[2],goal.questgoal[3]
if not count then error("Step "..self.CurrentStepNum.." section "..self.CurrentSectionNum.." has bad questgoal.") end
if quest=="*" then
quest = self:ImproviseQuestTitle(qgoal)
end
local questIndex
local questF = self:FindData(self.quests,"title",quest)
if questF then questIndex=questF.index end
if questIndex and questIndex>0 then
local goals,goalsNamed = self:GetQuestLeaderBoards(questIndex)
local questGoal = goalsNamed[qgoal]
if questGoal then
desc = L["stepgoal_questgoal"]:format(questGoal.leaderboard)
else
desc = qgoal .. ": ?"
end
else
desc = qgoal .. ": 0"
end
end
|
Is there someone who could explain it to me like if i was child of three years old?
thanks