It is sending "1" and probably "TAB" for all the time because your bot does not know if any target has been found. atk() function must be executed only if find() succed, in your case both functions are executed for all the time. you know what i mean?
Add one more function to check if desired target is selected and try like this:
Code:
; ======================================
; HOTKEYS
; ======================================
HotKeySet("{HOME}","_OnOFF")
; ======================================
; GLOBAL VARIABLES
; ======================================
Global $bRUN=0 ; switch for bot
; ======================================
; MAINLOOP
; ======================================
While 1
If $bRUN Then
_FindTarget()
_Attack()
EndIf
WEnd
; ======================================
; FUNCTIONS
; ======================================
Func _FindTarget()
Send("{TAB}")
EndFunc
Func _Attack()
While _isTarget()
Send(1)
Sleep(3000)
WEnd
EndFunc
Func _isTarget()
;~ check if target is selected.
;~ try to get monster HP Or whatever
;~ what makes you able to verify the target
EndFunc
; ======================================
; SWITCHES
; ======================================
Func _OnOFF()
$bRUN=Not $bRUN
EndFunc
ok here i put pixelgetcolor for the monster hp bar but it gives me error i think im doing it wrong.
some suggestion on checking if monster is selected/alive please...
Use memory functions instead of pixel searching/checking. Search in memory for address where game writes INT/FLOAT value of target HP. If value > 0 then monster is selected.
If you don't have access to any data about monsters HP from webpages, forums, etc. then try to find it like this.
1) select target, search: unknown initial value
2) hit target once, search: smaller value, repeat this stage untill you find correct value or target is killed.
if this won't work try this method:
1) make sure nothing is selected, search for: 0xFFFFFFFF
2) select monster, search: CHANGED VALUE
3) hit once, search: SMALLER VALUE, repeat.
note: in most MMO games HP value of 0xFFFFFFFF, instead of 0x00 is used to describe ZERO.
hey, the script can work fot the game am playing too , ive tried diff scripts and so on the only prob i have is that when i do activate the scripts nothing ever happens in the game, ive tested it in notepad(i know its not the same) and they work, even a simple send wont work, any help? and idk if the game is blocking the scripts
you won't be able to simulate mouse clicks or key strokes if there is some antihack shield watching game process. there are couple of ways how to solve it:
1) run game process suspended and inject your automated dll
2) remove anti hack shield hooks
3) completely disable anti hack shield
Target Simple Shadows 12/05/2009 - CO2 Weapon, Armor, Effects & Interface edits - 4 Replies I've made a Simple Shadow as a target. It's not too great, but I had to start from scratch, because I couldn't find the simpleshadow.dds.
If anyone could tell me how to make the shadow a circle instead of a square, that would be great.
Locate your Conquer 2.0 Folder. Once instead navigate to:
Place the entire "shadow" folder given inside the .Rar in the pic folder.
You will need WinRar to open this.
NEED help making simple auto attack script 06/28/2008 - Lineage 2 - 0 Replies I have walker 2.03 and i need help making a SIMPLE auto attack script. All i wanna do is target mod, attack, pick up items, target closest mod and repeat. I can add heals and all that stuff later just need help starting a basic combat script.
Simple AutoIT Bot 12/09/2007 - SRO Hacks, Bots, Cheats & Exploits - 8 Replies Hello Everybody,
i made a simple bot for those who don't like T-Bot or for those where it won't works.
File-Upload.net - Ihr kostenloser File Hoster!
other dl link:
2shared - download MaIn_bot.exe
Simple Auto attack bot 10/08/2007 - Archlord - 5 Replies Hi,
i bring you ALAAB, ArchLord Auto Attack Bot ;), it is a bot...that just attacks automatically..i see other bots that always target other monsters constantly..and never kill them, this bot is not that.
Download:
WikiFortio - Download details
Note: You must have your normal attack in slot 3
Note 2: This is 50% memory-based, so if it doesn't work, this is because the addresses are different on each computer..
Note 3: This is sort of a test, if it DOES work, i will add more...