-
Lamkefyned
- Posts: 348
- Joined: Thu May 23, 2013 11:38 am
- Location: Spain
#1
Post
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>
If you think something is right just because everyone else believes,you're not thinking.
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#2
Post
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.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:
- “They say hard work never hurt anybody, but I figure, why take the chance.”
-
Lamkefyned
- Posts: 348
- Joined: Thu May 23, 2013 11:38 am
- Location: Spain
#3
Post
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.
Last edited by
Lamkefyned on Wed Aug 21, 2013 10:14 am, edited 1 time in total.
If you think something is right just because everyone else believes,you're not thinking.
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#4
Post
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.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:
- “They say hard work never hurt anybody, but I figure, why take the chance.”
-
Lamkefyned
- Posts: 348
- Joined: Thu May 23, 2013 11:38 am
- Location: Spain
#5
Post
by Lamkefyned »
Hello rock
Not whisper but a sale and purchase channel
Well next time I will put the code
If you think something is right just because everyone else believes,you're not thinking.
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#6
Post
by rock5 »
There is an example at that link on how to do channels.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:
- “They say hard work never hurt anybody, but I figure, why take the chance.”
-
Lamkefyned
- Posts: 348
- Joined: Thu May 23, 2013 11:38 am
- Location: Spain
#7
Post
by Lamkefyned »
Ok thank you very much rock
If you think something is right just because everyone else believes,you're not thinking.