Page 1 of 1

How to stop waypoints

Posted: Mon Nov 10, 2014 2:17 pm
by Lamkefyned
Hi, I have registered a function in a script runs ... but when the instance goes out walking ... .. I can stop as waypoints so you do not walk out ..?

Re: How to stop waypoints

Posted: Fri Nov 14, 2014 10:39 am
by Froote
what do you exactly mean with "stop waypoints" ?

Re: How to stop waypoints

Posted: Thu Nov 20, 2014 5:26 pm
by Lamkefyned
how to make stand

Re: How to stop waypoints

Posted: Sat Nov 22, 2014 5:45 pm
by Bill D Cat
You can manually pause with the END key, or abort it all with CTRL-L.

But if you want to program a conditional stop into the waypoint, then there are ways to do that as well.

Re: How to stop waypoints

Posted: Mon Nov 24, 2014 2:12 am
by Froote
player:sleep() will make your character stand until you press DEL key
player:rest(x) (x = time in seconds) will make your character stand for x seconds.

Re: How to stop waypoints

Posted: Tue Nov 25, 2014 5:05 pm
by Lamkefyned
I have ... I have a function that ...

Code: Select all

		-- Check Bag Background Function
		function RT()
			unregisterTimer("RT")

			local function _RT()
				_count(5)
				sendMacro("DEFAULT_CHAT_FRAME:AddMessage('|cffffff00Check Bag {"..Count.."}|r')")
				if inventory:itemTotalCount(0) == 0 then
					unregisterTimer("RT")
					I()
					WT()
				end
			end

			registerTimer("RT", secondsToTimer(5), _RT);
			yrest(1000)
			_RT()
		end
Script:

Code: Select all

<!-- Sell -->
	<!-- # 83 --><waypoint x="-15149" z="11542" y="156" tag="Sell"> WT() </waypoint>
	<!-- # 84 --><waypoint x="-15200" z="11500" y="156"> player:mount(); </waypoint>
	<!-- # 85 --><waypoint x="-15571" z="11453" y="137"> 	</waypoint>
	<!-- # 86 --><waypoint x="-15783" z="11351" y="125">	 </waypoint>
	<!-- # 87 --><waypoint x="-16207" z="11119" y="120">	 </waypoint>
	<!-- # 88 --><waypoint x="-16397" z="11217" y="143"> 	</waypoint>
	<!-- # 89 --><waypoint x="-16596" z="11361" y="154"> player:merchant(Merchant); </waypoint>
	<!-- # 90--><waypoint x="-16843" z="11364" y="150"> 	</waypoint>
	<!-- # 91 --><waypoint x="-17055" z="11409" y="149"> 	</waypoint>
	<!-- # 92 --><waypoint x="-17146" z="11301" y="170">	 </waypoint>
	<!-- # 93 --><waypoint x="-17349" z="11051" y="78">		</waypoint>
	<!-- # 94 --><waypoint x="-17513" z="10820" y="76">		</waypoint>
	<!-- # 95 --><waypoint x="-17850" z="10557" y="-744"> 	</waypoint>
	<!-- # 96 --><waypoint x="-18147" z="10720" y="-744"> 	</waypoint>
	<!-- # 97 --><waypoint x="-18258" z="10965" y="-744"> 	</waypoint>
	<!-- # 98 --><waypoint x="-18320" z="11231" y="-743"> 	</waypoint>
	<!-- # 99 --><waypoint x="-18388" z="11517" y="-744"> 	</waypoint>
	<!-- #100 --><waypoint x="-18454" z="11908" y="-742">	 </waypoint>
	<!-- #101 --><waypoint x="-18515" z="12326" y="-742"> I() </waypoint>
	<!-- #102 --><waypoint x="-18537" z="12477" y="-743"> </waypoint>
	<!-- #103 --><waypoint x="-18539" z="12490" y="-743">  </waypoint>
	<!-- #104 --><waypoint x="-18541" z="12503" y="-743"> waitForLoadingScreen(10); </waypoint>
but when you have to leave the resort continues to walk out because it continues after waypoints ... I need to stop them and demomento nothing worth me ... or at least not encounter ... Please help

Re: How to stop waypoints

Posted: Tue Nov 25, 2014 5:33 pm
by Bill D Cat
Almost sounds like you want to use a command to end the script completely. Maybe something like...

Code: Select all

error("Finished with script",0)