From Stealth Client

Jump to: navigation, search


function EUO2Type(EUO : String) : Word

This function converts EasyUO (SyS26 format) to decimbal: EUO2Type("POF")=3821 # Gold coins

Actually, I have not found any difference between EUO2Type и Doc:Api/EUO2ID. Here is the Python 3.3. example how to convert data back to SyS26:

def DecToEUO(val):
    i,s=(val ^ 69) +7, ""
    while i>0: s,i=s+chr(65+i%26), int(i/26)
    return s