Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 20:32

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

Advertisement



client sided shift+click warehouse deposit

Discussion on client sided shift+click warehouse deposit within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2021
Posts: 1
Received Thanks: 0
client sided shift+click warehouse deposit

i am just now getting back into private servers.. nothing serious, just goofing off. ive searched all around the forum but cant seem to find any information on how i would make it so that i could shift+click an item to deposit from inventory to warehouse. its for a 5095 server, but its not server sided? how would i go about achieving something like this
munchn is offline  
Old 10/09/2024, 08:54   #2
 
elite*gold: 0
Join Date: Feb 2009
Posts: 262
Received Thanks: 161
1. You need to hook the select item function from inventory to get the itemID and to process the Shift + click.
2. You need to identify the target windows. (Warehouse,Shop,Compouse,Improve...)
- The easy way is to hook MoveWindow to get this.
3. You need to identify the target window childs by id.
- You can use Spy++ to get this.
4. Send click on target window:
Code:
int CDlgActions::InventorySelectProcess()
{
	if ((GetAsyncKeyState(VK_SHIFT) & 0x8000) == 0)
		return 1;

	if (IsWindowEnabled(ShophWnd) && IsWindowVisible(ShophWnd))
		SendClick(ShophWnd, 0x610);
	else if (IsWindowEnabled(ImprovehWnd) && IsWindowVisible(ImprovehWnd))
	{
		if (SelectedItemId == 1088000 || SelectedItemId == 1088001 || SelectedItemId == 1088002)
			SendClick(ImprovehWnd, 0x65D);
		else
			SendClick(ImprovehWnd, 0x65C);
	}
.....

}
Code:
void CDlgActions::SendClick(HWND hWnd, int id)
{
	HWND hWndButton = GetDlgItem(hWnd, id);
	if (IsWindowEnabled(hWndButton) && IsWindowVisible(hWndButton))
	{
		PostMessage(hWndButton, WM_LBUTTONDOWN, 2, 0);
		PostMessage(hWndButton, WM_LBUTTONUP, 2, 0);
	}
}
teroareboss1 is offline  
Thanks
2 Users
Reply

Tags
click, conquer, deposit, shift, warehouse


Similar Threads Similar Threads
Are the weekdays client sided or server sided?
08/30/2010 - Mabinogi - 8 Replies
It is really irritating to have to play on certain days to do certain rp dungeons and missions. Is the day (Baltane, Samhain and the other stupid days) on the server side of mabinogi, or client? I believe it is probably server-sided, but it would be nice to know. If it is client sided, would anyone know how i could change the day? So that i could finish Generation quests without waiting for tuesday? Thanks in advance.
Is Analyze server-sided or client-sided?
08/18/2010 - Atlantica Online - 0 Replies
Because we are given 5 blank cards and we are shown the results after we choose them; if they are client sided, can we some how figure out which will give the best result? this would be a nice feature o_O
client sided vs server sided
07/04/2009 - 12Sky2 - 2 Replies
well i was just wondering if anyone can compile a list of what is client sided and what is server sided im pretty much a noob at CE but im kinda getting the hang of it by just trying things out...im not in any way asking for addresses or anything like that but im just trying to save some time by finding out what i can change and what i shouldnt waste my time on so far i know that u can change movement speed, attack speed......yeah im noob lol if anyone can help me out i would realy...



All times are GMT +1. The time now is 20:32.


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.