Page 1 of 1

Splitwater Coast Daily: Hired Hands

Posted: Mon Feb 15, 2016 9:50 am
by Aron009
The file has been updated!

Hi, I made this script since the Heal Wounds Daily is bugged on my server and the Rennovation Work Daily requires completion of a substantial portion of the main quest line.

It has one problem that needs resolving however, the bot fails at the last stage when the delivery cart has to be clicked. I get the following message:
Capture.JPG
The problematic section of the code:

Code: Select all

</waypoint>
	<!-- # 16 --><waypoint x="-10091" z="-13357" y="373">
			player:target_Object(123695) -- Heavy Food Bundle
	</waypoint>
	<!-- # 17 --><waypoint x="-10106" z="-13338" y="373" tag="Loop">
			player:target_Object(123757) -- Delivery Cart
				yrest(300)
			player:target_Object(123757) -- Delivery Cart
				yrest(300)
			player:target_Object(123757) -- Delivery Cart
				yrest(300)
			player:target_Object(123757) -- Delivery Cart
				yrest(300)
			player:target_Object(123757) -- Delivery Cart
				yrest(300)
			player:target_Object(123757) -- Delivery Cart
				yrest(300)
			player:target_Object(123757) -- Delivery Cart
				yrest(300)
			player:target_Object(123757) -- Delivery Cart
				yrest(300)
	if queststate == "complete" then
			player:target_NPC(123670) -- Carlie
			CompleteQuestByName(427164) -- Hired Hands
		else
	__WPL:setWaypointIndex(__WPL:findWaypointTag("Loop"))
				local dqCount, dqPerDay = RoMScript("Daily_count()");
					if dqCount == 10 then
					player:sleep();
			
	</waypoint>
</waypoints>

Re: Splitwater Coast Daily: Hired Hands

Posted: Mon Feb 15, 2016 11:19 am
by ThulsaDoom
Dear;

You need to close the "if" with "end".

Code: Select all

if queststate == "complete" then
         player:target_NPC(123670) -- Carlie
         CompleteQuestByName(427164) -- Hired Hands
      else
  		 __WPL:setWaypointIndex(__WPL:findWaypointTag("Loop"))
           	 local dqCount, dqPerDay = RoMScript("Daily_count()");
               		if dqCount == 10 then
               			player:sleep();
         			end
end
Not tested yet. Is the first approach.

Re: Splitwater Coast Daily: Hired Hands

Posted: Mon Feb 15, 2016 11:41 am
by Aron009
Crap. Yes that would be it. I was so focused on the Delivery Cart I forgot to check for other mistakes!