MouseClick Logger in createpath.lua

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
GurdyMan
Posts: 34
Joined: Fri Sep 11, 2009 5:34 pm

MouseClick Logger in createpath.lua

#1 Post by GurdyMan » Fri Sep 11, 2009 5:54 pm

Just a minor extension on createpath.lua using the file as of revision 235. I added a mouseclick logger to the waypoint options. It simply made for less work than running a mouse logger script, writing down output, then adding into the waypoint file.

It outputs something like this:

Code: Select all

- <waypoints>
- <!--  # 1 
  --> 
  <waypoint x="5" z="19">player:merchant("Housekeeper");</waypoint> 
- <!--  # 2 
  --> 
  <waypoint x="5" z="19">player:mouseclickL(390, 316);</waypoint> 
- <!--  # 3 
  --> 
  <waypoint x="5" z="19">player:mouseclickL(242, 120);</waypoint> 
  </waypoints>
The above file moves to the Housekeeper NPC, opens the menu and (after the 5 second pause) opens the Bank Box and then immediately closes it.

Also, had to add:

Code: Select all

[550] = "  (%s)\tInsert mouseclick event (at mouse position)\n",
to the english language file.
Attachments
createpath2.lua
For viewing the diff.
(7.63 KiB) Downloaded 141 times

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: MouseClick Logger in createpath.lua

#2 Post by d003232 » Sat Sep 12, 2009 1:36 am

GurdyMan wrote:Just a minor extension on createpath.lua using the file as of revision 235. I added a mouseclick logger to the waypoint options. It simply made for less work than running a mouse logger script, writing down output, then adding into the waypoint file.
thx for your help. I will put it to the SVN later.
The RoM Bot Online Wiki needs your help!

GurdyMan
Posts: 34
Joined: Fri Sep 11, 2009 5:34 pm

Re: MouseClick Logger in createpath.lua

#3 Post by GurdyMan » Sat Sep 12, 2009 6:49 am

Thank you. Doubtless you'll have to make it look neater than my beginner level coding.

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: MouseClick Logger in createpath.lua

#4 Post by Administrator » Sat Sep 12, 2009 8:17 am

I haven't looked at this yet, but I do have one quick question about your changes.

Code: Select all

<waypoint x="5" z="19">player:merchant("Housekeeper");</waypoint> 
Did you add something to automatically insert that, or must that be done manually still?

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: MouseClick Logger in createpath.lua

#5 Post by d003232 » Sat Sep 12, 2009 8:37 am

Administrator wrote:I haven't looked at this yet, but I do have one quick question about your changes.

Code: Select all

<waypoint x="5" z="19">player:merchant("Housekeeper");</waypoint> 
Did you add something to automatically insert that, or must that be done manually still?
I uploaded it and added some more options and changes. Now you can choose between:
  • add merchant
  • add NPC (like transporter or quest NPC)
  • add mouseclick
  • add choice Option
Now it's on the limit. If one need more options, he has to edit the waypint files directly.
The RoM Bot Online Wiki needs your help!

GurdyMan
Posts: 34
Joined: Fri Sep 11, 2009 5:34 pm

Re: MouseClick Logger in createpath.lua

#6 Post by GurdyMan » Sat Sep 12, 2009 2:08 pm

Administrator wrote:I haven't looked at this yet, but I do have one quick question about your changes.

Code: Select all

<waypoint x="5" z="19">player:merchant("Housekeeper");</waypoint> 
Did you add something to automatically insert that, or must that be done manually still?
That was already an option.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 2 guests