C# Class Tibialyzer.MemoryReader

Mostra file Open project: Mytherin/Tibialyzer Class Usage Examples

Public Properties

Property Type Description
END_X int
END_Y int
MemorySettings string>.Dictionary
ModuleAddresses long>.Dictionary
START_X int
START_Y int
TabsBaseAddress System.UInt32
experience long
health int
level int
mana int
maxHealth int
maxMana int
playerName string

Private Properties

Property Type Description
CloseHandle void
GetAddress System.UInt32
InitializeBattleList void
OpenProcess System.IntPtr
ParseAddresses Tuple,Dictionary>
ReadBytes byte[]
ReadExperience bool
ReadHealth bool
ReadLevel bool
ReadMagicLevel bool
ReadMana bool
ReadMaxHealth bool
ReadMaxMana bool
ReadProcessMemory System.Int32
ResetScreenshotTaken void
UpdateExp void
UpdateHealth void
UpdateMana void

Public Methods

Method Description
GetHealthPercentage ( int id, int &battlelistentry ) : int
GetLevelFromExperience ( long experience, int level = 150, int adjustment = 75, int iterations = 100 ) : int
GetPlayerEntry ( int id ) : BattleListEntry
GetPlayerID ( string name ) : int
GetPlayerName ( int id, int battlelistentry = -1 ) : string
GetPlayerPosition ( int id ) : int
Initialize ( ) : void
InitializeMemoryAddresses ( ) : void
OpenProcess ( Process process ) : IntPtr
PlayerInVision ( BattleListEntry a, BattleListEntry b ) : bool
ReadChatMessage ( Int32 address ) : string
ReadInt16 ( System.Int64 address, int handle = -1 ) : Int16
ReadInt32 ( System.Int64 address, int handle = -1 ) : Int32
ReadInt64 ( System.Int64 address, int handle = -1 ) : System.Int64
ReadInt8 ( System.Int64 address, int handle = -1 ) : byte
ReadProperty ( uint address ) : int
ReadQString ( Int32 address ) : string
ReadString ( System.Int64 address, uint length = 32, int handle = -1 ) : string
ReadUInt32 ( System.Int64 address, int handle = -1 ) : UInt32
ReadUnicodeString ( System.Int64 address, uint length = 32, int handle = -1 ) : string
RegisterExperienceChanged ( System control, EventHandler method ) : void
RegisterHealthChanged ( System control, EventHandler method ) : void
RegisterManaChanged ( System control, EventHandler method ) : void
UnixTimeStampToDateTime ( long unixTimeStamp, System.DateTime &dtDateTime ) : bool
UpdateBattleList ( ) : void

Private Methods

Method Description
CloseHandle ( IntPtr handle ) : void
GetAddress ( UInt32 offset ) : UInt32
InitializeBattleList ( ) : void
OpenProcess ( int dwDesiredAccess, bool bInheritHandle, int dwProcessId ) : IntPtr
ParseAddresses ( ) : Tuple,Dictionary>
ReadBytes ( System.Int64 address, uint n, int processHandle = -1 ) : byte[]
ReadExperience ( ) : bool
ReadHealth ( ) : bool
ReadLevel ( ) : bool
ReadMagicLevel ( ) : bool
ReadMana ( ) : bool
ReadMaxHealth ( ) : bool
ReadMaxMana ( ) : bool
ReadProcessMemory ( IntPtr hProcess, IntPtr lpBaseAddress, [ buffer, UInt32 size, IntPtr &lpNumberOfBytesRead ) : Int32
ResetScreenshotTaken ( object sender, System e ) : void
UpdateExp ( ) : void
UpdateHealth ( ) : void
UpdateMana ( ) : void

Method Details

GetHealthPercentage() public static method

public static GetHealthPercentage ( int id, int &battlelistentry ) : int
id int
battlelistentry int
return int

GetLevelFromExperience() public static method

public static GetLevelFromExperience ( long experience, int level = 150, int adjustment = 75, int iterations = 100 ) : int
experience long
level int
adjustment int
iterations int
return int

GetPlayerEntry() public static method

public static GetPlayerEntry ( int id ) : BattleListEntry
id int
return BattleListEntry

GetPlayerID() public static method

public static GetPlayerID ( string name ) : int
name string
return int

GetPlayerName() public static method

public static GetPlayerName ( int id, int battlelistentry = -1 ) : string
id int
battlelistentry int
return string

GetPlayerPosition() public static method

public static GetPlayerPosition ( int id ) : int
id int
return int

Initialize() public static method

public static Initialize ( ) : void
return void

InitializeMemoryAddresses() public static method

public static InitializeMemoryAddresses ( ) : void
return void

OpenProcess() public static method

public static OpenProcess ( Process process ) : IntPtr
process System.Diagnostics.Process
return System.IntPtr

PlayerInVision() public static method

public static PlayerInVision ( BattleListEntry a, BattleListEntry b ) : bool
a BattleListEntry
b BattleListEntry
return bool

ReadChatMessage() public static method

public static ReadChatMessage ( Int32 address ) : string
address System.Int32
return string

ReadInt16() public static method

public static ReadInt16 ( System.Int64 address, int handle = -1 ) : Int16
address System.Int64
handle int
return System.Int16

ReadInt32() public static method

public static ReadInt32 ( System.Int64 address, int handle = -1 ) : Int32
address System.Int64
handle int
return System.Int32

ReadInt64() public static method

public static ReadInt64 ( System.Int64 address, int handle = -1 ) : System.Int64
address System.Int64
handle int
return System.Int64

ReadInt8() public static method

public static ReadInt8 ( System.Int64 address, int handle = -1 ) : byte
address System.Int64
handle int
return byte

ReadProperty() public static method

public static ReadProperty ( uint address ) : int
address uint
return int

ReadQString() public static method

public static ReadQString ( Int32 address ) : string
address System.Int32
return string

ReadString() public static method

public static ReadString ( System.Int64 address, uint length = 32, int handle = -1 ) : string
address System.Int64
length uint
handle int
return string

ReadUInt32() public static method

public static ReadUInt32 ( System.Int64 address, int handle = -1 ) : UInt32
address System.Int64
handle int
return System.UInt32

ReadUnicodeString() public static method

public static ReadUnicodeString ( System.Int64 address, uint length = 32, int handle = -1 ) : string
address System.Int64
length uint
handle int
return string

RegisterExperienceChanged() public static method

public static RegisterExperienceChanged ( System control, EventHandler method ) : void
control System
method EventHandler
return void

RegisterHealthChanged() public static method

public static RegisterHealthChanged ( System control, EventHandler method ) : void
control System
method EventHandler
return void

RegisterManaChanged() public static method

public static RegisterManaChanged ( System control, EventHandler method ) : void
control System
method EventHandler
return void

UnixTimeStampToDateTime() public static method

public static UnixTimeStampToDateTime ( long unixTimeStamp, System.DateTime &dtDateTime ) : bool
unixTimeStamp long
dtDateTime System.DateTime
return bool

UpdateBattleList() public static method

public static UpdateBattleList ( ) : void
return void

Property Details

END_X public_oe static_oe property

public static int END_X
return int

END_Y public_oe static_oe property

public static int END_Y
return int

MemorySettings public_oe static_oe property

public static Dictionary MemorySettings
return string>.Dictionary

ModuleAddresses public_oe static_oe property

public static Dictionary ModuleAddresses
return long>.Dictionary

START_X public_oe static_oe property

public static int START_X
return int

START_Y public_oe static_oe property

public static int START_Y
return int

TabsBaseAddress public_oe static_oe property

public static UInt32,System TabsBaseAddress
return System.UInt32

experience public_oe static_oe property

public static long experience
return long

health public_oe static_oe property

public static int health
return int

level public_oe static_oe property

public static int level
return int

mana public_oe static_oe property

public static int mana
return int

maxHealth public_oe static_oe property

public static int maxHealth
return int

maxMana public_oe static_oe property

public static int maxMana
return int

playerName public_oe static_oe property

public static string playerName
return string