Page 1 of 1

RF Bot: Skill / Buff Bot

Posted: April 2nd, 2006, 10:37 am
by tault_Broden
(DOWNLOAD LINK: Register to unlock hidden link)

(Download is FULL Source and compiled versions. Debug and Release)

I have tried to force RFOnline into window mode using the win32 api but
it doesnt work since RFOnline is pure DirectX.

If any developers out there knows directx's api by heart and knows how to force a directx full screen app into window mode please tell me.
Then I could actually pull that window into my GUI Application and we could start AUTOMATING some stuff other then just buffs :)



**UPDATED
--v1.01
--Added so that the buff bot will auto set focus to RF Online
window. Also added how to handle SELF HOLY BUFFS

---------------------------------------------------------------------------

Hey guys, I made a cool program to auto buff yourself on a time event.

Simply open up VB.NET 2003 or higher, create a NEW solution (CONSOLE APPLICATION) , ADD the REFERENCE "System.Windows.Forms" to the project and copy paste the code below:

(I will go into detail in settings in my next post)



Imports System.Threading
Imports System.Windows.Forms
Module Module1
Private bolRunning As Boolean = True
Private lngBuffCount As Long = 4
Private lngTotalCycles As Long = 0

Declare Function ShowWindow Lib "user32" (ByVal hWnd As System.IntPtr, ByVal nCmdShow As Integer) As Boolean

Public Enum ShowWindowConstants
SW_HIDE = 0
SW_SHOWNORMAL = 1
SW_NORMAL = 1
SW_SHOWMINIMIZED = 2
SW_SHOWMAXIMIZED = 3
SW_MAXIMIZE = 3
SW_SHOWNOACTIVATE = 4
SW_SHOW = 5
SW_MINIMIZE = 6
SW_SHOWMINNOACTIVE = 7
SW_SHOWNA = 8
SW_RESTORE = 9
SW_SHOWDEFAULT = 10
SW_FORCEMINIMIZE = 11
SW_MAX = 11
End Enum

Sub Main()

Console.Write("Undying's Simple RFOnline Buffer v1.0" & vbCrLf)
Console.Write("--------------------------------------" & vbCrLf)

'Bind to process
Dim objProcess As Process()
objProcess = Process.GetProcessesByName("RF_Online.bin")
If objProcess(0).Responding Then

ShowWindow(objProcess(0).MainWindowHandle, ShowWindowConstants.SW_NORMAL)

Thread.CurrentThread.Sleep(5000)

Do While bolRunning

SendKeys.SendWait("{F4}") 'Buff 1
Thread.CurrentThread.Sleep(5000)

SendKeys.SendWait("{F5}") 'Buff 2
Thread.CurrentThread.Sleep(5000)

SendKeys.SendWait("{F6}") 'Buff 3
Thread.CurrentThread.Sleep(30000)

SendKeys.SendWait("{F9}") 'Buff 4 'Holy Select Skill
Thread.CurrentThread.Sleep(300)
SendKeys.SendWait("{F9}") 'Buff 4 'Holy Cast On ThySelf

lngTotalCycles = lngTotalCycles + 1
Console.Write("STATS: Buffs Ran: " & lngTotalCycles & " times. 3 buffs applied each cycle." & vbCrLf)


Thread.CurrentThread.Sleep(180000) 'Sleep 3 minutes, let the buffs wear off and repeat

Loop


End If
End Sub

End Module

Extra Info

SendKeys.SendWait("{F4}") 'Buff 1
'Console.Write("Buff 1 RAN" & vbCrLf)
Thread.CurrentThread.Sleep(5000)
SendKeys.SendWait("{F5}") 'Buff 2
'Console.Write("Buff 2 RAN" & vbCrLf)
Thread.CurrentThread.Sleep(5000)
SendKeys.SendWait("{F6}") 'Buff 3
'Console.Write("Buff 3 RAN" & vbCrLf)


Is where you set up your buffs. (make sure you have enough FP to use all of the buffs).

Also make sure your self buffs are set on the hotbar for the specific F key as well.

NOTE:
Currently after you run your application, it will inform you to ALT+TAB back to RFOnline. This way SendKeys can do its job.

I am working on a solution where RFOnline will not need window focus, but not enough time in my schedule atm. Maybe someone can take what I did here and improve :)

Also make sure your character is NOT in town, you do not gain skill points if buffing in town.

If requested I can post a compiled version for the ppl without vs.net 2k3

Good Job

Posted: April 10th, 2006, 12:34 am
by crydex
Keep it coming dude, I can't seem to find any scripts for RFO atm. Any idea on how hard it would be to make a simple bot to farm aces in a mau? basically:

Target, Kill, Loot, Repeat?

Posted: April 10th, 2006, 10:31 am
by Tault_admin
If you used exhume it wouldnt be to hard.

mmm

Posted: April 10th, 2006, 12:55 pm
by crydex
Think you could offer any advice on how to get ti started then? I'm not familiar with Exhume

Posted: April 11th, 2006, 11:43 am
by Tault_admin
Sure check this one out. It has some info for you.

Register to unlock hidden link

Xunleashed has exhume now built into it.

Posted: April 16th, 2006, 10:14 pm
by korrosive
i guess it would be slightly harder than other games as theres no auto target in rfo

Posted: April 27th, 2006, 3:09 am
by drefsab
would it be possable to get a bot that just cast heal on a character? (also it being able to carry one while the client is minimized would be even better).

Posted: April 28th, 2006, 12:48 am
by djrajir
Undying the scrpiter has a new version
Register to unlock hidden link

After reading the post on the other site i myself have started rewriting the code to make it work on random timers insted of sleep timers which shouldnt be to hard so chk back and I should have it done soon.

Keep in mind though, I will be basing it off his code and will most likly leave the UI mostly intact so I will take no credit for it because all i will be doing is changins about 12 lines of code

~EDIT~ fixed broken link

Posted: April 28th, 2006, 7:48 am
by djrajir
wow , edit my post and leave no cmnt isnt that nice. I understand taking out the link but why take out the rest?

~EDIT~

Ok since my post was edited I can give ya any help you need when running the app so if you have a qustion send me a pm.

A few tips:

Start the game first after some testing I have noticed errors accur if the bot is opened before you are loged in to game.

The global deleay (sleep) is the amount of time the bot waits before it repeats its process of casting the buffs. The default setting is fine however it is somewhat slow. the timer is in miliseconds so in order to make it cast the buffs ASAP after they disaper without error you must set it to 90000 ((1000 * 88)+2000).

Make sure your buffs are in the current hotbar, and it is best to equipt a 500% fp regen item, If you dont have one you can but FP pots and put the in the hot bar and make the bot cast them, the only downside is when you run out of pots not all buffs will be cast

Posted: April 28th, 2006, 7:54 am
by djrajir
would it be possable to get a bot that just cast heal on a character? (also it being able to carry one while the client is minimized would be even better).
It is possiable to make a heal bot but in order to do it the way you want (game minimized), I would have to hook to the games prosses and edit the memory. This is highly detectable and will be patch ASAP. I could continue to make updates, but as a friend of mine once said its to much work to do for free.

I have contacted the make of this bot and am going to attempt to make a AFK lvling bot. He is currently working on one so I plan to help him work it out.

Posted: June 13th, 2007, 3:27 pm
by ovverdose
Anyone have an alternative mirror download for this?
That domain died sometime in 06' apparently.