Page 1 of 1
Addon auto talk
Posted: Thu Aug 01, 2013 7:07 pm
by Lamkefyned
Hello
you can put in a script to speak for the chat every x minutes?
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<waypoints>
<!-- # 1 --><waypoint x="6354" z="4675" y="168"> </waypoint>
<!-- # 2 --><waypoint x="6482" z="4298" y="168"> </waypoint>
</waypoints>
Re: Addon auto talk
Posted: Fri Aug 02, 2013 12:59 am
by rock5
Do you mean something like this?
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<onload>
local x = 5 -- minutes
local message = "your message here"
function speak(msg)
sendMacro("SendChatMessage('"..msg.."', 'SAY')");
end
registerTimer("mytimer", x*60*1000, speak, message)
</onload>
<waypoints>
<!-- # 1 --><waypoint x="6354" z="4675" y="168"> </waypoint>
<!-- # 2 --><waypoint x="6482" z="4298" y="168"> </waypoint>
</waypoints>
This is untested.
Re: Addon auto talk
Posted: Fri Aug 02, 2013 8:52 am
by Lamkefyned
rock there is an error
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
[color=#00FF00]<waypoints>[/color]
<onload>
local x = 5 -- minutes
local message = "(Addon)Vendo Carne de perro interesados susurrarme ofertas"
function speak(msg)
sendMacro("SendChatMessage('"..msg.."', 'SAY')");
end
registerTimer("mytimer", x*60*1000, speak, message)
</onload>
[color=#FF0000]<waypoints> ERROR[/color]
<!-- # 1 --><waypoint x="6354" z="4675" y="168"> </waypoint>
<!-- # 2 --><waypoint x="6482" z="4298" y="168"> </waypoint>
</waypoints>
Hello rock
thanks it works but as I can say it in a private chat called Ridire can tell me how.
Re: Addon auto talk
Posted: Fri Aug 02, 2013 9:42 am
by rock5
Sorry, that's why I said it was untested.

But it's good to see you picked up on the error.
Do you mean you want to whisper someone called Ridire? Then you would use
Code: Select all
sendMacro("SendChatMessage('"..msg.."', 'WHISPER',0,'Ridire')");
You can read about the function here.
http://runesofmagic.gamepedia.com/API:SendChatMessage
And can you please put code in code tags in the future. Just select the text and click the "Code" button at the top of the edit box.
Re: Addon auto talk
Posted: Fri Aug 02, 2013 2:39 pm
by Lamkefyned
Hello rock
Not whisper but a sale and purchase channel
Well next time I will put the code
Re: Addon auto talk
Posted: Fri Aug 02, 2013 2:51 pm
by rock5
There is an example at that link on how to do channels.
Re: Addon auto talk
Posted: Fri Aug 02, 2013 3:37 pm
by Lamkefyned
Ok thank you very much rock