SuperFrogMan (06-11-2013),Yotsuba (06-11-2013)
Grabs HP and MP Potions and returns the mouse to the original position
WARNING: You Must tweak the mouse position for it to double click or it MAY not work (try it)
DOUBLE WARNING: Only works with fullscreen mod unless tweaked
Press 1 to activate (editable)
My first release ^_^Code:1:: loop { PixelGetColor, red, 1758, 799 sleep 1 if red = 0x8A85EC { MouseGetPos, MouseX, MouseY Click, 1758, 799, 2 MouseMove, %MouseX%, %MouseY% } PixelGetColor, blue, 1758, 799 sleep 1 if blue = 0xDF8AA5 { MouseGetPos, MouseX, MouseY Click, 1758, 799, 2 MouseMove, %MouseX%, %MouseY% sleep, 1 } }
Last edited by FIRExFACTION; 06-11-2013 at 11:49 AM.
SuperFrogMan (06-11-2013),Yotsuba (06-11-2013)
Sweet. Can't wait to try this out!
How i can put this code in my client?
cucuYeL (06-11-2013),FIRExFACTION (06-11-2013),GimmeSomeClient (07-07-2013)
Quick Tutorial:
Save the code he posted as an AHK script
Double click the script
???
Profit
(First you need to download AHK though...)
FIRExFACTION (06-11-2013)
^_^ glad people like it if anyone one has any problems with the script let me know, although you should be able to figure it out, also there are 2 lines of code to be edited for the mouse coordinates just mess with the coordinates till it clicks on the hp/mp pot
I can't seem to get it to work. I've tried manipulating the mouse coordinates to where the potion would be in the first slot but I'll admit, I don't have any AHK experience...
Alde is Alde is
pshh when i post a script on this section earl yells at me...when this guys does it we cheer! Fire, do you want me to fix it so it works with fullscreen and non fullscreen?
Edit: wait does this work with all ground slots? 0_0 or just the first one...
Edit #2 ..... can i use this in my mega realmscript....id be editing the script completely but ill give you full credit.
---------- Post added at 10:56 PM ---------- Previous post was at 10:39 PM ----------
what i suggest to you...add pictures into the script....it would make it so you would not have to set x,y
here i made it way faster X and y are set to no fs on flashplayer
Code:;made by FIRExFACTION ;D (but i fixed it up :D) 1:: loop { PixelGetColor, red, 647, 580 sleep 1 if red = 0x8A85EC { MouseGetPos, MouseX, MouseY MouseMove, 647, 580 SendEvent {LButton Down} SendEvent {LButton Up} SendEvent {LButton Down} SendEvent {LButton Up} MouseMove, %MouseX%, %MouseY% } MouseGetPos, MouseX, MouseY PixelGetColor, blue, 647, 580 if blue = 0xDF8AA5 { MouseGetPos, MouseX, MouseY MouseMove, 647, 580 SendEvent {Lbutton down} SendEvent {LButton up} SendEvent {Lbutton down} SendEvent {LButton up} MouseMove, %MouseX%, %MouseY% } } Return
Last edited by dg123; 06-11-2013 at 10:38 PM.
FIRExFACTION (06-11-2013)
Sure! just eave my name in the script or give credit, it could use some tweaking, and it only works for those coordinates, essentially it picks up the color from the spot where an item drops and if it detect either the color of an hp or mp pot in that location it double clicks, but it should be edited to search for the client window or detect the inventory location (the hp and mp pot inventory) and then the script could base its coordinates from there like:
search (using images) for hp and mp pot inventory and then store those coordinates as x, and y
add or subtract a certain number to (x) add or subtract a certain number to (y)
[Note that the numbers added and subtracted to each x and y should be the same since the GUI is relative]
and that would give you the location of where stuff drops on any client
THIS WAY, if you tend to store hp and mp pots in your inventory when normal slots are full (by switching pot that's in the bag with item) the script wouldn't be confused
it'd be really cool if my script was implemented into the mega script ^_^
I thought your mega realm script was fantastic, i can see if i can work on it
add me on skype: firexfaction
i've got many other useful realm scripts that i've been working on for a while that aren't quite ready to be released yet ill see if you can take a look at em