Page 3 of 4

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

Posted: Wed Nov 26, 2014 11:26 am
by rock5
I don't see anything wrong. Are you playing in English? If not are there any strange characters in the quest name? Maybe you should use the quest id instead of the name, ie.

Code: Select all

berhuQuest          = 420887
instead of

Code: Select all

berhuQuest          = GetIdName(420887)
Try adding a print message in quest_check to see what is happening, eg.

Code: Select all

print("Checking quest "..quest..". Status = "..getQuestStatus(quest))
Or maybe when you are having that problem you could start up the commandline and do a print

Code: Select all

print(getQuestStatus("Berhus out of Control"))

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

Posted: Wed Nov 26, 2014 12:07 pm
by sauhard
Ye i play on EU server englishClient , and no there are no strange numbers or chars :P

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

Posted: Wed Nov 26, 2014 12:45 pm
by sauhard
I am not really proficient in using Print command actually never used it and never found a tutorial on how to use it :P
Anways i am linking a video. This is the problem i get while harvesting or while killing mobs in the quest chain.

p.s : Please tell where and how do i put the things in print command in script won't ask next time :geek:

View My Video

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

Posted: Wed Nov 26, 2014 12:55 pm
by Bill D Cat
I'm going to take a look into this over the US holiday weekend and see if I can tweak things a bit with my questHelpers user functions. Seems like a good candidate to test some of the other options I have been working on.

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

Posted: Thu Nov 27, 2014 3:05 am
by rock5
Too hard to read anything in that video but it looks like it is doing the ration quest. Looks like it gets the last one at about waypoint 18. Even though there is a quest check at waypoint 18 it is possible that it missed that the quest was complete because it was too soon after the harvest.

The next quest check is at about waypoint 30 so it will keep trying to get rations until waypoint 30. Looks like you stopped the video at waypoint 24. Did it continue once it reached 30?

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

Posted: Thu Nov 27, 2014 10:47 am
by sauhard
Nope :|

Adding Yrest(1000) might help?

Code: Select all

<!-- # 75 --><waypoint x="-9539" z="-4267" y="634" type="NORMAL" >
      quest_check(berhuQuest, berhuCompleteTag)
      yrest(1000)
   </waypoint>

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

Posted: Thu Nov 27, 2014 11:47 am
by rock5
I don't think it will make any difference with that waypoint or any of the Berhu waypoints but with waypoint 18 it might make a difference if you put the yrest between the targeting and the quest check, eg.

Code: Select all

   <!-- # 18 --><waypoint x="-10624" z="-2845" y="685">
      player:target_Object(ration,500)
      yrest(1000)
      quest_check(rationQuest, rationCompleteTag)
   </waypoint>
But, then again, it might not work.

I don't know why the Berhu ones don't work. I'll try to explain better how to do those prints I mentioned before.

To add the print the to quest_check function just add it as the first line of the function

Code: Select all

      function quest_check(quest, questCompleteWaypoint, _questWaypoint)
         print("Checking quest "..quest..". Status = ".. getQuestStatus(quest))
To do a print using the commandline start the commandline by double clicking the StartCommandLine.bat file in the rom folder. Then type or copy and paste the following into the mm console.

Code: Select all

print(getQuestStatus("Berhus out of Control"))
Note: Check my signature for instructions on how to copy and paste in MM.

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

Posted: Fri Nov 28, 2014 12:03 pm
by sauhard
Sorry for the previous Post but yes , ration quest got completed at waypoint 30.
But i don't see any questcheck at waypoint 30, how did you know that there was one?

I tried the print function as you mentioned and it says complete in the micromacro window but still keeps on killing mobs. It is just wildly tageting nearby behru's and killing all of em :P

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

Posted: Fri Nov 28, 2014 1:07 pm
by BlubBlab
I give a try too:

Code: Select all

   print("Checking quest "..quest..". Status = ".. getQuestStatus(quest).." if not complete: ".. questCompleteWaypoint.." if complete: ".. _questWaypoint)
When the quest status are okay my guess checking the tags if their name are ok

EDIT:
and what gives that?

Code: Select all

local num = __WPL:findWaypointTag("berhuQuestComplete")
print("num: "...num);

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

Posted: Fri Nov 28, 2014 9:54 pm
by rock5
sauhard wrote:But i don't see any questcheck at waypoint 30, how did you know that there was one?
Please note that the beginning of each line, where it shows the waypoint number, is just a comment.

Code: Select all

<!-- #  1 -->
If you create the waypoint file with createpaths in one go then the comments will be in order. If you copy waypoint from somewhere else or add or delete waypoints then the comments will be out of order. In your case the numbers were in order up to 18 then I counted down until I reached the next quest check and it was 30 even though it was labeled as something else.

Always the best way to know which waypoint to look at is to look at the coordinates being printed instead of the waypoint number, eg.

Code: Select all

Moving to waypoint #30, (1234, 2345)
In this case you would look for the waypoint with coordinates of 1234, 2345.

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

Posted: Fri Nov 28, 2014 11:53 pm
by Bill D Cat
Worst case, just use the renumber.lua file to replace all the waypoint comment numbers with sequential ones. That way there is less confusion later.

http://www.solarstrike.net/phpBB3/viewt ... 06&p=31370

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

Posted: Sun Nov 30, 2014 3:17 am
by sauhard
rock5 wrote:
sauhard wrote:But i don't see any questcheck at waypoint 30, how did you know that there was one?
Please note that the beginning of each line, where it shows the waypoint number, is just a comment.

Code: Select all

<!-- #  1 -->
If you create the waypoint file with createpaths in one go then the comments will be in order. If you copy waypoint from somewhere else or add or delete waypoints then the comments will be out of order. In your case the numbers were in order up to 18 then I counted down until I reached the next quest check and it was 30 even though it was labeled as something else.

Always the best way to know which waypoint to look at is to look at the coordinates being printed instead of the waypoint number, eg.

Code: Select all

Moving to waypoint #30, (1234, 2345)
In this case you would look for the waypoint with coordinates of 1234, 2345.
ty for the expalantion , but the problem still remains same :( Still the bot is killing mobs even if the quest is complete

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

Posted: Sun Nov 30, 2014 3:55 am
by rock5
sauhard wrote:the problem still remains same :( Still the bot is killing mobs even if the quest is complete
Are you talking about between quest checks or is the quest check not working?

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

Posted: Mon Dec 01, 2014 10:38 pm
by sauhard
Quest check is working fine. I was talking about in between ones.

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

Posted: Mon Dec 01, 2014 11:10 pm
by rock5
In that case you will have to use the onLeaveCombat. Try adding this to your onload.

Code: Select all

	if oldonleavecombat == nil then oldonleavecombat = (settings.profile.events.onLeaveCombat or false) end
	function settings.profile.events.onLeaveCombat()
		-- call original function
		if type(oldonleavecombat) == "function" then
			oldonleavecombat()
		end
		if onLeaveQuest and getQuestStatus(onLeaveQuest) == "complete" then
			__WPL:setForcedWaypointType("RUN")   
			if onLeaveCompleteTag then
				__WPL:setWaypointIndex(__WPL:findWaypointTag(onLeaveCompleteTag))
				onLeaveCompleteTag = nil
			end
			onLeaveQuest = nil -- reset
		end
	end
Then when you are about to start a quest that kills mobs use code like this (this is for the Berhu quest)

Code: Select all

__WPL:setForcedWaypointType("NORMAL")
onLeaveQuest = berhuQuest
onLeaveCompleteTag = berhuCompleteTag
Actually, once you have done this, you wont need so many "quest_check(berhuQuest, berhuCompleteTag)"

Note: This code is untested.

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

Posted: Tue Dec 02, 2014 2:08 am
by sauhard
Like this right?

Code: Select all

player:target_NPC(ross)
		CompleteQuestByName(secondInstructor)
		player:target_NPC(ross)
		AcceptQuestByName(berhuQuest)
		yrest(1000)
		quest_skip_if_complete(berhuQuest,"ross2")
	</waypoint>
	__WPL:setForcedWaypointType("NORMAL")
onLeaveQuest = berhuQuest
onLeaveCompleteTag = berhuCompleteTag
	<!-- # 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" >



The other one:

Code: Select all

<onLoad>
	 if oldonleavecombat == nil then oldonleavecombat = (settings.profile.events.onLeaveCombat or false) end
   function settings.profile.events.onLeaveCombat()
      -- call original function
      if type(oldonleavecombat) == "function" then
         oldonleavecombat()
      end
      if onLeaveQuest and getQuestStatus(onLeaveQuest) == "complete" then
         __WPL:setForcedWaypointType("RUN")   
         if onLeaveCompleteTag then
            __WPL:setWaypointIndex(__WPL:findWaypointTag(onLeaveCompleteTag))
            onLeaveCompleteTag = nil
         end
         onLeaveQuest = nil -- reset
      end
   end

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

Posted: Tue Dec 02, 2014 2:26 am
by rock5

Code: Select all

player:target_NPC(ross)
      CompleteQuestByName(secondInstructor)
      player:target_NPC(ross)
      AcceptQuestByName(berhuQuest)
      yrest(1000)
      quest_skip_if_complete(berhuQuest,"ross2")
   </waypoint>
   __WPL:setForcedWaypointType("NORMAL")
onLeaveQuest = berhuQuest
onLeaveCompleteTag = berhuCompleteTag
All code MUST be between xml start and end tags. This is a waypoint 'start' tag

Code: Select all

<waypoint x="-xxxxx" z="-xxxx" y="xxx">
and this is a waypoint 'end' tag

Code: Select all

</waypoint>
You've put the code outside of any xml tags. Move the added code before </waypoint>

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

Posted: Thu Dec 04, 2014 9:38 am
by sauhard

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
	<onLoad>
	if oldonleavecombat == nil then oldonleavecombat = (settings.profile.events.onLeaveCombat or false) end
   function settings.profile.events.onLeaveCombat()
      -- call original function
      if type(oldonleavecombat) == "function" then
         oldonleavecombat()
      end
      if onLeaveQuest and getQuestStatus(onLeaveQuest) == "complete" then
         __WPL:setForcedWaypointType("RUN")   
         if onLeaveCompleteTag then
            __WPL:setWaypointIndex(__WPL:findWaypointTag(onLeaveCompleteTag))
            onLeaveCompleteTag = nil
         end
         onLeaveQuest = nil -- reset
      end
   end
	--[[ 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)
		print("Checking quest "..quest..". Status = ".. getQuestStatus(quest))
			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">__WPL:setForcedWaypointType("NORMAL")
onLeaveQuest = berhuQuest
onLeaveCompleteTag = berhuCompleteTag	
</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>

So i think this maybe the correct one?

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

Posted: Thu Dec 04, 2014 11:05 am
by rock5
Looks ok.

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

Posted: Fri Dec 05, 2014 12:50 am
by sauhard

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
   <onLoad>
   if oldonleavecombat == nil then oldonleavecombat = (settings.profile.events.onLeaveCombat or false) end
   function settings.profile.events.onLeaveCombat()
      -- call original function
      if type(oldonleavecombat) == "function" then
         oldonleavecombat()
      end
      if onLeaveQuest and getQuestStatus(onLeaveQuest) == "complete" then
         __WPL:setForcedWaypointType("RUN")   
         if onLeaveCompleteTag then
            __WPL:setWaypointIndex(__WPL:findWaypointTag(onLeaveCompleteTag))
            onLeaveCompleteTag = nil
         end
         onLeaveQuest = nil -- reset
      end
   end
   --[[ 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)
      print("Checking quest "..quest..". Status = ".. getQuestStatus(quest))
         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">__WPL:setForcedWaypointType("NORMAL")
onLeaveQuest = berhuQuest
onLeaveCompleteTag = berhuCompleteTag   
</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"> 
   __WPL:setForcedWaypointType("NORMAL")
onLeaveQuest = spiderQuest
onLeaveCompleteTag = spiderCompleteTag
   </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>


As metioned by you i modded the script for spider quest too. But the problem now is it still keeps on killing mobs i.e spider or behru even when the quest is complete. Now when i close the MM and again restart the script , it checks and then says the quest is complete. In nutshell i have to restart script when the quest gets completed.


And i feel that instead of

Code: Select all

onLeaveCompleteTag = berhuCompleteTag
shouldn't it be

Code: Select all

onLeaveCompleteTag = berhuQuestComplete