Register for your free account! | Forgot your password?

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

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

Advertisement



Item count [F# keys]

Discussion on Item count [F# keys] within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2007
Posts: 134
Received Thanks: 53
Item count [F# keys]

Time to move on.
One Tap is offline  
Old 06/04/2018, 02:23   #2
 
giacometti's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 319
Received Thanks: 49
If I remember well, these itens at FKeys uses the same memory struct of itens at your inventory.

So, this may help you:
Code:
class T_Itembag {			//SIZE OF 0x328 
public:
	DWORD dwConstantPtr;	//vtable pointer
	char szUnknown0[8];
	DWORD dwItemUniqueID;	
	char szUnknown1[12];
	DWORD dwItemID;
	DWORD dwUnknown1;
	char szNamePointer[16];	//if len is >15 then this become a pointer to a long name //just a std::string type
	DWORD dwNameLength;			
	char szUnknown2[4];
	BYTE bClass;
	BYTE wUnknown1;
	WORD wLevel;
	char szUnknown2b[12];	
	DWORD dwPrice;
	char szUnknown3[23];
	BYTE b1stsocket;		//0=no socket, 255=socket, anyother number represent a gem. 13 = sdg, 20 = rrg, etc
	BYTE b2ndsocket;
	char szUnknown4[8];
	BYTE bCompositionPlus;
	char szUnknown5[38];
	char szTypeName[16];	//rareitem, gem, quest, gift, etc...
	DWORD dwTypeNameLength;
	char szUnknown6[8];
	char szDescription[16];		//Description~don't~use~spaces.
	DWORD dwDescriptionLength;
	char szUnknown6b[368];
	DWORD dwShowTipNote;
	char szUnknown7[28];
	DWORD dwStackNumber;
        .
        .
        .
You can get the pointers offset by counting the bytes used before the variable dwStackNumber (this is what you are looking for). So, for example, if you can get pointer to itemtypeid (dwItemID in the class above), just count the bytes and you are good to go. Good luck!
giacometti is offline  
Thanks
1 User
Old 06/04/2018, 09:57   #3
 
elite*gold: 0
Join Date: Nov 2007
Posts: 134
Received Thanks: 53
Quote:
Originally Posted by giacometti View Post
If I remember well, these itens at FKeys uses the same memory struct of itens at your inventory.

So, this may help you:

You can get the pointers offset by counting the bytes used before the variable dwStackNumber (this is what you are looking for). So, for example, if you can get pointer to itemtypeid (dwItemID in the class above), just count the bytes and you are good to go. Good luck!
Thanks for responding!

I have tried with diffrent pointers of the item structure no luck getting a base/green adress yet ( the hotkeybar have diffrent offsets than the inventory item struct)

Code:
class Pointers
{
    
    public enum CItem : uint
    {
        fkStaticBase = 0x091AC4AC,
        // Offsets
    	fkItemID = 0x16F4,
	fkStackNumber = 0x4D8
    }
}
One Tap is offline  
Old 06/09/2018, 04:16   #4
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
The information you are seeking can be found in the client log files. You just have to read it.

The folder path would look something like this: Log\ServerName\CharacterName

You transform the character name like this:

uint result = 0;
foreach (var c in "PlayerName")
result = result * 33 + c;

So if your in game character name is "OneTap" and your server is "Libra" it would look like this: Log\Libra\3225871783\Setup.ini

And the info you are looking for in the .ini is: QItem1Record to QItem9Record.

Good luck.
{ Angelius } is offline  
Old 06/09/2018, 13:47   #5
 
giacometti's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 319
Received Thanks: 49
Angelius, these "QItemXRecord" are just the itemtypeids... He want the stack number of them (he showed in his spoiler).

Interesting formula tq uses for identify char in log folder... I wonder why they just didnt put playerId there instead...
giacometti is offline  
Old 06/10/2018, 01:35   #6
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
Quote:
Originally Posted by giacometti View Post
Angelius, these "QItemXRecord" are just the itemtypeids... He want the stack number of them (he showed in his spoiler).

Interesting formula tq uses for identify char in log folder... I wonder why they just didnt put playerId there instead...
Oh my bad, I only read this
Quote:
Originally Posted by One Tap View Post
(is there actually an item etc):
And then it's just TL;DR and I gave a quick answer :P
{ Angelius } is offline  
Reply


Similar Threads Similar Threads
[HOW] DO WE CHANGE THE COUNT=0 to COUNT=1
04/20/2012 - Facebook - 7 Replies
anyone? can help us how to do count=0 to count=1 items... we all need that so please help thanks...
Navicat [Err1136] - Column count doesn't match value count at row 1
02/21/2012 - Metin2 Private Server - 2 Replies
Hallöchen Liebe Com, Als ich gerade in der Querry Table auf meinem Server die 80er Rüstungen erneut einfügen wollte, stoß ich auf diesen Fehler: INSERT INTO `item_proto` VALUES ('12039', 'Auraplattenpanzer+9', 'Auraplattenpanzer +9', '2','0','0','2','300','1','1','0','3000','10000',' 1','90','0','0','8','4294967290','37','20','10','4 0','0','154','0','26','0','45','0','64944','127',' 65008','21631','4855','0','0','15','100','3'); 1136 - Column count doesn't match value count at row 1
Navicat - [Err] 1136 - Column count doesn't match value count at row 1
01/14/2012 - Metin2 Private Server - 1 Replies
Hallo x( Ich weis nicht ob ich zu doof bin ein loch in den Schnee zu pissen oder ob wirklich was falsch hier ist.. Aufjedenfall muss ich die Querry für die 12 neuen metin steine in Serverside einfügen aber jedesmal bekomme ich die meldung: INSERT INTO mob_proto VALUES(8028, 'Metin der Hoffnung', 'Metin der Hoffnung', 5, 2, 3, 95, '', 'NOMOVE', 0, '', 'STUN,SLOW,CURSE,TERROR', 0, '', 0, 0, 0, 60, 0, 0, 0, 999999, 5, 1, 184800, 92400, 540, 57, 9529, 9530, 0, 2000, 175, 0, 0, 0, 0, 0, 0, 0,...
column count doesn't match value count value at row 1 fehler beheben. wie?
12/15/2011 - Metin2 Private Server - 1 Replies
Hallo Epvp ich habe bei den 1678 serverfiles von daroo diesen fehler hier column count doesn't match value count value at row 1 wenn ich etwas in die item_proto oder in die mob_proto hinzufügen will z.B wenn ich querys einfügen will kommt dieser fehler habe schon alles ausprobiert mit 6 0en hinten dran aber es klappt einfach nichts Bitte helft mir :) Bitte helft mir :( :(
Daroo Files Lehrer [Err] 1136 - Column count doesn't match value count at row 1
12/08/2011 - Metin2 Private Server - 3 Replies
Hallo , Wollte bei den Daroo Files die LKehrer bestücken. Manche habe ich schon doch ich habe ehrlich keine Lust mehr bekommen. Und habe gehofft das es hier welche Released haben. Ich habe auch 2 Themen dazu gefunden mit den Release. Doch wenn ich sie einfügen will kommt dieser Fehler 1136 - Column count doesn't match value count at row 1



All times are GMT +1. The time now is 14:41.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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