Jump to content

BOT script


RavenX
 Share

Recommended Posts

HI!I'm just a newbie in autoit..Can anybody tell what's wrong in this script?whenever i run this it only jumps to case else switch then loops on that it does not select the other cases?

$attack = PixelSearch ( 496, 267, 558, 303, 0x343133)

$rapidkick = PixelSearch ( 204, 428, 232, 456, 0xFDCA02)

$earthstrangle = PixelSearch ( 287, 430, 315, 458, 0x755B3A )

$earthsmash = PixelSearch ( 328, 431, 354, 455, 0xFDFDCC)

$rapidfist = PixelSearch ( 244, 428, 271, 456, 0xEFBF02)

$life = PixelSearch ( 561, 405, 576, 413, 0xFD481C)

HotKeySet("!e","_Exit")

Func _Exit ()

Exit

EndFunc

while 1 = 1

Select

case $attack

if IsArray ($attack)= True Then

MouseClick("left", 558, 303, 1, 1000)

EndIf

case $rapidkick

if IsArray ($rapidkick)= True Then

MouseClick("left", 232, 456, 1, 1000)

EndIf

case $earthstrangle

if IsArray ($earthstrangle)= True Then

MouseClick("left", 315, 458, 1, 1000)

EndIf

case $earthsmash

if IsArray ($earthsmash )= True Then

MouseClick("left", 354, 455, 1, 1000)

EndIf

case $rapidfist

if IsArray ($rapidfist )= True Then

MouseClick("left", 271, 456, 1, 1000)

EndIf

case $life

if IsArray ($life )= True Then

MouseClick("left", 408, 406, 1, 1000)

EndIf

case Else

MouseClick("left", 408, 406, 1, 1000)

EndSelect

WEnd

i even tried this one but still loops on case else

while 1 = 1

Select

case $attack = True

MouseClick("left", 558, 303, 1, 1000)

case $rapidkick= True

MouseClick("left", 232, 456, 1, 1000)

case $earthstrangle= True

MouseClick("left", 315, 458, 1, 1000)

case $earthsmash= True

MouseClick("left", 354, 455, 1, 1000)

case $rapidfist= True

MouseClick("left", 271, 456, 1, 1000)

case $life= True

MouseClick("left", 408, 406, 1, 1000)

case Else

MouseClick("left", 408, 406, 1, 1000)

EndSelect

WEnd

Edited by RavenX
Link to comment
Share on other sites

Relevant data for interested observers:

http://ninjasaga.com/ - game in question

Relevant Terms and Conditions information:

You agree that you will not, under any circumstances: Hack, cheat, use any automation software, mods, or any unauthorized third party software designed to modify the Ninja Saga gameplay experience.

This basically means you aren't gonna get help here.

Link to comment
Share on other sites

Try to learn AblibEnable, AdlibRegister. I've already created a ninjasaga bot and

ninjawarz botz but it is not permitted here. :mellow:

Edited by adik2dmax666
First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack. -George Carrette[sub]GD Keylogger Creator (never released)[/sub][sub]Garena Autojoin v3.0[/sub]
Link to comment
Share on other sites

I won't comment on fact that the good people who own this forum don't want you posting gamebots here you know that already. Although I believe stand alone trainers are allowed within reason. After all they don't want to get sued by some tyrannical game company and having their forum go dead. From a programmers point of view I could care less what happens (after I get paid) to my firmware or gameware. :mellow:

Speaking from a programming point of view, I wanted to point out some obvious flaws in you program.

1. It assumes these color values are not blended. Hint: Expand your variants.

2. It assumes they are located in the same region of the screen ALL the time.

3. The biggest problem by far is, they are updated outside your while end loop.

My advice is play the games, don't bot. Botting is for wimps. I might make a bot to learn how but when I play a game for amusement it is really no fun to cheat. Modding a game voids your EULA and you could get banned from the game server and I don't think you want to lose you WoW account etc.. My two sons play Guild Wars a lot and have well over $200 each invested in the Korean made game (lucky Koreans). They have beat the game and continue to play unaided by cheats, mods, or bots. Just my opinion and advice, take it or leave it.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...