Write Info Lines in the ROM Chat and manny more :)

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Tobse101
Posts: 2
Joined: Sat Oct 02, 2010 10:57 am

Write Info Lines in the ROM Chat and manny more :)

#1 Post by Tobse101 »

Hey out there,
Im Tobse101 a German Coder.
Im mostly coding Visual Basic or C++ but Lua is new for me.

My Question:
1.: How can i write a Infomessage in the ROM Chat? (Now other players can read this?)
2.: How can i chan set some Items in a list they got looted from killed mobs? (Farm script)
3.: How to find an Walking NPC (to Complete a Quest)
4.: How to Accept a Quest on a BlackBoard (Daylies)

Manny Questions ;) and i hope manny and helpfull Answers :)

Sorry foor bad English, im a German :P

Thanks for helping me,
Tobse
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Write Info Lines in the ROM Chat and manny more :)

#2 Post by rock5 »

Tobse101 wrote: My Question:
1.: How can i write a Infomessage in the ROM Chat? (Now other players can read this?)
2.: How can i chan set some Items in a list they got looted from killed mobs? (Farm script)
3.: How to find an Walking NPC (to Complete a Quest)
4.: How to Accept a Quest on a BlackBoard (Daylies)
1. As far as I know you can only use commands with RoMScript that you start with "/script command" in game. So "/say" wont work. You can use this instead.

Code: Select all

RoMScript("SendChatMessage(\"message to say\", \"SAY\")"
Or if you want to send a value in a variable;

Code: Select all

message = "message to say"
RoMScript("SendChatMessage(\"" .. message .. "\", \"SAY\")"
That should work.
2. I don't think you can get the name of the looted items because rombot doesn't loot, your loot filter addon does that.
3. Assuming the npc doesn't travel very far then player:target_NPC() should still work. You might have to add a pause after that command to give the dialog time to open after walking to the npc. If the npc travels too far you might have to use player:target_NPC at more than 1 waypoint.
4. player:target_Object("name of board") can be used to open a bulletin board.
  • 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.”
          • Ronald Reagan
Tobse101
Posts: 2
Joined: Sat Oct 02, 2010 10:57 am

Re: Write Info Lines in the ROM Chat and manny more :)

#3 Post by Tobse101 »

Hey Rock5,
Thanks for your far Answer, but i dont have a loot addon ?

I need to put a line in my Onload Event to say the Bot (or an Addon) to loot "Alte Steinplatte" or something.

:roll: Sorry for asking dump Questions :P


Tobi


EDIT:

RoMScript("SendChatMessage...
Dont work :(
" Cant Compile & Execute the Lua Code "

Tobi
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Write Info Lines in the ROM Chat and manny more :)

#4 Post by rock5 »

Tobse101 wrote:Hey Rock5,
Thanks for your far Answer, but i dont have a loot addon ?

I need to put a line in my Onload Event to say the Bot (or an Addon) to loot "Alte Steinplatte" or something.
I believe, if you are not using a loot filter, then you have to make sure "Click to Move" and "Auto Loot" are ticked in the game settings.
Tobse101 wrote:RoMScript("SendChatMessage...
Dont work :(
" Cant Compile & Execute the Lua Code "
That's not very helpful. Please paste a copy of the section that wont "compile and execute".
  • 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.”
          • Ronald Reagan
User avatar
silinky
Posts: 213
Joined: Mon Nov 23, 2009 5:07 am

Re: Write Info Lines in the ROM Chat and manny more :)

#5 Post by silinky »

you don't need to paste the last "
think when you paste, ppl, don't be like sheep :P

actually i think it is best we make small nub errors in the codes we post so that not every kindergartener can paste and bot away XD
Post Reply