Sunday, June 14, 2009

Darkfall G15 Autoloot Script – Darkfall Online



There are two useful Macros if you’re a proud owner of a G15 keyboard and Darkfall Online player.

The first macro is to find out the screen coordinates where the item should be dragged. Bind this macro to a key, go in-game and move the mouse course to where your bag (or bank) is and click it.

function OnEvent(event, arg)
if (event==”G_PRESSED” and arg==1) then
local x, y = GetMousePosition();
local sFmt = string.format(”Mouse is at %d,%d\n”, x, y);
OutputLCDMessage(sFmt);
end
end
*Use this to get x,y

It will tell you the coordinates. Write down the two numbers as you will need it for the next macro.

function OnEvent(event, arg)
if (event == “G_PRESSED” and arg == 6) then
x, y = GetMousePosition();
PressMouseButton(1)
Sleep(10)
MoveMouseTo(41882, 46793)
Sleep(10)
ReleaseMouseButton(1)
Sleep(10)
MoveMouseTo(x, y)
OutputLCDMessage(”Looted”, 2000)
end
end

Replace the “MoveMouseTo(41882, 46793)” part with the number you’ve written down in step 1. Bind it to a key and next time you loot someone, simply execute the macro and the item will land in your inventory without you having to drag it there.

There are three main advantages using this macro:

  • No annoying work of pulling loot in your bags
  • Very fast looting of enemies (especially if there are other people who try too loot it too)
  • Last but not least: Saves much time, this also means, that you don’t have to spend much time with your looting and the probability is lower that someone will ambush you from behind while you’re looting

5 comments:

Anonymous said...

I can't get this to work :( I got the first bit to work one time but now it won't work at all :( Do I need to create a profile and link it to the darkfall.exe file?

Anonymous said...

OK i got the coordinates working but can't get the loot bit to work :(

Odessa Silverberg said...

Did you replaced MoveMouseTo(41882, 46793) with the values you got from the first macro?

Anonymous said...

Where does it show the coordinates? They dont show up ingame or the lcd screen. Does this still work?

Anonymous said...

I cant get this to work at all, I have tried everything I can think of, a lil help would be great here:)