Sign in to follow this  
Followers 0
rakarna

stack overflow???

6 posts in this topic

hi

when i have run my script for a while it stops and say

\Documents and Settings\Administratör\Skrivbord\AQ orgi bot.au3 (75) : ==> Recursion level has been exceeded - AutoIt will quit to prevent stack overflow.:

it starts to get relly enoying now and so really need help to get this to work.

and guys when you se the script you will think it is a bot and it is a bot but it those not break any rules what so ever so please dont close this topic ;)

thanks in advance

sorry for bad english*

here you have the code.

sleep(3000)

klick()

Func klick() ; ifall du inte vill ha itemet ska greja en item2 också som man ska använda ifall man vill ha sasaker

If PixelGetColor(542, 563) = 0x000000 Then

item2()

EndIf

sleep(3000)

;If PixelGetColor(139, 205) = 0x000000 Then ; mina liv ifall hag har under en vis gräns ska han gå rest

; rest() gjorde så här för dem inte behövs just nu

;Else

rew()

;EndIf

EndFunc

Func rest()

MouseClick("left",678, 673)

Do

sleep(2000)

Until PixelGetColor(204, 205) = 0x950F0F ; när mina liv e återställda call kill

kill()

EndFunc

Func item()

MouseClick("left",565, 633) ; trycker No

EndFunc

Func item2()

MouseClick("left",416, 634) ; trycker Yes

EndFunc

func kill()

;Do

If PixelGetColor(335, 205) = 0x000000 Then ; monsters är dött

klick()

Else

Send("4")

sleep(1000)

Send("1")

Sleep(1000)

Send("2")

Sleep(1000)

EndIf

;Until PixelGetColor(335, 205) = 0x000000 ;monstret är dött

sleep(2000)

klick()

EndFunc

Func rew()

If PixelGetColor(810, 417) = 0xBAB9BD Then ; den vita texten på rewiw knappen

MouseClick("left",810, 417)

sleep(2000)

kill()

Else

kill()

EndIf

EndFunc

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I think.... I THINK game bots discussions not allowed -.-

Edited by 4ggr35510n

Share this post


Link to post
Share on other sites

The error itself means you have functions calling themselves somewhere in that mess of code. It's calling itself and never getting back to the main script level so eventually you run out of memory because so many copies of the function are running at the same time.

Share this post


Link to post
Share on other sites

The error itself means you have functions calling themselves somewhere in that mess of code. It's calling itself and never getting back to the main script level so eventually you run out of memory because so many copies of the function are running at the same time.

hm ok thanks i will look that up ;)

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

I believe based on a google search this is "Adventure Quest"

http://www.battleon.com/aq-terms.asp

and guys when you se the script you will think it is a bot and it is a bot but it those not break any rules what so ever so please dont close this topic

According to the terms of service, cheating, hacking in anyway is not acceptable to the company. So yeah, this does break rules.

Your code sure looks like a bot. It is an automation of your presence when you are not around.

I know some swedish in anycase. Your comments in the code sure makes it look like a bot " then the monsters are dead".

Edited by targeter

Share this post


Link to post
Share on other sites

Thread locked, an answer was provided anyway.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0