Page 1 of 1

Think i found an error in 761

Posted: Sun Aug 18, 2013 10:32 am
by Romplayer
frome functions.lua

Code: Select all

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

type 'number' or 'string'")

Re: Think i found an error in 761

Posted: Sun Aug 18, 2013 11:00 am
by rock5
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?

Re: Think i found an error in 761

Posted: Sun Aug 18, 2013 11:29 am
by Romplayer

Code: Select all

	<!-- #  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.

Re: Think i found an error in 761

Posted: Sun Aug 18, 2013 12:13 pm
by rock5
Romplayer wrote:i just added -- to the line in the functions.lua and it works.
Which line? The error line? But you shouldn't be getting an error. It's working fine for me.

Re: Think i found an error in 761

Posted: Sun Aug 18, 2013 12:46 pm
by Romplayer
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

Re: Think i found an error in 761

Posted: Sun Aug 18, 2013 3:31 pm
by rock5
Are you using any addons that auto accept/complete quests? Maybe it's a timing issue. Try adding some pauses with yrest between commands.

Re: Think i found an error in 761

Posted: Sun Aug 18, 2013 3:34 pm
by Romplayer
oh i just got autoaccept invites. maybe that is it. Thanks rock