Search found 6989 matches

by lisa
Thu Aug 04, 2016 2:25 am
Forum: Announcements
Topic: MicroMacro HTTPD mini-server library; adding web-GUI to your scripts
Replies: 6
Views: 7388

Re: MicroMacro HTTPD mini-server library; adding web-GUI to your scripts

(v194) ok works fine on the 64 version but when I used the 86 version it always returned nil as the name. local windowId = window.find("Untitled - Notepad"); local procId = process.findByWindow(windowId); local procHandle = process.open(procId); local filename = process.getModuleFilename(procHandle)...
by lisa
Thu Aug 04, 2016 1:06 am
Forum: Everything else
Topic: player direction
Replies: 3
Views: 561

Re: player direction

copy pasted a bit of code from RoM and turning ended up like this. playerupdate() local angle = 0 --north local angleDif = angleDifference(angle, playerdirection); -- If more than X degrees off, correct before moving. local rotateStartTime = os.time(); local turningDir = -1; -- 0 = left, 1 = right i...
by lisa
Wed Aug 03, 2016 5:38 pm
Forum: Announcements
Topic: MicroMacro HTTPD mini-server library; adding web-GUI to your scripts
Replies: 6
Views: 7388

Re: MicroMacro HTTPD mini-server library; adding web-GUI to your scripts

procid = process.findByWindow(win) proc = process.open(procid) print(process.getModuleFilename(proc)) Failed to run init function, err code: 7 (Runtime error) fine1.lua:35: attempt to call a nil value (field 'getModuleFilename') stack traceback: fine1.lua:35: in function 'searchForWindow' fine1.lua...
by lisa
Wed Aug 03, 2016 12:15 am
Forum: Announcements
Topic: MicroMacro HTTPD mini-server library; adding web-GUI to your scripts
Replies: 6
Views: 7388

Re: MicroMacro HTTPD mini-server library; adding web-GUI to your scripts

I don't suppose you added getModuleFilename into this release? I tried the name as is but doesn't exist, I am hoping it is maybe a ****.getModuleFilename() :D
by lisa
Wed Aug 03, 2016 12:05 am
Forum: Everything else
Topic: player direction
Replies: 3
Views: 561

player direction

Ok so I have been working on a game for a little and I get the cords and direction easy enough from memory, now to using those directions. The way I see it I have 2 options to go with. First is very similar to RoM in the way that you have 2 values and use the 2 values to work out which way you are p...
by lisa
Thu Jul 28, 2016 8:25 pm
Forum: MicroMacro general & support
Topic: MM2 reading files
Replies: 4
Views: 788

Re: MM2 reading files

just keeps adding lines constantly, it does start a new file but I am not sure at what point, if it each log in or after ## lines or each day, haven't determined that yet. The lines are constantly being added when you do something, so when I am active it is adding more lines but when I sit there doi...
by lisa
Thu Jul 28, 2016 2:32 am
Forum: MicroMacro general & support
Topic: MM2 reading files
Replies: 4
Views: 788

Re: MM2 reading files

What I am currently doing is in the macro.main loop --get event table if( filesystem.fileExists(filename) ) then eventtable = {} local file = io.open(filename, "r"); for line in file:lines() do table.insert(eventtable,line) end file:close() end and then just use a function to read from the table. fu...
by lisa
Thu Jul 28, 2016 12:30 am
Forum: MicroMacro general & support
Topic: MM2 reading files
Replies: 4
Views: 788

MM2 reading files

I checked wiki but didn't find anything for what I was after, also found a mistake. http://www.solarstrike.net/wiki/index.php?title=Process_Module getModuleFilename and the example has "string process.getModuleAddress(handle process)" which is the previous command. Ok anyway to what I am after, curr...
by lisa
Sat Jul 02, 2016 5:22 pm
Forum: Userfunctions, waypoint scripts, etc.
Topic: Research Expert - Manual Macro
Replies: 2
Views: 532

Re: Research Expert - Manual Macro

you can't use macros for that quest, simply can't be done, you either bot it or do it manually.
by lisa
Wed Jun 22, 2016 3:58 am
Forum: Runes of Magic
Topic: Butterfly daily with resets script
Replies: 24
Views: 3595

Re: Butterfly daily with resets script

pretty sure I was just editing code that was posted, didn't look at how or why it should or shouldn't work. Easy solution is get rid of the else and move the target npc and accept quest to after the second end local dqCount, dqPerDay = RoMScript("Daily_count()"); if dqCount == 10 then player:update(...
by lisa
Tue Jun 21, 2016 10:14 pm
Forum: Runes of Magic
Topic: repairing
Replies: 11
Views: 1100

Re: repairing

I found the wp where that snippet of code came from, only took a few seconds in forum search.

http://www.solarstrike.net/phpBB3/viewt ... vel#p60248
by lisa
Tue Jun 21, 2016 10:00 pm
Forum: Runes of Magic
Topic: repairing
Replies: 11
Views: 1100

Re: repairing

if ( 50 > inventory:getMainHandDurability() ) then if inventory:itemTotalCount(201014) > 0 then cprintf(cli.lightred,"repairing ..."); inventory:useItem(201014); cprintf(cli.yellow,"done!\n"); inventory:update(); else cprintf(cli.lightred,"No repair hammers in bag!\n"); player:clearTarget(); player...
by lisa
Sun Jun 19, 2016 5:57 pm
Forum: Runes of Magic
Topic: Butterfly daily with resets script
Replies: 24
Views: 3595

Re: Butterfly daily with resets script

local dqCount, dqPerDay = RoMScript("Daily_count()"); if dqCount == 10 then -- this part is done if you have done all 10 dailies player:update(); -- if you have atleast 1 daily reset it will use it if inventory:itemTotalCount(202434) > 0 then inventory:useItem(202434); -- if you have no resets then ...
by lisa
Sat Jun 18, 2016 4:59 pm
Forum: Runes of Magic
Topic: Butterfly daily with resets script
Replies: 24
Views: 3595

Re: Butterfly daily with resets script

local dqCount, dqPerDay = RoMScript("Daily_count()"); if dqCount == 10 then player:update(); if inventory:itemTotalCount(202434) > 0 then inventory:useItem(202434); else sendMacro("LeaveParty();") player:sleep(); end else player:target_NPC("Robbie Butcher"); AcceptQuestByName("Catch Butterflies") e...
by lisa
Mon May 16, 2016 10:39 pm
Forum: Runes of Magic
Topic: error() causes a crash
Replies: 3
Views: 321

Re: error() causes a crash

error() will make MM exit what ever script it is running and go back to the command prompt, that is what it is for.

I have absolutely no idea what you thought it was for.
by lisa
Sun May 01, 2016 11:25 pm
Forum: MicroMacro general & support
Topic: Question: Save stuff to file and read the infomation?
Replies: 2
Views: 1721

Re: Question: Save stuff to file and read the infomation?

well you have the file *****.lua and the info as a table. inside the file would look like this return { "socks", "shoes", "hats"} So the code to save it would be something like local file = io.open("filename.lua", "w") file:write('return { "socks", "shoes", "hats"}') file:close(); then you get the i...
by lisa
Tue Apr 12, 2016 6:40 am
Forum: Runes of Magic
Topic: Problem change skill options with onload
Replies: 5
Views: 494

Re: Problem change skill options with onload

In the onload add this. table.print(settings.profile.skills) Everything needs to be exactly as they get printed and if the skill you want to change isn't in the prints then it obviously won't work, need to make sure they are actually in the profile as well. Check rocks post about it here and take a ...
by lisa
Tue Mar 29, 2016 8:49 pm
Forum: Runes of Magic
Topic: Arcadia RoM implemented Antihack system - prevent to run 3rd party software (like micromacro, romeo).
Replies: 70
Views: 11504

Re: Arcadia RoM implemented Antihack system - prevent to run 3rd party software (like micromacro, romeo).

Yeah I have a lot of real life stuff at the moment, I probably won't be able to really look at this for a while.
by lisa
Tue Mar 29, 2016 5:31 pm
Forum: Runes of Magic
Topic: Arcadia RoM implemented Antihack system - prevent to run 3rd party software (like micromacro, romeo).
Replies: 70
Views: 11504

Re: Arcadia RoM implemented Antihack system - prevent to run 3rd party software (like micromacro, romeo).

still haven't updated client to current yet, had real life stuff to do and almost reached my d/l max for the month as well, I'm only updated to 9.0.2 and pretty sure going to be a few more GB to get to 9.1.