Trying to decode the forger/alchemist name on weapon/potion

Wrote new code? Fixed a bug? Want to discuss technical stuff? Feel free to post it here.

Moderator: Moderators

Message
Author
nefurm
Noob
Noob
Posts: 4
Joined: 03 Jun 2008, 22:50
Noob?: No

Trying to decode the forger/alchemist name on weapon/potion

#1 Post by nefurm »

i am trying to decode the alchemist/forger on weapon/potion, already discovered that the name is stored in "card slots" 3 and 4
I already find out that slot 3 have is only the charID changing from 32bits to 16 bits plus one bit operation that o couldnt figure out
and the slot 4 have the same charID but i need to shift to left and again do some bit operation
my data until now is limited to 3 potters and 3 codes, asap i will get more
char id data3 data4
1673165 32765 167
1269149 15633 224
1395498 37898 172

the script that i am using to try to figure out the bit operation is

Code: Select all

//test.c
#include <stdio.h>
#include <stdlib.h>
typedef unsigned short		uint16;
typedef unsigned int		uint32;
void GetWord(uint32 val);
main (){
	uint32 charid;
	GetWord(1673165);
	GetWord(1269149);
	GetWord(1395498);
	system("pause");
	return 0;
	}
void GetWord(uint32 val){
	printf("%d\n",(uint16)(val & 0x000FFFFF));//here should be the card3 id
	printf("%d\n",(uint16)( (val & 0xFFFF0000) >> 0x10 ));//here should be the card4 id
}

hakore
Super Moderators
Super Moderators
Posts: 200
Joined: 16 May 2008, 08:28
Noob?: No
Contact:

Re: Trying to decode the forger/alchemist name on weapon/potion

#2 Post by hakore »

To not re-invent the wheel, I'll have some of my private plugins available for download within the next week. One of them is a custom itemName plugin (based on Joseph's old itemName plugin) that names items according to the Ragnarok Online's naming convention.

I still need to document it though for easier public usage.
Whatever...

nefurm
Noob
Noob
Posts: 4
Joined: 03 Jun 2008, 22:50
Noob?: No

Re: Trying to decode the forger/alchemist name on weapon/potion

#3 Post by nefurm »

well hakore,if you need help to document it i may try ^^
tks

hakore
Super Moderators
Super Moderators
Posts: 200
Joined: 16 May 2008, 08:28
Noob?: No
Contact:

Re: Trying to decode the forger/alchemist name on weapon/potion

#4 Post by hakore »

Here, you may study it now. The code is not very well commented though, since it's originally for my private use.

http://forums.openkore.com/viewtopic.php?f=34&t=1418
Whatever...

Post Reply