|
|
|
Page 1 of 1 |
[ 9 posts ] |
|
 Harvesting Bot : EverQuest 2 Premium Discussions
|
|
Posted: January 21st, 2005, 9:02 am
|
|
|
|
metaloxide
metaloxide's Reps:
|
Well early on in the game I realized I was probably going to bust my keyboard hittig the darn TAB key so much, so I wrote a simple auto-it script that detects a specific node, alarms me (sweet chicks voice saying "Target Aquired"), and when I drive up to it spams the minning key for me.
In anycase I have the auto-it script version of this and would love to share it with whoever it will work for.
Currently it only does.
1. Pause script/Engage script
2. Nodes it currently handels is just Sandwashed Stones
3. Harvest key is 6 for Minning
You still have to do the driving, and your windows at least your target window must be in the default area. Oh one more bad thing is, I run in 1600x1200 yeah got the bomb video card so I can afford the resolution.
Oh please disreguard the SoundPlay stuff, unless you would like me to send you my sound waves.
It's more a less a start to something bigger if someone wants to pick up the ball and work with me on this. The concepts use in the auto crafting bot could be used here, Window where the target box is at, then look for white pixels for the specific nodes out there. Auto learn the buff keys or in this case the harvest keys in union with the Hunted node. The Idea is there, maybe some code who knows. Let me know if someone out there wants to work with me on this.
SoundPlay("c:\intro.wav");
$answer = MsgBox(4, "Auto Harvest","Do you want to activate this script?")
HotKeySet("!{F11}", "TogglePause")
HotKeySet("^{F11}", "ScriptEnd")
Global $Paused
If $answer = 7 Then
MsgBox(0, "Good Call", "OK. Bye!")
Exit
EndIf
$turn=0
$done=0;
$tracker=2
$mob=0
$resourceexist=2
TogglePause();
AutoItSetOption("SendKeyDelay", 0235);
AutoItSetOption("SendKeyDownDelay", 0100);
WinWaitActive("EverQuest II");
;------------------------------------------- Main Loop ---------------
Sleep(2000);
While $tracker > 1
Sleep(250);
Sleep(500);
Send ("{TAB}");
;-- Note the Pixel placement below is for me at 1600x1200 sandwash stones
if PixelGetColor(41,92) > 13158600 AND PixelGetColor(69,92) > 13158600 AND PixelGetColor(115,92) > 13158600 Then
SoundPlay("c:\located.wav");
Sleep(2000);
while $resourceexist > 1
Send("6"); // Provided you are stopped this will auto harvest hot key number 6 Minning for me
sleep(1000);
;------ The blow check is to see if the sandwashed stones is gone
if PixelGetColor(41,92) <> 16777215 AND PixelGetColor(69,92) <> 16777215 AND PixelGetColor(115,92) <> 16777215 Then
$resourceexist = 0;
endif
Wend
$resourceexist=2;
Endif
WEnd
;------------------------------------------- Main Loop ---------------
Func ScriptEnd()
SoundPlay("c:\endtrack.wav");
Exit;
EndFunc
Func TogglePause()
SoundPlay("c:\paused.wav");
$Paused = NOT $Paused
While $Paused
sleep(100)
WEnd
SoundPlay("c:\unpaused.wav");
EndFunc
; Returns an array with element1=RED, element2=GREEN, element3=BLUE
Func PixelGetRGB($x, $y)
$hex = Hex(PixelGetColor($x, $y), 6)
$r = Dec(StringRight($hex, 2)) & "|"
$g = Dec(StringMid($hex, 3,2)) & "|"
$b = Dec(StringLeft($hex, 2))
Return StringSplit($r & $g & $b, "|")
EndFunc
Thanks and happy hunting
Metalo
|
|
|
|
|
Posted: January 25th, 2005, 5:39 pm
|
|
|
|
rummaz
rummaz's Reps:
|
Ok call me dumb and slap me stupid. But Do i just copy everthing there? As is.
|
|
|
|
|
Posted: January 26th, 2005, 8:33 am
|
|
|
|
richyrich
richyrich's Reps:
|
As far as harvesting goes, when EQ2MegaBot comes out, it has all the basics to do some pretty advanced harvesting EXCEPT there is no way to head towards something to harvest automatically. I can use target next object, see it's a white target, verify it's not attackable, giving it a high probability that it is a havest object, but there is no way to run towards it as there is no stick/follow for objects in EQ2. If anyone has any ideas here, we could make a killer Harvest bot.
|
|
|
|
|
Posted: January 26th, 2005, 6:54 pm
|
|
|
|
jarvil
jarvil's Reps:
|
Up arrow? Should move you forward. Maybe I misunderstand.
Jarvil
|
|
|
|
|
Posted: January 27th, 2005, 6:08 am
|
|
|
|
richyrich
richyrich's Reps:
|
My bot can move around with no problems, it is not a problem of moving, it is a problem of knowing where to turn and run towards. Since the bot can't "see" the object to harvest as you can, it can only target next item, it doesn't know if it is in front of you or off to the left or right, thus no way to aim right at it and run towards it. If Wyv opens up the back-end as he did in DAOC, and lists all objects, then we are good as I'll just find the object in the list, x,y coords and turn/run for it.
|
|
|
|
|
Posted: February 1st, 2005, 6:26 pm
|
|
|
|
erasmus
erasmus's Reps:
|
Auto-attack? If I recall correctly turning that on spins your char towards the target. Not sure if this applies to nodes or just attackable mobs.
|
|
|
|
|
Posted: February 2nd, 2005, 6:00 am
|
|
|
|
richyrich
richyrich's Reps:
|
works for mobs, not harvest items 
|
|
|
|
|
Posted: February 3rd, 2005, 6:20 pm
|
|
|
|
wyvernx
Total Posts: 6718
Joined: May 1st, 2004, 4:00 am
wyvernx's Reps: 21
|
I have all the locs I need to open up a good API for EQ2. I'm finishing up a daoc radar patch that is a standalone type of app so that it will be alot safer than hooking into the game and drawing the radar on the game screen. I'll have that finished up in a few days, and then I'll post the eq2 service. Rich, i'm sure is programming it so that it will be very easy to convert from /loc to the api.
_________________
Use Search first, ask questions later!
|
|
|
|
|
Posted: February 4th, 2005, 2:28 pm
|
|
|
|
richyrich
richyrich's Reps:
|
Wyv - Once you open up the back-end - watch out! Some good stuff to come!  I am planning on releasing v1 of the BUFF Bot - not auto hunter options for EQ2, game isn't as campable as DAOC and the types of mobs make it tough.
I can't wait for the eq2service to be ready!!
Rich
|
|
|
|
|
Who is online |
|
Users browsing this forum: No registered users and 133 guests |
|
|
|