Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 07:58

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Little Help Needed ;)

Discussion on Little Help Needed ;) within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2007
Posts: 219
Received Thanks: 43
Little Help Needed ;)

Im beginner at AutoIt, and i cant figure out how to make Pause in other functions

Example

My script is hunting,
can anyone teach me how to Stop hunting script if theres a item on the ground and make my script to First loot that item then start hunting again ?

(Sorry for my english)


(Im working on these functions right now)
Use Path to walk im writing right now

Can anyone tell me how to make it ?


My script is pretty Basic ( Still learning, )
Open Spoiler to see it



#Edit1 - Dont ask me why i add "Send("{1}") to my bot
Im going to tell u now, cause sometimes i meet agro monsters, and if theyr not selected by mouse click, my charracter wont attack them, thats why i added Send(1) to script ( On "1" Hotkey i got "Auto Attack" Skill
owadziak is offline  
Old 07/15/2017, 18:13   #2
 
psydinger's Avatar
 
elite*gold: 0
Join Date: Apr 2017
Posts: 84
Received Thanks: 12
I would suggest first creating a function:

Func LootItem()

(Your logic here to loot the item).

EndFunc


Then you just call the LootItem() function everytime an item is found - with an if statement.
psydinger is offline  
Old 07/15/2017, 19:31   #3
 
elite*gold: 0
Join Date: Jul 2007
Posts: 219
Received Thanks: 43
I got that function written already rewrited script a bit

Anyway. I will use this thread as my main question thread
I got another question.
Is there any way to do.this easier ?
Example script
I mean, i.dont want to make 4 diffrent Gui Inputs and write x,y of a specific position for pixelsearch of top and bottom position.
Is there any easier way like make a
Pixelsearch(&Pos1,&pos2,&examplecolor,1,1)
And type in Pos1 123,321
And in
Pos2 543,345 and this script will looks like that ?
Pixelsearch(123,321,543,345,&examplecolor,1,1) ?
owadziak is offline  
Old 07/17/2017, 18:34   #4
 
elite*gold: 0
Join Date: Jul 2007
Posts: 219
Received Thanks: 43
#Question about checkboxes )

Im going to add, a few Check boxes to my gui
But i cant figure out how to.add functions to.them

Is there any posybility to make like

If $CheckBox1 checked then
Pixelsearch bla bla bla
If $Checkbox1 is unchecked.then skip this script part ?
Can someone explain me how to make it works ? Cause i.were reading "help" but i didnt understand anything yet. Its.easier for me.to.get an example how to use some thing to learn it than.getting in to it my self.(Dont think im lazy )

Thanks for help
owadziak is offline  
Old 07/17/2017, 20:13   #5
 
EngelEatos's Avatar
 
elite*gold: 22
Join Date: May 2011
Posts: 516
Received Thanks: 178
one input and split it

something like this:
Code:
$Path = GuiCtrlRead($Input) //123,321,543,345
$cords = StringSplit($Path, ",")

$example = PixelSearch($cords[1], $cords[2], $cords[3], $cords[4], $color,
 1, 1)
...
EngelEatos is offline  
Thanks
1 User
Old 07/17/2017, 20:33   #6
 
psydinger's Avatar
 
elite*gold: 0
Join Date: Apr 2017
Posts: 84
Received Thanks: 12
Quote:
Originally Posted by owadziak View Post
I got that function written already rewrited script a bit

Anyway. I will use this thread as my main question thread
I got another question.
Is there any way to do.this easier ?
Example script
I mean, i.dont want to make 4 diffrent Gui Inputs and write x,y of a specific position for pixelsearch of top and bottom position.
Is there any easier way like make a
Pixelsearch(&Pos1,&pos2,&examplecolor,1,1)
And type in Pos1 123,321
And in
Pos2 543,345 and this script will looks like that ?
Pixelsearch(123,321,543,345,&examplecolor,1,1) ?

You could just make use of arrays for your coordinates and loop through.

That makes it easier and cleaner.
psydinger is offline  
Old 07/17/2017, 21:09   #7
 
elite*gold: 0
Join Date: Jul 2007
Posts: 219
Received Thanks: 43
The problem is that these.coords.will be changing everytime i change spot to hunt monsters. And when i compile script i need to make a way to put new.ones so i create gui with few "input" boxes to put correct color values, and coords to search for these pixels

Btw. Thanks Engel ill try this when i get back to home

So i can do it this way
and it will works ye ?

@Bump and reserved for future updates/Questions
Btw new question added about Checkbox above
owadziak is offline  
Reply


Similar Threads Similar Threads
Little Gaikoz,Little Cancer & Little KazeAaze!?
10/19/2010 - Grand Chase - 6 Replies
where the heck could i get them!? PLS GIMME HELP!! T_T
little help needed .. for tbot settings ( europe )
08/30/2007 - Silkroad Online - 4 Replies
hi .. im a rogue .. and having two small problems .. 1- tbot ( cracked ) is not using poison ambue .. i tried it by putting em in skill's 2nd line and also in additional spell box .. not working .. bot stops working when it reads poison ambue line .. 2- bot keeps doing my crossbow extreme spell right after every 15 secs ( recharge time of this spell) while its added in assisting spells and it should go after like 15mins .. =\ if any of you guys have any special settings for this...
Little Help Needed (crap with vista)
02/12/2007 - Conquer Online 2 - 11 Replies
I just installed vista a couple days ago and cant seem to get SV working properly. I tried running as admin and all that stuff but always get this error: http://img510.imageshack.us/img510/3741/errorzv1. jpg So can someone post an UNEDITED copy of agentking.exe and countrymakeinUS.dll for me, or if anyone has any tips or advice tell me please. Thanks
Hmm A Little Help Needed
03/13/2006 - Conquer Online 2 - 5 Replies
Oh joy for me , hey ppl i mite as well introduce myself b4 i start getting flammed or what not since this is my first post ... u can all call me by Pyro , Code , Oz , Ollie ...w/e floats your boat .. im an old CO player from back in the beta days , i have made my return from being a reader of forums back to my first post in a long time , Anyway , down to what i started this topic for ... yes stupidly i am now stuck in bot jail , back when i used to play before i quit (long story for another...



All times are GMT +1. The time now is 07:59.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.