function getQuestStatus(_questnameorid)
-- Used when you need to make 3 way decision, get quest,
complete quest or gather quest items.
if (bot.IgfAddon == false) then
error(language[1004], 0) -- Ingamefunctions
addon (igf) is not installed
end
if type(tonumber(_questnameorid)) == "number" then
return RoMScript("igf_questStatus
(".._questnameorid..")")
elseif type(_questnameorid) == "string" then
return RoMScript("igf_questStatus
(\""..NormaliseString(_questnameorid).."\")")
end
error("Invalid argument used with getQuestStatus(): Expected
type 'number' or 'string'")
end
after compeleting a daily quest i get
error("Invalid argument used with getQuestStatus(): Expected
That error means you didn't use the function properly. It may also be caused by an incorrect usage of CompleteQuestByName or AcceptQuestByName functions. How were you using it?
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
<!-- # 1 --><waypoint x="-6755" z="43458" y="545" tag="Main">inventory:update()
local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()")
cprintf(cli.lightblue,"%s quests completed.\n",tostring(dailyQuestCount));
if (dailyQuestCount == 10) then
cprintf(cli.lightblue,"Completed max number of daily quests, trying to use a daily reset card.\n");
error("Dailies finished.")
end
if inventory:itemTotalCount(208548) > 5 then
player:target_NPC("Michelle Kudd");
AcceptQuestByName()
end
if inventory:itemTotalCount(208547) > 9 then
CompleteQuestByName()
player:target_NPC("Michelle Kudd");
AcceptQuestByName()
__WPL:reverse()
__WPL:setWaypointIndex(__WPL:findWaypointTag("Main"));
end
</waypoint>
i just added -- to the line in the functions.lua and it works.
yeah the error line. i don't know why its acting up on me. never had this problem before
it picks up the quest fine does the daily but after it turns in it won't pick up the quest again, just gives me the error line. weird, i thought it was a problem with the igf so i reloaded the igf folder but still gives me the error line