Page 1 of 1

how to make my characters whisper or chat in private channel?

Posted: Mon Oct 03, 2011 7:13 am
by firezone

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
	<!-- #  1 --><waypoint x="-30131" z="1488">	</waypoint>
	<!-- #  2 --><waypoint x="-30118" z="1278">	</waypoint>
	<!-- #  3 --><waypoint x="-29988" z="1157">	</waypoint>
	<!-- #  4 --><waypoint x="-29937" z="988">	</waypoint>
	<!-- #  5 --><waypoint x="-30082" z="1145">	</waypoint>
	<!-- #  6 --><waypoint x="-30152" z="1245">	</waypoint>
	<!-- #  7 --><waypoint x="-30321" z="1309">	</waypoint>
	<!-- #  8 --><waypoint x="-30135" z="1489">	sendMacro("SendChatMessage("test", WHISPER, 0, "Charname")") </waypoint>
</waypoints>
return with

Mapping inventory (bagslot 1 to 60)...
100% [**************************************************]
Moving to waypoint #1, (-29558, 1160)
9:46pm - scripts\bot.lua:667: Failed to compile and run Lua code for waypoint #1

Re: how to make my characters whisper or chat in private channel?

Posted: Mon Oct 03, 2011 7:23 am
by rock5
You can't use "s inside "s. So change the inner ones to ' or escape the inner ones like this \".

eg.

Code: Select all

sendMacro("SendChatMessage(\"test\", WHISPER, 0, \"Charname\")") 
sendMacro will then see it as one big string.

Re: how to make my characters whisper or chat in private channel?

Posted: Mon Oct 03, 2011 7:55 am
by firezone
thanks got it rock5 rocks :D