Page 1 of 1

player:target_Object Problem

Posted: Sun Sep 05, 2021 4:13 am
by mattstar81
hello community,

In my mystical altar WP the bot should click the Mystic Stone Table to get into the instance. he makes it 70% positive. what can i improve?

Code: Select all

	<!-- # 68 --><waypoint x="-14655" z="-15165" y="1615">
	sendMacro('InviteByName("xxx")');
	</waypoint>
	<!-- # 69 --><waypoint x="-14711" z="-15135" y="1615">
		player:target_Object("Mystischer Steintisch");
		waitForLoadingScreen();
		__WPL:setForcedWaypointType("NORMAL");
		changeProfileOption("WAYPOINT_DEVIATION", 0);
		changeProfileOption("MAX_TARGET_DIST", 90);
		changeProfileOption("COMBAT_RANGED_PULL", false);
	</waypoint>
	
	<!-- # 70 --><waypoint x="568" z="1785" y="983">	</waypoint>
	<!-- # 71 --><waypoint x="821" z="1789" y="983">	</waypoint>

Re: player:target_Object Problem

Posted: Mon Sep 06, 2021 7:46 am
by Administrator
Maybe simply retrying the target_Object on a short delay could do the trick, like so:

Code: Select all

	<!-- # 69 --><waypoint x="-14711" z="-15135" y="1615">
		player:target_Object("Mystischer Steintisch");
		yrest(1000);
		player:target_Object("Mystischer Steintisch");
		waitForLoadingScreen();
		__WPL:setForcedWaypointType("NORMAL");
		changeProfileOption("WAYPOINT_DEVIATION", 0);
		changeProfileOption("MAX_TARGET_DIST", 90);
		changeProfileOption("COMBAT_RANGED_PULL", false);
	</waypoint>

Re: player:target_Object Problem

Posted: Wed Sep 08, 2021 4:20 am
by mattstar81
1a class
thank you very much now it's running smoothly :D