Yoko
http://forum.yoko.com.ua/

How to get EUO litterals from InsideUO Hex Numbers?
http://forum.yoko.com.ua/viewtopic.php?f=3&t=3827
Page 1 of 1

Author:  Boydon [ 2005-04-25 23:53:34 ]
Post subject:  How to get EUO litterals from InsideUO Hex Numbers?

I know that there are uo.Inj2EUO() and uo.EUO2Inj() to use in scripts and that I can download Inj2EUO but what I want to know is if Yoko can share the algorithm to convert an hex numer you take from InsideUO to an EUO litteral.

I'd like to use this to code my own app and to develop EUO script faster (sometime to manually collect al types from game is a real pain).

Thank You.

Author:  Beyonder [ 2005-04-26 07:32:50 ]
Post subject: 

I'm not sure, but i think that EUO literal is nothing more than a value in 26-th counting system. Like HEX uses only 6 letters, and EUO uses all of them but digits.
Thats IMHO.

Author:  Boydon [ 2005-04-26 15:46:05 ]
Post subject: 

Thanks for the suggestion, but I think that it isn't so. :(

Look at he test I made using Inj2EUO:

Quote:
C:\injection>Inj2Euo.exe 0x0
Injection id = Using item 0x00000000 (0x0) -> EasyUO id = YC

C:\injection>Inj2Euo.exe 0x1
Injection id = Using item 0x00000001 (0x1) -> EasyUO id = XC

C:\injection>Inj2Euo.exe 0x2
Injection id = Using item 0x00000002 (0x2) -> EasyUO id = AD


Any other idea?

Author:  Beyonder [ 2005-04-26 18:21:21 ]
Post subject: 

Here is what i found in sources of Injection:
Code:
void inj2euo(uint32 injid, char *euoid )
{
  int i= (injid ^ 0x45) + 7, j=0;
  while(i)
  {
    euoid[j] = (i % 26) + 'A';
    i /= 26;
    j++;
  }
  euoid[j] = 0;
  trace_printf("inj2euo %s<=0x%08lX\n",euoid,injid);
}


Algorythm can be seen here at once ;D

Author:  Boydon [ 2005-04-26 18:25:39 ]
Post subject: 

That is what I was looking for :)

But what sources did you look trough? From the ones I got from Yoko site there is not this function. ^^

THANK YOU VERY MUCH! :)

Author:  Beyonder [ 2005-04-26 19:27:15 ]
Post subject: 

There is just a lot of files and you could be misplaced there.
It is in Injection.cpp

Author:  Boydon [ 2005-04-26 23:15:52 ]
Post subject: 

I got the sources from here http://yoko.netroof.net/eng/injection.htm
and this function is not inside, 100% sure about this.

What sources have you got? Can you give me the link so I can check them by myself :P

Thankyuo very much again. :D

Author:  Beyonder [ 2005-04-27 07:57:57 ]
Post subject: 

Here it is.
http://sourceforge.net/project/showfile ... p_id=30523

And np again :wink:

Author:  Boydon [ 2005-04-27 10:46:23 ]
Post subject: 

:)

Author:  Boydon [ 2005-04-29 16:51:31 ]
Post subject: 

If someone is interested i made this, wich is very similar to Yoko's inj2euo (it has the same name in his honor :))

http://utenti.lycos.it/Boydon/inj2euo.php

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/