Page 2 of 4

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

Posted: Fri Apr 05, 2013 2:23 am
by abron1
now I get

Code: Select all

Loaded waypoint path Sea of Snow Package.xml
No return path with default naming Sea of Snow Package_return.xml found.
We use the normal waypoint path Sea of Snow Package.xml now.
GM detection started
Did not find any crashed game clients.
0:21am - [string "..."]:18: attempt to call global 'GetIdname' (a nil value)

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

Posted: Fri Apr 05, 2013 3:10 am
by lisa
if should be

Code: Select all

GetIdName

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

Posted: Fri Apr 05, 2013 5:48 am
by abron1
yeah he had a typo here

Code: Select all

local ross 		= GetIdname(112463) -- NPC "Ross Bete"
and now I get

Code: Select all

Loaded waypoint path Sea of Snow Package.xml
No return path with default naming Sea of Snow Package_return.xml found.
We use the normal waypoint path Sea of Snow Package.xml now.
Waypoint #7 is closer then #1. Hence we start with waypoint #7.
GM detection started
Already mounted.
Clearing target.
Moving to waypoint #7, (-13948, -767)
target_NPC(): Please give a NPC name for using that function.
No target! Target NPC before using AcceptQuestByName
its not reading you functions to get the npc names

Code: Select all

--[[ NPC ID's ]]--
		local joey 	= GetIdName(112461) -- NPC "Joey Klongen"
		local laura 	= GetIdName(112462) -- NPC "Laura Febrey"
		local ross 	= GetIdName(112463) -- NPC "Ross Bete"
		local kendo 	= GetIdName(112464) -- NPC "Kendo Hanks"
		local maryann 	= GetIdName(112465) -- NPC "Mary-Ann Lewinsky"
		local rachel 	= GetIdName(112466) -- NPC "Rachel Greng"
I changed the npc name to

Code: Select all

player:target_NPC("Joey Klongen")
so that it would get the first then it accepted the quest but then give me this error

Code: Select all

Quest accepted: Challenge of the Arctic Training Battalion
Clearing target.
Moving to waypoint #8, (-13713, -1108)
Moving to waypoint #9, (-13531, -1427)
Moving to waypoint #10, (-13286, -1842)
Moving to waypoint #11, (-12823, -2105)
Moving to waypoint #12, (-12785, -2309)
target_NPC(): Please give a NPC name for using that function.
No target! Target NPC before using CompleteQuestByName
target_NPC(): Please give a NPC name for using that function.
No target! Target NPC before using AcceptQuestByName
Did not find any crashed game clients.
3:59am - ...pts/rom/userfunctions/userfunction_QuestLogClass.lua:277: bad argume
nt #1 to 'find' (string expected, got nil)
not sure what to do after this

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

Posted: Fri Apr 05, 2013 6:19 am
by rock5
If you declared those variables in the onload of the waypoint then 'local' means they have been declared local to the onload. So they are not available to the rest of the waypoint file. Just remove the 'local's.

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

Posted: Fri Apr 05, 2013 10:38 am
by attackspeedzero
I feel bad for releasing this in such an untested state. I guess that's what happens when the character I used to make the waypoint file ends up done with the questline before the script is good.

Syntax and typos corrected.

Further testing and feedback appreciated!

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

Posted: Sun Apr 07, 2013 12:23 am
by Cindy

Code: Select all

Moving to waypoint #166, (-13835, -3431)
Moving to waypoint #167, (-13887, -3295)
We try to find NPC Mary-Ann Lewinsky:
We successfully target NPC Mary-Ann Lewinsky and try to open the dialog window.
We try to find NPC Mary-Ann Lewinsky:
We successfully target NPC Mary-Ann Lewinsky and try to open the dialog window.
Did not find any crashed game clients.
0:13am - [string "              ..."]:7: attempt to call global 'skip_quest_if_c
omplete' (a nil value)
Something isnt quite right at 167.

Also, the script only works on 102, with 103 I got some sort of issue in the waypoints class.

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

Posted: Sun Apr 07, 2013 3:39 pm
by kenzu38
Had a look at his code, I think you just have to change skip_quest_if_complete to quest_skip_if_complete. There are two typos in the code so you just have to find those two and change them.

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

Posted: Mon Apr 08, 2013 8:21 am
by attackspeedzero
Syntax fixed, again!

I'll look into issues with MM 103. Thanks for the heads up on that.

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

Posted: Tue Apr 09, 2013 6:10 pm
by Cindy
Yes, fixed the typos and function name, works great on 102, thank you.

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

Posted: Sat Apr 13, 2013 2:20 pm
by Cindy
MM 103 :

Code: Select all

Loaded waypoint path Sea of Snow Package.xml
No return path with default naming Sea of Snow Package_return.xml found.
We use the normal waypoint path Sea of Snow Package.xml now.
Did not find any crashed game clients.
2:18pm - ...Files/micromacro103/scripts/rom/classes/waypointlist.lua:83: Failed
to compile and run Lua code for waypointlist onLoad event.

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

Posted: Sat Apr 13, 2013 6:58 pm
by lisa
line 69 has

Code: Select all

got(nextWaypoint)
I suspect it should be

Code: Select all

goto(nextWaypoint)

I like to add the onload code to a userfunction and that way MM will actually tell you the issue and what line it is, once it is working fine then you can move the code back to the WP onload.

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

Posted: Mon Apr 15, 2013 12:46 pm
by attackspeedzero
Thanks for catching all these bugs, everyone!

I still haven't updated to mm 1.03 though I probably should at some point. It's been a busy couple of weeks for me.

Typo fix for quest_skip_if_complete function (thanks lisa!)

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

Posted: Sat Apr 27, 2013 11:49 am
by attackspeedzero
Wow...

I just ran this now for the first time since I tweaked the code, you guys are WAY too kind. It's hilariously bad!

I've made some more changes that should hopefully lead to this not being a clunky disaster. I also changed the filename in this version so it can be started by typing "rom/bot path:snow-package" if desired.

It's now also possible to start at Varanas or Obsidian Stronghold snoop (must have Harf Trading Post snoop unlocked, obviously) if you wish, thanks to the take_snoop function, and it will end by taking snoop to Varanas after everything is done.

Please continue providing feedback where you can, it's always appreciated!

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

Posted: Sat Apr 27, 2013 12:19 pm
by Cindy
No worries, it ran just fine, with minor tweaks here and there :) Thanks for the effort you put into the script.

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

Posted: Sun Apr 28, 2013 7:31 am
by dr-nuker
Hello,

I just don't get the quest. I think i've finieshed everything in Harf, so it's not repeatable or?
Do i miss anything here?

br,
nuker

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

Posted: Sun Apr 28, 2013 7:33 am
by lisa
It can only be done once, it is to get the lvl 35 package, when you use the lvl 30 package it dissappears forever. So you do this quest line and get the lvl 35 package and continue opening each package at 5 lvl intervals until lvl 50.

Lots of free 1 day mounts // puris // golden hammers // transport stuff.

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

Posted: Sun Apr 28, 2013 7:46 am
by dr-nuker
lisa wrote:It can only be done once, it is to get the lvl 35 package, when you use the lvl 30 package it dissappears forever. So you do this quest line and get the lvl 35 package and continue opening each package at 5 lvl intervals until lvl 50.

Lots of free 1 day mounts // puris // golden hammers // transport stuff.
Ah!
Good to know :) Thought i could pack it into my daily "do everything you can script" :O

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

Posted: Wed Nov 26, 2014 10:06 am
by sauhard

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
	<onLoad>
	--[[ Mob ID's ]]--
		berhu 	= GetIdName(100354) -- Mob "Wild Berhu"
		spider 	= GetIdName(100368) -- Mob "Ystra Winter Spider"
		cyclops	= GetIdName(100365) -- Mob "Sea of Snow Cyclops"

		butter 	= GetIdName(105413) -- Mob "Inferno Butterfly" (not present in Ystra, will provide a nice "dummy" value for settings.profile.mobs[])

		anselve = GetIdName(101344) -- Mob "Anselve" (elite spider)
		
	--[[ profile setting changes ]]--
		settings.profile.mobs = { butter }
		settings.profile.friends = { anselve }
		settings.profile.options.TARGET_LEVELDIF_ABOVE = 100 -- I don't know why they would be this far above your level, but go nuts.
		settings.profile.options.TARGET_LEVELDIF_BELOW = 100 -- Mobs are around level 32-35ish...
		originalLootDistance = settings.profile.options.LOOT_DISTANCE
		
	--[[ NPC ID's ]]--
		joey 	= GetIdName(112461) -- NPC "Joey Klongen"
		laura 	= GetIdName(112462) -- NPC "Laura Febrey"
		ross 	= GetIdName(112463) -- NPC "Ross Bete"
		kendo 	= GetIdName(112464) -- NPC "Kendo Hanks"
		maryann = GetIdName(112465) -- NPC "Mary-Ann Lewinsky"
		rachel 	= GetIdName(112466) -- NPC "Rachel Greng"

	--[[ Quest ID's ]]--
		firstQuest 			= GetIdName(420884) -- Quest "Challenge of the Arctic Training Battalion"
		rationQuest 		= GetIdName(420885) -- Quest "Retrieve Rations"
		secondInstructor 	= GetIdName(420886) -- Quest "Report to Instructor of the Second Stage"
		berhuQuest 			= GetIdName(420887) -- Quest "Berhus out of Control"
		thirdInstructor 	= GetIdName(420888) -- Quest "Report to Instructor of the Third Stage"
		harshSeaQuest		= GetIdName(420889) -- Quest "Harsh Sea of Snow"
		fourthIntructor 	= GetIdName(420901) -- Quest "Report to Instructor of the Fourth Stage"
		spiderQuest 		= GetIdName(420902) -- Quest "Enough Courage to Survive"
		fifthInstructor 	= GetIdName(420903) -- Quest "Report to Instructor of the Fifth Stage"
		cyclopsQuest 		= GetIdName(420904) -- Quest "A Black and White World"
		lastQuest 			= GetIdName(420905) -- Quest "Training Complete"

	--[[ Other ID's ]]--
		ration = 112460 -- Object "Ration"

	--[[ Waypoint Tag strings for quest_check() function ]]--
		rationWaypointTag 	= "rationQuest"
		rationCompleteTag 	= "rationQuestComplete"
		berhuWaypointTag 	= "berhuQuest"
		berhuCompleteTag 	= "berhuQuestComplete"
		spiderWaypointTag 	= "spiderQuest"
		spiderCompleteTag 	= "spiderQuestComplete"
		cyclopsWaypointTag 	= "cyclopsQuest"
		cyclopsCompleteTag 	= "cyclopsQuestComplete"

	--[[ Functions ]]--
		function goto_wp(waypointTag)
			__WPL:setWaypointIndex(__WPL:findWaypointTag(waypointTag))
		end

		function quest_check(quest, questCompleteWaypoint, _questWaypoint)
			if _questWaypoint then
				if getQuestStatus(quest) == "incomplete" then
					goto_wp(_questWaypoint)
				end
			end
			if getQuestStatus(quest) ~= "incomplete" then
				cprintf(cli.lightblue,"Quest \""..quest.."\" complete. Jumping to waypoint tag \""..questCompleteWaypoint.."\"\n")
				player:mount()
				goto_wp(questCompleteWaypoint)
			end
		end

		function quest_skip_if_complete(quest, nextWaypoint)
			-- if the quest hasn't been accepted, then the player must have already done it or something else has gone wrong.
			if getQuestStatus(quest) ~= "incomplete" then
				cprintf(cli.lightblue,"Quest \""..quest.."\" already done. Jumping to waypoint tag \""..nextWaypoint.."\"\n")
				goto_wp(nextWaypoint)
			end
		end

		snoop = GetIdName(118002) -- NPC "Snoop the Stubborn"
		ailic = GetIdName(112051) -- NPC "Ailic's Aide"

		function take_snoop(snoopname, destination, _colon, _next)
			if player:findNearestNameOrId(snoopname) then
				player:target_NPC(snoopname)
				if _next == 1 then 
					ChoiceOptionByName("Next Page") -- Varanas Snoop to certain destinations
					yrest(200)
				end
				if _colon == 1 then 
					ChoiceOptionByName("Transport to: "..destination) -- Some have a colon and some don't
				else 
					ChoiceOptionByName("Transport to "..destination) 
				end
				local acceptCost = RoMScript("StaticPopup_Visible('SET_REQUESTDIALOG')")
				if acceptCost then 
					RoMScript("StaticPopup_EnterPressed("..acceptCost..");") 
				end
				cprintf(cli.lightblue, "Transporting via \""..snoopname.."\" to "..destination.."\n")
				waitForLoadingScreen()
			else
				error("Cannot find "..snoopname..", maybe you broke it!")
			end
		end

	--[[ Things to do on waypoint load... ]]--
		player:mount()
	</onLoad>

	<!-- #  1 --><waypoint x="2303" z="1154" y="11" tag="varanasSnoop">
		take_snoop(snoop, "Obsidian Stronghold")
	</waypoint>
	<!-- #  2 --><waypoint x="-20460" z="6503" y="-174" tag="obsidianSnoop">
		take_snoop(snoop, "Harf Trading Post")
	</waypoint>
	<!-- #  3 --><waypoint x="-14443" z="-205" y="762" tag="snoop"> 
		cprintf(cli.lightblue,"Starting script at HTP "..snoop.."\n")
	</waypoint>
	<!-- #  4 --><waypoint x="-14316" z="-335" y="789">	</waypoint>
	<!-- #  5 --><waypoint x="-14201" z="-568" y="783">	</waypoint>
	<!-- #  6 --><waypoint x="-14132" z="-710" y="766">	</waypoint>
	<!-- #  7 --><waypoint x="-14070" z="-738" y="764">	</waypoint>
	<!-- #  8 --><waypoint x="-13974" z="-770" y="771">	</waypoint>

	<!-- #  9 --><waypoint x="-13948" z="-767" y="774" tag="joey" >	
		player:target_NPC(joey)
		AcceptQuestByName(firstQuest)
	</waypoint>
	<!-- # 10 --><waypoint x="-13713" z="-1108" y="788">	</waypoint>
	<!-- # 11 --><waypoint x="-13531" z="-1427" y="840">	</waypoint>
	<!-- # 12 --><waypoint x="-13286" z="-1842" y="835">	</waypoint>
	<!-- # 13 --><waypoint x="-12823" z="-2105" y="884">	</waypoint>

	<!-- # 14 --><waypoint x="-12785" z="-2309" y="822" tag="laura">		
		player:target_NPC(laura)
		CompleteQuestByName(firstQuest)
		player:target_NPC(laura)
		AcceptQuestByName(rationQuest)
		yrest(1000)
		quest_skip_if_complete(rationQuest, "laura2")
	</waypoint>
	<!-- # 15 --><waypoint x="-12567" z="-2350" y="806">	</waypoint>
	<!-- # 16 --><waypoint x="-12334" z="-2734" y="771">	</waypoint>
	
	<!-- # 17 --><waypoint x="-10624" z="-2845" y="685" tag="rationQuest" >	</waypoint>	
	<!-- # 18 --><waypoint x="-10624" z="-2845" y="685">
		player:target_Object(ration,500)
		quest_check(rationQuest, rationCompleteTag)
	</waypoint>
	<!-- # 17 --><waypoint x="-10381" z="-2692" y="702"></waypoint>
	<!-- # 18 --><waypoint x="-10381" z="-2692" y="702">
		player:target_Object(ration,500)
	</waypoint>
	<!-- # 19 --><waypoint x="-10226" z="-3202" y="640"></waypoint>
	<!-- # 20 --><waypoint x="-10296" z="-3234" y="625"></waypoint>
	<!-- # 21 --><waypoint x="-10296" z="-3234" y="625">
		player:target_Object(ration,500)
	</waypoint>
	<!-- # 22 --><waypoint x="-10214" z="-3427" y="616"></waypoint>
	<!-- # 23 --><waypoint x="-10214" z="-3427" y="616">
		player:target_Object(ration,500)
	</waypoint>
	<!-- # 20 --><waypoint x="-9950" z="-3462" y="626"></waypoint>
	<!-- # 21 --><waypoint x="-9880" z="-3633" y="646"></waypoint>
	<!-- # 22 --><waypoint x="-9892" z="-3703" y="657"></waypoint>
	<!-- # 23 --><waypoint x="-9892" z="-3703" y="657">
		player:target_Object(ration,500)
		quest_check(rationQuest, rationCompleteTag)
	</waypoint>
	<!-- # 24 --><waypoint x="-9691" z="-3758" y="639"></waypoint>
	<!-- # 25 --><waypoint x="-9596" z="-3693" y="624"></waypoint>
	<!-- # 26 --><waypoint x="-9596" z="-3693" y="624">
		player:target_Object(ration,500)
	</waypoint>
	<!-- # 27 --><waypoint x="-9200" z="-3836" y="592"></waypoint>
	<!-- # 28 --><waypoint x="-9200" z="-3836" y="592">
		player:target_Object(ration,500)
	</waypoint>
	<!-- # 29 --><waypoint x="-9413" z="-3938" y="608"></waypoint>
	<!-- # 30 --><waypoint x="-9682" z="-3803" y="636"></waypoint>
	<!-- # 31 --><waypoint x="-9956" z="-3458" y="626"></waypoint>
	<!-- # 32 --><waypoint x="-10023" z="-3206" y="637"></waypoint>
	<!-- # 33 --><waypoint x="-10023" z="-3206" y="637">
		player:target_Object(ration,500)
	</waypoint>
	<!-- # 34 --><waypoint x="-10230" z="-3033" y="660"></waypoint>
	<!-- # 35 --><waypoint x="-10335" z="-2708" y="702">	
		player:target_Object(ration,500)
		quest_check(rationQuest, rationCompleteTag, rationWaypointTag)
	</waypoint>
	
	<!-- # 36 --><waypoint x="-10335" z="-2708" y="702" tag="rationQuestComplete" >	</waypoint>
	<!-- # 43 --><waypoint x="-10971" z="-2772" y="727">	</waypoint>
	<!-- # 44 --><waypoint x="-11461" z="-2725" y="766">	</waypoint>
	<!-- # 45 --><waypoint x="-11773" z="-2922" y="776">	</waypoint>
	<!-- # 46 --><waypoint x="-11952" z="-2876" y="769">	</waypoint>
	<!-- # 47 --><waypoint x="-12338" z="-2689" y="776">	</waypoint>
	<!-- # 48 --><waypoint x="-12543" z="-2447" y="803">	</waypoint>
	
	<!-- # 49 --><waypoint x="-12743" z="-2359" y="811" tag="laura2">
		player:target_NPC(laura)
		CompleteQuestByName(rationQuest)
		player:target_NPC(laura)
		AcceptQuestByName(secondInstructor)
	</waypoint>
	<!-- # 54 --><waypoint x="-13009" z="-1963" y="873">	</waypoint>
	
	<!-- 50 # 55 --><waypoint x="-13110" z="-1658" y="927" tag="ross">
		player:target_NPC(ross)
		CompleteQuestByName(secondInstructor)
		player:target_NPC(ross)
		AcceptQuestByName(berhuQuest)
		yrest(1000)
		quest_skip_if_complete(berhuQuest,"ross2")
	</waypoint>
	<!-- # 60 --><waypoint x="-12952" z="-2094" y="868">	</waypoint>
	<!-- # 61 --><waypoint x="-12549" z="-2295" y="810">	</waypoint>
	<!-- # 62 --><waypoint x="-12456" z="-2613" y="778">	</waypoint>
	<!-- # 63 --><waypoint x="-11305" z="-3020" y="756">	</waypoint>
	<!-- # 64 --><waypoint x="-11045" z="-3206" y="771">	</waypoint>
	<!-- # 65 --><waypoint x="-10801" z="-3256" y="727">	</waypoint>
	<!-- # 66 --><waypoint x="-10539" z="-3197" y="691">	</waypoint>
	<!-- # 67 --><waypoint x="-10375" z="-3336" y="611">	</waypoint>
	<!-- # 68 --><waypoint x="-10231" z="-3272" y="630">	</waypoint>
	<!-- # 69 --><waypoint x="-9980" z="-3353" y="619">		</waypoint>
	<!-- # 70 --><waypoint x="-9826" z="-3659" y="642">		</waypoint>
	<!-- # 57 --><waypoint x="-9553" z="-3913" y="619">		</waypoint>
	
	<!-- # 72 --><waypoint x="-9521" z="-4072" y="612" tag="berhuQuest" type="NORMAL">
		settings.profile.mobs = { berhu }
		-- No sense looting this crap
		changeProfileOption("LOOT_ALL", false)
		changeProfileOption("LOOT", false)
	</waypoint>
	<!-- # 73 --><waypoint x="-9330" z="-4120" y="611" type="NORMAL" >
		quest_check(berhuQuest, berhuCompleteTag)
	</waypoint>
	<!-- # 74 --><waypoint x="-9285" z="-4212" y="622" type="NORMAL" >
		quest_check(berhuQuest, berhuCompleteTag)
	</waypoint>
	<!-- # 75 --><waypoint x="-9374" z="-4349" y="656" type="NORMAL" >
		quest_check(berhuQuest, berhuCompleteTag)
	</waypoint>
	<!-- # 76 --><waypoint x="-9406" z="-4457" y="651" type="NORMAL" >
		quest_check(berhuQuest, berhuCompleteTag)
	</waypoint>
	<!-- # 77 --><waypoint x="-9310" z="-4618" y="635" type="NORMAL" >
		quest_check(berhuQuest, berhuCompleteTag)
	</waypoint>
	<!-- # 78 --><waypoint x="-9291" z="-4740" y="621" type="NORMAL" >
		quest_check(berhuQuest, berhuCompleteTag)
	</waypoint>
	<!-- # 79 --><waypoint x="-9204" z="-4803" y="618" type="NORMAL" >
		quest_check(berhuQuest, berhuCompleteTag)
	</waypoint>
	<!-- # 80 --><waypoint x="-9085" z="-4871" y="639" type="NORMAL" >
		quest_check(berhuQuest, berhuCompleteTag)
	</waypoint>
	<!-- # 81 --><waypoint x="-9056" z="-4726" y="646" type="NORMAL" >
		quest_check(berhuQuest, berhuCompleteTag)
	</waypoint>
	<!-- # 82 --><waypoint x="-8957" z="-4569" y="651" type="NORMAL" >
		quest_check(berhuQuest, berhuCompleteTag)
	</waypoint>
	<!-- # 83 --><waypoint x="-9155" z="-4475" y="621" type="NORMAL" >
		quest_check(berhuQuest, berhuCompleteTag)
	</waypoint>
	<!-- # 84 --><waypoint x="-9043" z="-4370" y="596" type="NORMAL" >
		quest_check(berhuQuest, berhuCompleteTag)
	</waypoint>
	<!-- # 85 --><waypoint x="-9037" z="-4274" y="587" type="NORMAL" >
		quest_check(berhuQuest, berhuCompleteTag)
	</waypoint>
	<!-- # 86 --><waypoint x="-9041" z="-4155" y="615" type="NORMAL" >
		quest_check(berhuQuest, berhuCompleteTag)
	</waypoint>
	<!-- # 73 --><waypoint x="-8992" z="-4002" y="638" type="NORMAL" >
		quest_check(berhuQuest, berhuCompleteTag)
	</waypoint>
	<!-- # 74 --><waypoint x="-9447" z="-4381" y="650" type="NORMAL" >
		quest_check(berhuQuest, berhuCompleteTag)
	</waypoint>
	<!-- # 75 --><waypoint x="-9539" z="-4267" y="634" type="NORMAL" >
		quest_check(berhuQuest, berhuCompleteTag)
	</waypoint>
	<!-- # 76 --><waypoint x="-9524" z="-3960" y="620" type="NORMAL" >
		quest_check(berhuQuest, berhuCompleteTag, berhuWaypointTag)
	</waypoint>
	
	<!-- # 91 --><waypoint x="-9853" z="-3661" y="644" tag="berhuQuestComplete" >
		settings.profile.mobs = { butter }
	</waypoint>
	<!-- # 92 --><waypoint x="-9996" z="-3304" y="618">		</waypoint>
	<!-- # 93 --><waypoint x="-10150" z="-3211" y="630">	</waypoint>
	<!-- # 94 --><waypoint x="-10261" z="-3055" y="663">	</waypoint>
	<!-- # 95 --><waypoint x="-10326" z="-2799" y="690">	</waypoint>
	<!-- # 96 --><waypoint x="-10770" z="-2724" y="677">	</waypoint>
	<!-- # 97 --><waypoint x="-11095" z="-2643" y="703">	</waypoint>
	<!-- # 98 --><waypoint x="-11447" z="-2583" y="760">	</waypoint>
	<!-- # 99 --><waypoint x="-11893" z="-2784" y="790">	</waypoint>
	<!-- #100 --><waypoint x="-12305" z="-2737" y="770">	</waypoint>
	<!-- #101 --><waypoint x="-12478" z="-2582" y="781">	</waypoint>
	<!-- #102 --><waypoint x="-12861" z="-2203" y="858">	</waypoint>
	<!-- #103 --><waypoint x="-13021" z="-1917" y="877">	</waypoint>
	
	<!-- #104 --><waypoint x="-13107" z="-1666" y="926" tag="ross2">		
		player:target_NPC(ross)
		CompleteQuestByName(berhuQuest)
		player:target_NPC(ross)
		AcceptQuestByName(thirdInstructor)
	</waypoint>
	<!-- #  1 --><waypoint x="-13146" z="-1661" y="931">	</waypoint>
	<!-- #  2 --><waypoint x="-13058" z="-1429" y="865">	</waypoint>
	<!-- #  3 --><waypoint x="-13273" z="-1237" y="812">	</waypoint>
	<!-- #  4 --><waypoint x="-13461" z="-1082" y="801">	</waypoint>
	<!-- #  5 --><waypoint x="-13675" z="-954" y="769">		</waypoint>
	<!-- #  6 --><waypoint x="-13860" z="-907" y="758">		</waypoint>
	<!-- #  7 --><waypoint x="-14121" z="-693" y="765">		</waypoint>
	<!-- #  8 --><waypoint x="-14196" z="-638" y="775">		</waypoint>
	<!-- #  9 --><waypoint x="-14410" z="-701" y="764">		</waypoint>
	<!-- # 10 --><waypoint x="-14602" z="-575" y="795">		</waypoint>
	<!-- # 11 --><waypoint x="-14653" z="-594" y="825">		</waypoint>
	<!-- # 12 --><waypoint x="-14826" z="-588" y="770">		</waypoint>
	<!-- # 13 --><waypoint x="-14964" z="-791" y="771">		</waypoint>
	<!-- # 14 --><waypoint x="-14992" z="-833" y="800">		</waypoint>
	<!-- # 15 --><waypoint x="-15012" z="-847" y="816">		</waypoint>
	<!-- # 16 --><waypoint x="-15031" z="-854" y="827">		</waypoint>
	<!-- # 17 --><waypoint x="-15082" z="-858" y="862">		</waypoint>
	<!-- # 18 --><waypoint x="-15169" z="-791" y="901">		</waypoint>
	<!-- # 19 --><waypoint x="-15339" z="-780" y="935">		</waypoint>
	<!-- # 20 --><waypoint x="-15551" z="-749" y="935">		</waypoint>
	<!-- # 21 --><waypoint x="-15705" z="-947" y="914">		</waypoint>
	<!-- # 22 --><waypoint x="-16013" z="-1101" y="899">	</waypoint>
	<!-- # 23 --><waypoint x="-16114" z="-1126" y="907">	</waypoint>
	<!-- # 24 --><waypoint x="-16294" z="-1302" y="936">	</waypoint>
	<!-- # 25 --><waypoint x="-16515" z="-1455" y="954">	</waypoint>
	<!-- # 26 --><waypoint x="-16820" z="-1047" y="938">	</waypoint>
	<!-- # 27 --><waypoint x="-16786" z="-887" y="950">		</waypoint>
	<!-- # 28 --><waypoint x="-16832" z="-701" y="1024">	</waypoint>
	<!-- # 29 --><waypoint x="-16916" z="-647" y="1046">	</waypoint>
	<!-- # 30 --><waypoint x="-17041" z="-557" y="1061">	</waypoint>
	<!-- # 31 --><waypoint x="-17221" z="-576" y="1090">	</waypoint>
	<!-- # 32 --><waypoint x="-17395" z="-693" y="1072">	</waypoint>
	<!-- # 35 --><waypoint x="-17482" z="-381" y="983">		</waypoint>

	<!-- # 38 --><waypoint x="-17648" z="-320" y="988" tag="kendo">		
		player:target_NPC(kendo)
		CompleteQuestByName(thirdInstructor)
		player:target_NPC(kendo)
		AcceptQuestByName(harshSeaQuest)
	</waypoint>
	<!-- #  1 --><waypoint x="-17668" z="-312" y="988">		</waypoint>
	<!-- #  2 --><waypoint x="-17489" z="-432" y="980">		</waypoint>
	<!-- #  3 --><waypoint x="-17368" z="-323" y="982">		</waypoint>
	<!-- #  4 --><waypoint x="-17234" z="-354" y="993">		</waypoint>
	<!-- #  5 --><waypoint x="-17040" z="-375" y="995">		</waypoint>
	<!-- #  6 --><waypoint x="-16591" z="-352" y="939">		</waypoint>
	<!-- #  7 --><waypoint x="-16656" z="-608" y="972">		</waypoint>
	<!-- #  8 --><waypoint x="-16501" z="-928" y="917">		</waypoint>
	<!-- #  9 --><waypoint x="-16233" z="-1106" y="906">	</waypoint>
	<!-- # 10 --><waypoint x="-16086" z="-1554" y="955">	</waypoint>
	<!-- # 11 --><waypoint x="-15964" z="-1684" y="944">	</waypoint>
	<!-- # 12 --><waypoint x="-15701" z="-1770" y="918">	</waypoint>
	<!-- # 13 --><waypoint x="-15701" z="-1770" y="918">	</waypoint>
	<!-- # 14 --><waypoint x="-15401" z="-1787" y="913">	</waypoint>
	<!-- # 15 --><waypoint x="-15203" z="-1894" y="883">	</waypoint>
	<!-- # 16 --><waypoint x="-14911" z="-1837" y="917">	</waypoint>
	<!-- # 17 --><waypoint x="-14268" z="-1691" y="919">	</waypoint>
	<!-- # 18 --><waypoint x="-14103" z="-1776" y="920">	</waypoint>
	<!-- # 19 --><waypoint x="-13913" z="-1674" y="915">	</waypoint>
	<!-- # 20 --><waypoint x="-13661" z="-1845" y="895">	</waypoint>
	<!-- # 21 --><waypoint x="-13472" z="-1875" y="830">	</waypoint>
	<!-- # 22 --><waypoint x="-13343" z="-1951" y="820">	</waypoint>
	<!-- # 23 --><waypoint x="-13240" z="-2056" y="816">	</waypoint>
	<!-- # 24 --><waypoint x="-13101" z="-2101" y="828">	</waypoint>
	<!-- # 25 --><waypoint x="-13029" z="-2113" y="847">	</waypoint>
	<!-- # 26 --><waypoint x="-12894" z="-2200" y="859">	</waypoint>

	<!-- # 27 --><waypoint x="-12803" z="-2316" y="823" tag="laura3">		
		player:target_NPC(laura)
		CompleteQuestByName(harshSeaQuest)
		player:target_NPC(laura)
		AcceptQuestByName(fourthInstructor)
	</waypoint>
	<!-- #  1 --><waypoint x="-12808" z="-2313" y="825">	</waypoint>
	<!-- #  2 --><waypoint x="-12961" z="-2270" y="854">	</waypoint>
	<!-- #  3 --><waypoint x="-13131" z="-2335" y="835">	</waypoint>
	<!-- #  4 --><waypoint x="-13250" z="-2350" y="874">	</waypoint>
	<!-- #  5 --><waypoint x="-13329" z="-2479" y="959">	</waypoint>
	<!-- #  6 --><waypoint x="-13563" z="-2890" y="916">	</waypoint>
	<!-- #  7 --><waypoint x="-13561" z="-3149" y="898">	</waypoint>
	<!-- #  8 --><waypoint x="-13607" z="-3342" y="902">	</waypoint>
	<!-- #  9 --><waypoint x="-13672" z="-3415" y="890">	</waypoint>
	<!-- # 10 --><waypoint x="-13835" z="-3431" y="873">	</waypoint>
	<!-- # 11 --><waypoint x="-13835" z="-3431" y="873">	</waypoint>
	
	<!-- # 12 --><waypoint x="-13887" z="-3295" y="878" tag="maryann">		
		player:target_NPC(maryann)
		CompleteQuestByName(fourthInstructor)
		player:target_NPC(maryann)
		AcceptQuestByName(spiderQuest)
		yrest(1000)
		quest_skip_if_complete(spiderQuest, "maryann2")
	</waypoint>
	<!-- #  1 --><waypoint x="-13887" z="-3295" y="878">	</waypoint>
	<!-- #  2 --><waypoint x="-14107" z="-3454" y="877">	</waypoint>
	<!-- #  3 --><waypoint x="-14256" z="-3448" y="873">	</waypoint>
	<!-- #  4 --><waypoint x="-14369" z="-3448" y="859">	</waypoint>
	<!-- #  5 --><waypoint x="-14522" z="-3778" y="839">	</waypoint>
	<!-- #  6 --><waypoint x="-14498" z="-3863" y="843">	</waypoint>
	
	<!-- #  1 --><waypoint x="-14455" z="-4047" y="838" type="NORMAL" tag="spiderQuest" >
		settings.profile.mobs = { spider }
		if 240 > settings.profile.options.LOOT_DISTANCE then changeProfileOption("LOOT_DISTANCE", 240) end
		changeProfileOption("LOOT_ALL", true)
		changeProfileOption("LOOT", true)
	</waypoint>
	<!-- #  2 --><waypoint x="-14408" z="-4276" y="845" type="NORMAL" >
		quest_check(spiderQuest, spiderCompleteTag)
	</waypoint>
	<!-- #  3 --><waypoint x="-14289" z="-4225" y="838" type="NORMAL" >
		quest_check(spiderQuest, spiderCompleteTag)
	</waypoint>
	<!-- #  4 --><waypoint x="-14162" z="-4342" y="846" type="NORMAL" >
		quest_check(spiderQuest, spiderCompleteTag)
	</waypoint>
	<!-- #  5 --><waypoint x="-14127" z="-4467" y="850" type="NORMAL" >
		quest_check(spiderQuest, spiderCompleteTag)
	</waypoint>
	<!-- #179 --><waypoint x="-14157" z="-4551" y="848" type="NORMAL" >
		quest_check(spiderQuest, spiderCompleteTag)
	</waypoint>
	<!-- #  7 --><waypoint x="-14215" z="-4712" y="845" type="NORMAL" >
		quest_check(spiderQuest, spiderCompleteTag)
	</waypoint>
	<!-- #  8 --><waypoint x="-14290" z="-4615" y="838" type="NORMAL" >
		quest_check(spiderQuest, spiderCompleteTag)
	</waypoint>
	<!-- #  9 --><waypoint x="-14290" z="-4615" y="838" type="NORMAL" >
		quest_check(spiderQuest, spiderCompleteTag)
	</waypoint>
	<!-- # 10 --><waypoint x="-14505" z="-4536" y="842" type="NORMAL" >
		quest_check(spiderQuest, spiderCompleteTag)
	</waypoint>
	<!-- # 11 --><waypoint x="-14639" z="-4450" y="847" type="NORMAL" >
		quest_check(spiderQuest, spiderCompleteTag)
	</waypoint>
	<!-- # 12 --><waypoint x="-14715" z="-4327" y="849" type="NORMAL" >
		quest_check(spiderQuest, spiderCompleteTag)
	</waypoint>
	<!-- # 13 --><waypoint x="-14629" z="-4166" y="853" type="NORMAL" >	
		quest_check(spiderQuest, spiderCompleteTag, spiderWaypointTag)
	</waypoint>
	
	<!-- # 13 --><waypoint x="-14629" z="-4166" y="853" tag="spiderQuestComplete" >
		settings.profile.mobs = { butter }
		cprintf(cli.lightblue,"Reset original loot distance: ") changeProfileOption("LOOT_DISTANCE", originalLootDistance)
	</waypoint>
	<!-- #  1 --><waypoint x="-14459" z="-3901" y="845">	</waypoint>
	<!-- #  2 --><waypoint x="-14370" z="-3759" y="850">	</waypoint>
	<!-- #  3 --><waypoint x="-13933" z="-3586" y="863">	</waypoint>
	
	<!-- #  4 --><waypoint x="-13897" z="-3298" y="877" tag="maryann2">		
		player:target_NPC(maryann)
		CompleteQuestByName(spiderQuest)
		player:target_NPC(maryann)
		AcceptQuestByName(fifthInstructor)
	</waypoint>
	<!-- #  1 --><waypoint x="-13929" z="-3312" y="877">	</waypoint>
	<!-- #  2 --><waypoint x="-14730" z="-3383" y="866">	</waypoint>
	<!-- #  3 --><waypoint x="-15524" z="-3754" y="860">	</waypoint>
	<!-- #  4 --><waypoint x="-15705" z="-3878" y="948">	</waypoint>
	<!-- #  5 --><waypoint x="-15878" z="-3787" y="958">	</waypoint>
	<!-- #  6 --><waypoint x="-15945" z="-3643" y="960">	</waypoint>
	<!-- #  7 --><waypoint x="-16182" z="-3533" y="970">	</waypoint>
	<!-- #  8 --><waypoint x="-16388" z="-3340" y="1028">	</waypoint>
	<!-- #  9 --><waypoint x="-16589" z="-3243" y="1110">	</waypoint>
	<!-- # 10 --><waypoint x="-16745" z="-3238" y="1084">	</waypoint>
	<!-- # 11 --><waypoint x="-17141" z="-3177" y="1037">	</waypoint>
	<!-- # 12 --><waypoint x="-17329" z="-3072" y="1042">	</waypoint>
	<!-- # 13 --><waypoint x="-17638" z="-3085" y="1042">	</waypoint>
	<!-- # 14 --><waypoint x="-18146" z="-2838" y="1023">	</waypoint>
	
	<!-- # 15 --><waypoint x="-18512" z="-2546" y="1014" tag="rachel">		
		player:target_NPC(rachel)
		CompleteQuestByName(fifthInstructor)
		player:target_NPC(rachel)
		AcceptQuestByName(cyclopsQuest)
		yrest(1000)
		quest_skip_if_complete(cyclopsQuest, "rachel2")
	</waypoint>
	
	<!-- #  3 --><waypoint x="-18527" z="-2322" y="1013" type="NORMAL" tag="cyclopsQuest" >
		settings.profile.mobs = { cyclops }
		-- No sense looting this crap
		changeProfileOption("LOOT_ALL", false)
		changeProfileOption("LOOT", false)
	</waypoint>
	<!-- #  4 --><waypoint x="-18496" z="-2007" y="998" type="NORMAL" >
		quest_check(cyclopsQuest, cyclopsCompleteTag)
	</waypoint>
	<!-- #  5 --><waypoint x="-18148" z="-1931" y="1000" type="NORMAL" >
		quest_check(cyclopsQuest, cyclopsCompleteTag)
	</waypoint>
	<!-- #  6 --><waypoint x="-17999" z="-2009" y="998" type="NORMAL" >
		quest_check(cyclopsQuest, cyclopsCompleteTag)
	</waypoint>
	<!-- #  7 --><waypoint x="-17890" z="-2208" y="992" type="NORMAL" >	
		quest_check(cyclopsQuest, cyclopsCompleteTag)
	</waypoint>
	<!-- #  8 --><waypoint x="-17878" z="-2354" y="991" type="NORMAL" >
		quest_check(cyclopsQuest, cyclopsCompleteTag)
	</waypoint>
	<!-- #  9 --><waypoint x="-17684" z="-2450" y="1011" type="NORMAL" >
		quest_check(cyclopsQuest, cyclopsCompleteTag)
	</waypoint>
	<!-- # 10 --><waypoint x="-17615" z="-2732" y="1029" type="NORMAL" >
		quest_check(cyclopsQuest, cyclopsCompleteTag)
	</waypoint>
	<!-- # 11 --><waypoint x="-17800" z="-2975" y="1032" type="NORMAL" >
		quest_check(cyclopsQuest, cyclopsCompleteTag)
	</waypoint>
	<!-- # 12 --><waypoint x="-18172" z="-2753" y="1018" type="NORMAL" >	
		quest_check(cyclopsQuest, cyclopsCompleteTag, cyclopsWaypointTag)
	</waypoint>
	
	<!-- # 12 --><waypoint x="-18172" z="-2753" y="1018" tag="cyclopsQuestComplete" >
		settings.profile.mobs = { butter }
	</waypoint>
	
	<!-- #  1 --><waypoint x="-18526" z="-2577" y="1019" tag="rachel2">		
		player:target_NPC(rachel)
		CompleteQuestByName(cyclopsQuest)
		player:target_NPC(rachel)
		AcceptQuestByName(lastQuest)
	</waypoint>
	<!-- #  6 --><waypoint x="-18411" z="-2604" y="1006">	</waypoint>
	<!-- #  7 --><waypoint x="-18020" z="-2454" y="1003">	</waypoint>
	<!-- #  8 --><waypoint x="-17800" z="-2157" y="993">	</waypoint>
	<!-- #  9 --><waypoint x="-17587" z="-2032" y="983">	</waypoint>
	<!-- # 10 --><waypoint x="-17324" z="-1777" y="962">	</waypoint>
	<!-- # 11 --><waypoint x="-16880" z="-1347" y="942">	</waypoint>
	<!-- # 12 --><waypoint x="-16752" z="-1223" y="945">	</waypoint>
	<!-- # 13 --><waypoint x="-16512" z="-990" y="910">		</waypoint>
	<!-- # 14 --><waypoint x="-16307" z="-911" y="915">		</waypoint>
	<!-- # 15 --><waypoint x="-15419" z="-734" y="935">		</waypoint>
	<!-- # 16 --><waypoint x="-14965" z="-267" y="742">		</waypoint>
	<!-- # 17 --><waypoint x="-14759" z="-312" y="739">		</waypoint>
	<!-- # 18 --><waypoint x="-14626" z="-404" y="756">		</waypoint>
	<!-- # 19 --><waypoint x="-14467" z="-716" y="761">		</waypoint>
	
	<!-- # 27 --><waypoint x="-14197" z="-624" y="777">		</waypoint>
	<!-- # 29 --><waypoint x="-14038" z="-783" y="763">		</waypoint>
	<!-- # 30 --><waypoint x="-13993" z="-768" y="769">		
		player:target_NPC(joey)
		CompleteQuestByName(lastQuest)
		cprintf(cli.lightblue,"All quests complete - obtained Sea of Snow Package.\n")
	</waypoint>
	<!-- #  6 --><waypoint x="-13974" z="-770" y="771">	</waypoint>
	<!-- #  5 --><waypoint x="-14070" z="-738" y="764">	</waypoint>
	<!-- #  4 --><waypoint x="-14132" z="-710" y="766">	</waypoint>
	<!-- #  3 --><waypoint x="-14201" z="-568" y="783">	</waypoint>
	<!-- #  2 --><waypoint x="-14316" z="-335" y="789">	</waypoint>
	<!-- #  1 --><waypoint x="-14443" z="-205" y="762" tag="snoop">
		take_snoop(snoop,"Obsidian Stronghold")
	</waypoint>
	<!-- #  --><waypoint x="-20460" z="6503" y="-174" tag="obsidianSnoop2">
		take_snoop(snoop, "Varanas")
	</waypoint>
	<!-- #  --><waypoint x="2303" z="1154" y="11" tag="varanasSnoop2">
		error(" Script completed successfully!")
	</waypoint>
</waypoints>

I seem to face a problem , the quest where you need to kill behru's , it keep on killing even if the quest is complete. Please check if it's me or it's the code there is problem with.

Edit : Well not only Behru quests but all those quests involved in this quest chain that involve killing of mobs or collecting items.

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

Posted: Wed Nov 26, 2014 10:46 am
by rock5
Is it reaching waypoints or are the Berhu re-spawning so fast that it never reaches the next waypoint? If they are re-spawning too fast then you might have to add a check in onleavecombat.

To hook into onleavecombat try something like this.

Code: Select all

	if not oldonleavecombat then oldonleavecombat = settings.profile.events.onLeaveCombat end
	function settings.profile.events.onLeaveCombat()
		-- call original function
		if type(oldonleavecombat) == "function" then
			oldonleavecombat()
		end
		-- Put your code here to check your quest, mount, change waypoint type, etc.
		-- You can't pass arguments to onLeaveCombat so you will have to use global variables instead
		-- You can then change the variables to change what onleavecombat checks.
	end
Also, even if it works properly, it will keep killing while traveling to turn in the quest. Maybe you should add a __WPL:setForcedWaypointType() to "TRAVEL" or "RUN" in quest_check. Of course you will also have to set it back to "NORMAL" before the next kill quest.

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

Posted: Wed Nov 26, 2014 10:56 am
by sauhard
Nah mobs are not spawning fast , but it just doesn't recognize if the quest is completed or note. While using other waypoint scripts we usually get a message in MM that if the quest is completed or not. But in this case i am not getting a print in MM about the quest status so the bot keeps on killing mobs.

I've had the same problem before , http://www.solarstrike.net/phpBB3/viewt ... =21&t=5745 where i was killing mobs but never got a repsponse in MM if the quest is completed or not.