[API] FWCA - Write your own Bots with ease !

07/30/2011 23:03 buFFy!#1
So ! Here we go:

DEVELOPERS ONLY !

This is a small Client API for Forsaken World ! What you can do with this is pretty simple - but awesome !

It works with AutoIT, and prevents you from doing Stupid PixelSearches !

You can for example do:
Code:
$myMaxHealth = Ask($MC_GetMaxHP)
and it will set myMaxHealth to your current max health !

Functions that are implemented yet:
Code:
;$MC_IsInitiated - used once in fwca.au3. dont use urself
;$MC_GetMaxHP - returns your maximal hp
;$MC_GetMaxMP - returns your maximal mp
;$MC_GetCurHP - returns your current hp
;$MC_GetCurMP - returns your current mp
;$MC_GetTargetId - returns the id of your current target
;$MC_SetTargetId - sets a new target by id [use: Say($MC_SetTargetId, id)]
;$MC_GetTargetCurHP - returns the current hp of your current target
;$MC_GetTargetCurMP - returns the current mp of your current target
;$MC_GetTargetMaxHP - returns the maximal hp of your current target
;$MC_GetTargetMaxMP - returns the maximal mp of your current target
;$MC_GetTargetLevel - returns the level of your current target
;$MC_GetTargetNamePtr - returns a pointer to the name of your target. use GetTargetName() instead
;$MC_HideTitle - hides your title. no parameters
;$MC_SetTitle - this will require a title id. dont use it !
;$MC_AttackTarget - attacks the current target (no skills!)
;$MC_CancelSkill - no parameters. does what it says
;$MC_CallPet - zero based index. calls a pet (e.g.: Say($MC_CallPet, 0)) <- call it permanently to make ur pet attack!
;$MC_DropPet - zero based index. drops the curent called pet. see $MC_CallPet for example
;$MC_PetAttack - forces the pet to attack the given target. Say($MC_CallPet, $TargetId)
;$MC_UsePot - this will require you 2 parameters. Dont use it!
All you have to do is the following:

Step 1: Launch Forsaken World
Step 2: Go to Character Selection Screen
Step 3: Run "Injector.exe" (This will load FWCA into your game!)
Step 4: Run your Bot/Script (or one of my Sample.au3's)

You have to run Injector.exe EVERYTIME you restart your Game.
You can also run the Injector.exe automatically using AutoIT of course.

Remember to put FWCA.au3 into your Scripts directory and include it.
Code:
#include "FWCA.au3"
Its tested with german Client, but should work with every Version.

Please give feedback, and tell ur wishes (e.g. what to be added)

greetz, buFFy ~
07/30/2011 23:06 otezun#2
kewl story bro.
07/31/2011 23:05 buFFy!#3
update. added

Code:
;$MC_HideTitle - hides your title. no parameters
;$MC_SetTitle - this will require a title id. dont use it !
;$MC_AttackTarget - attacks the current target (no skills!)
;$MC_CancelSkill - no parameters. does what it says
;$MC_CallPet - zero based index. calls a pet (e.g.: Say($MC_CallPet, 0)) <- call it permanently to make ur pet attack!
;$MC_DropPet - zero based index. drops the curent called pet. see $MC_CallPet for example
;$MC_PetAttack - forces the pet to attack the given target. Say($MC_CallPet, $TargetId)
;$MC_UsePot - this will require you 2 parameters. Dont use it!
08/04/2011 09:32 venomous13#4
In short whats the purpose can you specify cause im noob?? you think it will work on other country like philliphine server???:D:D:D:handsdown::handsdown:
08/04/2011 10:58 buFFy!#5
it should work with EVERY client.

its explained what you can do with it.. just read the first post
08/14/2011 03:33 arazhassan#6
not working :(

[Only registered and activated users can see links. Click Here To Register...]

Uploaded with [Only registered and activated users can see links. Click Here To Register...]
08/14/2011 06:57 essiralc#7
I tried this on FW Ph but it says window not found..I guess it wouldn't work in our server..but nice job though..thanks
08/14/2011 19:10 drixnak#8
Yeah, didn't work on NA version.
08/16/2011 14:14 buFFy!#9
you have to adjust the windowtitle in FWCA.au3
08/18/2011 08:13 aurora12_6#10
Hi, can you explain these variables?:
I still get the Window not found error.

Global $sWin = 0
Global $hRet = 0
Global $hWnd = 0
Global $hPrc = 0
Global $iPid = 0


thanks,
08/18/2011 17:16 plaguez#11
the injection, when applied crashes the game in the updated version. great job though while it was still working.