Page 4 of 4

Re: Level 35 gift bag (Sea of Snow Package)

Posted: Fri Dec 05, 2014 4:06 am
by rock5
No. You are treating berhuQuestComplete as a variable but there is no such variable. It's a string. So it has to be

Code: Select all

onLeaveCompleteTag = berhuCompleteTag
or

Code: Select all

onLeaveCompleteTag = "berhuQuestComplete"
Both are the same because berhuCompleteTag equals "berhuQuestComplete".

I don't know why it's not working. Try adding some print messages to the onleavecombat to see what's happening.

Code: Select all

	function settings.profile.events.onLeaveCombat()
		print("Doing onleavecombat")
		if onLeaveQuest then
			print("onLeaveQuest = ".. onLeaveQuest .. " (".. getQuestStatus(onLeaveQuest).. ")")
			print("onLeaveCompleteTag = " (onLeaveCompleteTag or "nil"))
		end
Hm... Are you running this as one of a chain of waypoint files? Are you loading this waypoint file then doing a loadProfile()? Try reversing them. Do the loadProfile first then load the waypoint file.