Character status (edit)

Discussion in 'Ultima SDK' started by dagid44, Feb 17, 2015.

  1. dagid44

    dagid44 Sorceror

    Joined:
    Nov 14, 2011
    Messages:
    10
    Likes Received:
    0
    I'm wondering where in the UO files are stored information, about where to place (position and text) stats in the character status. Everything what i want to do, is change "-" to "/" in damage.

    Status.png

    I found Interface.def and this code:

    Code:
    //Damage Roll
    numerictextarea 41 275 74 20 18 512 
    text 295 74 10 18 64 -
    numerictextarea 42 305 74 20 18 0 
    tooltip 1061155 257 68 74 28
    but it only works for 3D client. So please, anybody know where it should be ?

    I think, it should be in client.exe, but i'm not sure. I was looking in Razor source, if i can find any clue, but what i have seen, razor only hooks packets, but not the client its self.

    PS: Sorry for my english.
     
  2. dagid44

    dagid44 Sorceror

    Joined:
    Nov 14, 2011
    Messages:
    10
    Likes Received:
    0
    I have started debuging client.exe with IDA pro and find this position:

    StatusIDA.png

    It is triggered everytime when i open status gump, so somewhere here it must insert the stats. But i don't know ASM much :-(
     
  3. dagid44

    dagid44 Sorceror

    Joined:
    Nov 14, 2011
    Messages:
    10
    Likes Received:
    0
    I have discovered, where is the character status saved in RAM (with CheatEngine). It started at position 0x0069CCF8:

    32 bytes - Character name
    2 bytes - STR
    2 bytes - DEX
    2 bytes - INT
    2 bytes - HITS
    2 bytes - HITS MAX
    2 bytes - STAM
    2 bytes - STAM MAX
    2 bytes - MANA
    2 bytes - MANA MAX
    2 bytes - unknown (zero)
    4 bytes - GOLD
    2 bytes - WEIGHT
    2 bytes - WEIGHT MAX
    2 bytes - PHYS RES
    2 bytes - STATCAP
    2 bytes - unknown (non zero)
    2 bytes - FIRE RES
    2 bytes - COLD RES
    2 bytes - POIS RES
    2 bytes - ENER RES
    2 bytes - LUCK
    2 bytes - MAX DAMAGE
    2 bytes - MIN DAMAGE
     

Share This Page