04' kGunz Client, Changing your clothes

Skilled Illusionist
Joined
Apr 22, 2009
Messages
301
Reaction score
19
I decided to give source code to the dll I wrote to allow me to change my clothes in the old kGunz Client, it is also a useful example of using detours lib.

 
@gWX0: I forgot to remove that, I had once logged what parameters where given to the function, usually i do not include namespace.

@number12: You must inject it in the client, and you can edit the clothes by looking in you zitem.xml.
 
In the source, edit that part :

PHP:
charInfo->itemDesc[1] = 21503; //Chest
charInfo->itemDesc[2] = 22503; //Hands
charInfo->itemDesc[3] = 23503; //Legs
charInfo->itemDesc[4] = 24504; //Feet
charInfo->itemDesc[7] = 12; //Melee
charInfo->itemDesc[8] = 6002; //Weapon 1
charInfo->itemDesc[9] = 6003; //Weapon 2

The numbers are the item id, wich you can find in zitem.xml, then you compile the code and inject the dll.
 
In the source, edit that part :

PHP:
charInfo->itemDesc[1] = 21503; //Chest
charInfo->itemDesc[2] = 22503; //Hands
charInfo->itemDesc[3] = 23503; //Legs
charInfo->itemDesc[4] = 24504; //Feet
charInfo->itemDesc[7] = 12; //Melee
charInfo->itemDesc[8] = 6002; //Weapon 1
charInfo->itemDesc[9] = 6003; //Weapon 2

The numbers are the item id, wich you can find in zitem.xml, then you compile the code and inject the dll.

If I may, I suggest you modify the zitem ID names to be entered as a preprocessor macro, and do the same for the itemDescriptions; e.g.

#define Chest itemDesc[1]
[...]
#define TOP_DESERT_FLAME 21503
 
Back