Page 1 of 1

How to get rombot to whisper my character?

Posted: Mon Nov 15, 2010 7:45 pm
by affirm
Hey, I'm just wondering if/how to whisper a character somewhere in my createpath script... Some like
Waypoint #65
*whisper character xxxx Message*
Waypoint #66
If someone could tell me how to do this that'd be great.
Thanks! :mrgreen:

Re: How to get rombot to whisper my character?

Posted: Mon Nov 15, 2010 10:05 pm
by rock5
SendChatMessage should work. Something like this.

Code: Select all

message = "Some message"
name = "Player Name"
RoMScript("SendChatMessage(\"" .. message .. "\",\"WHISPER\",0,\""..name.."\")")

Re: How to get rombot to whisper my character?

Posted: Mon Nov 15, 2010 10:15 pm
by affirm
rock5 wrote:SendChatMessage should work. Something like this.

Code: Select all

message = "Some message"
name = "Player Name"
RoMScript("SendChatMessage(\"" .. message .. "\",\"WHISPER\",0,\""..name.."\")")
thanks so much! I'm new to this so i'd never be able to think up something like that. Also on a side note... it... do i put the Message =
and Name = stuff in... or is it simply

Code: Select all

	RoMScript("SendChatMessage(\""Wakawaka"\",\"WHISPER\",0,\""ToonsName"\")")

Re: How to get rombot to whisper my character?

Posted: Mon Nov 15, 2010 10:40 pm
by rock5
Just change "message =" and "name =". The RoMScript command would use those variables. I thought it would be easier like this.

If you just want to use a RoMScript command, it would look like this.

Code: Select all

RoMScript("SendChatMessage(\"Some message\",\"WHISPER\",0,\"Player Name\")")

Re: How to get rombot to whisper my character?

Posted: Mon Nov 15, 2010 10:49 pm
by affirm
rock5 wrote:Just change "message =" and "name =". The RoMScript command would use those variables. I thought it would be easier like this.

If you just want to use a RoMScript command, it would look like this.

Code: Select all

RoMScript("SendChatMessage(\"Some message\",\"WHISPER\",0,\"Player Name\")")
Thanks so much :)

So far, i've tried this with no success though... Could someone possibly tell me what i'm doin wrong please?

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
	<!-- #  1 --><waypoint x="-440" z="-5987">	</waypoint>
	message = "Wakawaka"
	name = "Frose"
	RoMScript("SendChatMessage(\"" .. message .. "\",\"WHISPER\",0,\""..name.."\")")
</waypoints>
All it does when i run this is hit the waypoint over and over


Edit: Excuse the stupidity. I re-read the how-to section and now, realize that the thing needs to be IN the waypoints. Totally my bad. Works perfectly now, thanks!


Last question, I promise: How do i sell to an NPC? does it auto-sell stuff when i talk to NPC using a bot? or do i need to enter something in the script?

Re: How to get rombot to whisper my character?

Posted: Tue Nov 16, 2010 12:32 am
by rock5
You use "player:merchant('npcname')" to auto sell, buy and repair according to the settings in your profile.
http://www.solarstrike.net/wiki/index.p ... uto_repair

Re: How to get rombot to whisper my character?

Posted: Tue Nov 16, 2010 12:35 am
by affirm
rock5 wrote:You use "player:merchant('npcname')" to auto sell, buy and repair according to the settings in your profile.
http://www.solarstrike.net/wiki/index.p ... uto_repair
I, sir, am a dumbass. Thankyou!