Sign in to follow this  
Followers 0
scripTerroz

Help with Script edit for game. unterminated string.

16 posts in this topic

I have no experience with this program, im am simply following insturctions from someone on the internet. I am having unknown problems, that many users are dumbfounded by. I enter the edited script, copyed from the internet, and i save. then i click run. but an error pops up saying,

"Line 55(file "C:\documents and settings\----\My document\auto kill.au3"):

//move mouse to monster, check monster's HP color

Error: unterminated string.

Now, i looked into the script and heres where the problem seems to be,

//------------------------------------------------------------------------------

//-------------------------------- [ sub programs ] --------------------------------

//----------------------------------------------------------- [ auto attack monster ]

Sub attackmonster

VBSCall FindColorEx(x-60,y-30,x+60,y,"3737C5",0,0.6,mx,my)

//move mouse to monster, check monster's HP color<<<HERES THE ERROR, RIGHT HERE

VBSCall Shape=GetCursorShape(0)

//check mouse cursor

If mx>=0 and my>=0 or Shape=1439279395

Delay 50

LeftClick 1

EndIf

Delay 300

Rem run

IfColor 384 42 1E42EA 2

IfColor 384 44 0993FB 2

//if found monster's HP bar

Delay 10

KeyPressH key 1

Delay 10

key=key-1

Gosub pickitems

If key<113

key=115

EndIf

Delay ys

Goto run

EndIf

EndIf

Return attackmonster

i tried singlespacing instead of double but i get the same error, unless im doing it wrong, but w/e SOMEONE PLEASE HELP ME

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

what language are you even using? Obviously its VB but this is for autoit?

Edited by smcombs

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

what language are you even using? Obviously its VB but this is for autoit?

Ok,so like i said i have no experience with this i just started today. appernetly its for autoit. im using autoit v3, i have no idea what language it is.. sorry for the lack of information, but i to was cutted short on information so im doing the best i can. im just wondering whats wrong with the script. its for a game,( confedential XD ) but ya..

BTW, THIS IS JUST A PARTION OF THE SCRIPT, THE PART WITH THE ERROR.

Edited by scripTerroz

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

You can't run this from SciTE using autoit. The code is in VB.

Edit: AutoIt v8???

Edited by dantay9

[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

Share this post


Link to post
Share on other sites

Ok yeah this is like VB or something. And its impossible for me to convert that guys code, as well as not knowing the game environment. Let's see what we can do here:

$color = 0xFFFFFF
$coords = pixelsearch(0,0,1024,786,$color,0,0,$handle)
If Not @error Then
     ControlClick("","",$handle,"left",2,$coord[0],$coord[1])
EndIf

Of course you may need to change the area in which pixelsearch is doing its search. That is based on a game client with 1024x786 resolution set. That would search for a pure white pixel in the client and then double click it if it finds it. You can use the window info tool to find out what color you need and just plug it in

Share this post


Link to post
Share on other sites

You can't run this from SciTE using autoit. The code is in VB.

Edit: AutoIt v8???

OOPS V3

Share this post


Link to post
Share on other sites

Ok yeah this is like VB or something. And its impossible for me to convert that guys code, as well as not knowing the game environment. Let's see what we can do here:

$color = 0xFFFFFF
$coords = pixelsearch(0,0,1024,786,$color,0,0,$handle)
If Not @error Then
     ControlClick("","",$handle,"left",2,$coord[0],$coord[1])
EndIf

Of course you may need to change the area in which pixelsearch is doing its search. That is based on a game client with 1024x786 resolution set. That would search for a pure white pixel in the client and then double click it if it finds it. You can use the window info tool to find out what color you need and just plug it in

SO CAN I GIVE YOU THE FULL SCRIPT? then can you edited it for me to make it work with no errors and then send it back to me?

Share this post


Link to post
Share on other sites

No. We will help you, but nobody is going to do the work for you. If that is how you want to do it, go to rentacoder.com


[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

Share this post


Link to post
Share on other sites

Lol, no way. You want to learn to code figure it out. AutoIt isnt that hard to learn and like I had to you need to learn it for yourself. We will give u some guidance here, but u need to figure the rest out

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

No. We will help you, but nobody is going to do the work for you. If that is how you want to do it, go to rentacoder.com

???? im so confused tho, you guys are talking, but im not understanding anything, im sorry for being so clueless. maybe i shouldnt be messing with this, but i realy want to get it to work

and HAHAHA very funny. lol rent a coder. btw i'm 14 sorry for troubling you all.

Edited by scripTerroz

Share this post


Link to post
Share on other sites

Lol, no way. You want to learn to code figure it out. AutoIt isnt that hard to learn and like I had to you need to learn it for yourself. We will give u some guidance here, but u need to figure the rest out

ok ill try my best

Share this post


Link to post
Share on other sites

Lol, no way. You want to learn to code figure it out. AutoIt isnt that hard to learn and like I had to you need to learn it for yourself. We will give u some guidance here, but u need to figure the rest out

can you give me some sort of link or tutorial on learning how to use scripts and edtis and stuffs.

Share this post


Link to post
Share on other sites

Use the help file that came with autoit. Its in the start menu program -----> autoit

Share this post


Link to post
Share on other sites

Use the help file that came with autoit. Its in the start menu program -----> autoit

k thnx, and btw what was the lil script you had on one of your post? was that the fix, but w/e i didnt even know what to do with that, im so hopeless.

Share this post


Link to post
Share on other sites

ehh, looks like im gonna have to read the WHOLE help file.. this time i gotta stick with it i guess. my uncle rick try to get me into visual basics, he gave me a whoel text book on it "visual basics begginer" or somtin and i could not stick with it i gave it back to him, too bad i coulda learned a lot about stuff.

Share this post


Link to post
Share on other sites

Well, stick with this. I just started to learn programming last year or scripting and programming. Now I have learned alot, but dont mess with VB this is much much much much easier, k.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0