User Tools

Site Tools


addons:functions

This is an old revision of the document!


Functions

The following page covers the functions that are built into Ashita's Addons.dll plugin.


Memory Functions

number mem:GetBaseAddress(modname);

  • Parameters
    • modname - The name of the module to get the address of.
  • Returns
    • The base address of the module.

boolean mem:UnprotectMemory(addr, size);

  • Parameters
    • addr - The address of the memory to unprotect.
    • size - The size of the data to unprotect.
  • Returns
    • True on success, false otherwise.

number mem:FindPattern(modname, bytetable, size, mask);

  • Parameters
    • modname - The name of the module to scan within.
    • bytetable - The table of bytes to scan for.
    • size - The size of the byte table.
    • mask - The mask to scan against.
  • Returns
    • The address where the pattern was found, 0 otherwise.

number mem:ReadUChar(addr);

  • Parameters
    • addr - The address to read from.
  • Returns
    • The value read from the given address.

number mem:ReadChar(addr);

  • Parameters
    • addr - The address to read from.
  • Returns
    • The value read from the given address.

number mem:ReadUShort(addr);

  • Parameters
    • addr - The address to read from.
  • Returns
    • The value read from the given address.

number mem:ReadShort(addr);

  • Parameters
    • addr - The address to read from.
  • Returns
    • The value read from the given address.

number mem:ReadULong(addr);

  • Parameters
    • addr - The address to read from.
  • Returns
    • The value read from the given address.

number mem:ReadLong(addr);

  • Parameters
    • addr - The address to read from.
  • Returns
    • The value read from the given address.

number mem:ReadULonglong(addr);

  • Parameters
    • addr - The address to read from.
  • Returns
    • The value read from the given address.

number mem:ReadLonglong(addr);

  • Parameters
    • addr - The address to read from.
  • Returns
    • The value read from the given address.

number mem:ReadFloat(addr);

  • Parameters
    • addr - The address to read from.
  • Returns
    • The value read from the given address.

number mem:ReadDouble(addr);

  • Parameters
    • addr - The address to read from.
  • Returns
    • The value read from the given address.

table mem:ReadArray(addr, size);

  • Parameters
    • addr - The address to read from.
    • size - The number of bytes to read.
  • Returns
    • A table containing the read data.

string mem:ReadString(addr, size);

  • Parameters
    • addr - The address to read from.
    • size - The number of bytes to read.
  • Returns
    • A string from the read data.

void mem:WriteUChar(addr, val);

  • Parameters
    • addr - The address to write to.
    • val - The value to write.
  • Returns
    • Function does not return a value.

void mem:WriteChar(addr, val);

  • Parameters
    • addr - The address to write to.
    • val - The value to write.
  • Returns
    • Function does not return a value.

void mem:WriteUShort(addr, val);

  • Parameters
    • addr - The address to write to.
    • val - The value to write.
  • Returns
    • Function does not return a value.

void mem:WriteShort(addr, val);

  • Parameters
    • addr - The address to write to.
    • val - The value to write.
  • Returns
    • Function does not return a value.

void mem:WriteULong(addr, val);

  • Parameters
    • addr - The address to write to.
    • val - The value to write.
  • Returns
    • Function does not return a value.

void mem:WriteLong(addr, val);

  • Parameters
    • addr - The address to write to.
    • val - The value to write.
  • Returns
    • Function does not return a value.

void mem:WriteULonglong(addr, val);

  • Parameters
    • addr - The address to write to.
    • val - The value to write.
  • Returns
    • Function does not return a value.

void mem:WriteLonglong(addr, val);

  • Parameters
    • addr - The address to write to.
    • val - The value to write.
  • Returns
    • Function does not return a value.

void mem:WriteFloat(addr, val);

  • Parameters
    • addr - The address to write to.
    • val - The value to write.
  • Returns
    • Function does not return a value.

void mem:WriteDouble(addr, val);

  • Parameters
    • addr - The address to write to.
    • val - The value to write.
  • Returns
    • Function does not return a value.

void mem:WriteArray(addr, val);

  • Parameters
    • addr - The address to write to.
    • val - The value to write.
  • Returns
    • Function does not return a value.

void mem:WriteString(addr, val);

  • Parameters
    • addr - The address to write to.
    • val - The value to write.
  • Returns
    • Function does not return a value.
addons/functions.1448009809.txt.gz · Last modified: 2015/11/20 00:56 by atom0s