Register for your free account! | Forgot your password?


Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 00:17

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

Advertisement



Request: Help with AHK (explanation in msg)

Discussion on Request: Help with AHK (explanation in msg) within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2008
Posts: 27
Received Thanks: 7
Request: Help with AHK (explanation in msg)

1) I am working on an autofogger. So far I have gotten it to fog twice and sit using {F2}. But I cant make it repeat and I don't know why. Any ideas on making the script run itself over and over until ^p:: (Pause) command is used? and also how do I set up the pause command.

2) I need an example of a melee attacking program. I can't seem to make my bot jump around and kill any monster in the general area. So I need an example to work off of.

Any help would be appreciated, and in the final products of my work I will be sure to include you in the thanks and props area.

Thank you so much!
tamorazana is offline  
Old 07/23/2009, 06:55   #2
 
elite*gold: 12
Join Date: Mar 2009
Posts: 383
Received Thanks: 1,317
Hello.

1) To make the program repeat it self(doing the same thing again and again) just write
Code:
loop
{
;;;;;Here write your code. It will repeat it again and again until you close the program,
;;;;;or use pause command. Be carefull if your script contains clicks(in loop) and not a hotkey for pause!!
}

;;;After all the code you can write the hotkey you want and what it will do.
^p::pause ;;;;With that line if you click Ctrl+P you will pause the script/program.
2)I haven't made any melee attacking program,but I think it is pretty easy to make one that will work(not one of the best programs... but it will attack the monsters )
I think that if you use PixelSearch (I think that's the name of the function(?)) you can easily find out where a monster is and its coordinates and then click on it.

I hope I helped you. If you need more details just post here today or tomorrow and I will do my best to write in details anything you need.
Alexios is offline  
Thanks
1 User
Old 07/24/2009, 16:54   #3
 
elite*gold: 0
Join Date: Aug 2006
Posts: 9
Received Thanks: 0
hey, here is now i would do it. if not using pixels or memory and a simple times i would do this.
Code:
SetTitleMatchMode, 2
sitf := fkey("F2")
fogf := fkey("F9")
return ;end of program startup
;--------------------------------------------------------
findco2:												;this gets the Co2 process id number so i can call that with
	if !id1												;ahk_id %id1% instead of the wintitle [Co.
	{       											;this makes it assigned to that one Co2 instance.
		tooltip, Activte Conquer Window Now [ 3 ]
		sleep, 1000
		tooltip, Activte Conquer Window Now [ 2 ]
		sleep, 1000
		tooltip, Activte Conquer Window Now [ 1 ]
		sleep, 1000
		WinGet,id1, ID,[Conq
		WinActivate, ahk_id %id1%
		if !id1
		{
			ttm("Can not find Conquer window!")
			exit
		}
		tooltip
	}
return
;--------------------
tt:					;tooltip kill timer
	tooltip
return
;--------------------
^p::				;pause toggle
	pause
return
;--------------------------------
^!s::							;fog toggle
foggerButton:
	if !fogger
	{
		gosub, findco2
		fogger := 1
		settimer,fogger 		;start timer
		ttm("Fogger [ON]")
	}
	else
	{
		fogger := 0
		settimer,fogger,off
		ttm("Fogger [OFF]")
	}
return
;--------------------------------------------------------------------
fogger:																;fog timer
	loop, 3
	{
		controlclick,x%fogf% y745,ahk_id %id1%,,right,,NA 			;y745 is lower line in co2win for fkeys
		sleep,100
		controlclick,x512 y384,ahk_id %id1%,,right,,NA 				;center click to start skill
		sleep,900
	}
	controlclick,x%sitf% y745,ahk_id %id1%,,Right,,NA				;sit fkey.. 
	sleep,10000
return
;------------------------
ttm(msg)				;tooltip msg set for 3 second display time
{
	tooltip,%msg%,0,0
	settimer,tt,3000
}
return
;------------------------
fkey(fval)				;F-Key to x-mouse position conversion
{
	if fval = F1
	return, 111
	else if fval = F2
	return, 153 
	else if fval = F3
	return, 193 
	else if fval = F4
	return, 233 
	else if fval = F5
	return, 275 
	else if fval = F6
	return, 317 
	else if fval = F7
	return, 355 
	else if fval = F8
	return, 397 
	else if fval = F9
	return, 437 
	else if fval = F10
	return, 476 
}
return
This works well for me. i haven't had time to really debug it and i wish i knew memory address reading so i could use that. i could make a pixel based one, but at least a timed one will totally run in background.
angelstoy is offline  
Old 07/24/2009, 22:02   #4
 
elite*gold: 12
Join Date: Mar 2009
Posts: 383
Received Thanks: 1,317
Pretty good although I don't like to make so many functions... but I guess that's me!
Alexios is offline  
Reply


Similar Threads Similar Threads
Need some explanation here..
09/06/2010 - EO PServer Hosting - 9 Replies
Hi all..my server got a few problem now.. and i dont know what is the problem.. Acc server run good..also msg server run good.. and NPC server run good...But after a few minute.Msg server stop working. i have looking at error log..this what i have found.. 14:52:30 ERROR: ASSERT(!"Error action type!") in e:\tq_digital\ħ\reliable\src\MsgServer\MapGroup Kernel\GameAction.cpp, 1300 14:52:30 ERROR: CHECKF(pType) in...
explanation how to fix dmg in 5165
12/25/2009 - CO2 Private Server - 3 Replies
Furst i want to tell you my english is not that good. I hoop you will understand it. When you're try to att an monster it hits you one time and you are death. So i try to do somthing with my gear and i find out when you dont have -255 dmg but just -7 dmg it wont kill you in one time annymore my problem was in one time fixed:D awsome isnt it?;)
Need an explanation please^^
02/04/2009 - Kal Online - 13 Replies
Hello people. Long time ago I wrote a little memory scanner. A program like the normal Cheat Engines but its just a console window^^ Well when I wrote it I tried it with Kal and got what I expected: I couldnt access Kals Memory area cause of HS/KOCP or whatever. Well today I tried it again (dont even know why I tried) and well... suddenly it works. I found the max HP adress, the speed adress. And I even can change it with my little noob CE^^ No-Mana G3 speed works perfectly. Well my question,...
Explanation on +hit stat
04/04/2006 - WoW Guides & Templates - 0 Replies
So, what's the deal with +hit? It seems that ever since Zul Gurub was released, there's been an increasing amount of items that have this as as tat instead of something useful as +crit or +dmg. It's an annoying stat that apparently takes up a lot of points on an item that could';ve been used for something useful, hell, even the ZG enchant for mages has forsaken 10 stam in favor of this. What the heck have the devs at Blizzard been smoking? We're not melee, we casters never miss! Or wait, do...



All times are GMT +2. The time now is 00:17.


Powered by vBulletin®
Copyright ©2000 - 2021, 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 ©2021 elitepvpers All Rights Reserved.