 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
Lynxz Gaming Expert Cheater
Reputation: 4
Joined: 01 Jul 2017 Posts: 208 Location: help
|
Posted: Tue Oct 13, 2020 11:07 pm Post subject: Re: enable cheat in cheat table |
|
|
| Code: | local memrec = getAddressList().getMemoryRecordByDescription
memrec("Health").active = true -- enable
memrec("Health").active = false -- disable
memrec("Health").value= 100
memrec("name").value= "hi"
|
also lua documentation on ce is useful
Help -> Lua documentation
| Code: | MemoryRecord Class:
The memoryrecord objects are the entries you see in the addresslist
properties
ID: Integer - Unique ID
Index: Integer - The index ID for this record. 0 is top. (ReadOnly)
Description: string- The description of the memory record
Address: string - Get/set the interpretable address string. Useful for simple address settings.
AddressString: string - Get the address string shown in CE (ReadOnly)
OffsetCount: integer - The number of offsets. Set to 0 for a normal address
Offset[] : integer - Array to access each offset
OffsetText[] : string - Array to access each offset using the interpretable text style
CurrentAddress: integer - The address the memoryrecord points to
VarType: ValueType (string) - The variable type of this record. See vtByte to vtCustom
Type: ValueType (number) - The variable type of this record. See vtByte to vtCustom
If the type is vtString then the following properties are available:
String.Size: Number of characters in the string
String.Unicode: boolean
String.Codepage: boolean
If the type is vtBinary then the following properties are available
Binary.Startbit: First bit to start reading from
Binary.Size : Number of bits
If the type is vtByteArray then the following properties are available
Aob.Size : Number of bytes
CustomTypeName: String - If the type is vtCustom this will contain the name of the CustomType
Script: String - If the type is vtAutoAssembler this will contain the auto assembler script
Value: string - The value in stringform.
Selected: boolean - Set to true if selected (ReadOnly)
Active: boolean - Set to true to activate/freeze, false to deactivate/unfreeze
Color: integer
ShowAsHex: boolean - Self explanatory
ShowAsSigned: boolean - Self explanatory
AllowIncrease: boolean - Allow value increasing, unfreeze will reset it to false
AllowDecrease: boolean - Allow value decreasing, unfreeze will reset it to false
Collapsed: boolean - Set to true to collapse this record or false to expand it. Use expand/collapse methods for recursive operations.
IsGroupHeader: boolean - Set to true if the record was created as a Group Header with no address or value info.
IsAddressGroupHeader: boolean - Set to true if the record was created as a Group Header with address.
IsReadable: boolean - Set to false if record contains an unreadable address. NOTE: This property will not be set until the value property is accessed at least once. (ReadOnly)
Options: String set - a string enclosed by square brackets filled with the options seperated by a comma. Valid options are: moHideChildren, moActivateChildrenAsWell, moDeactivateChildrenAsWell, moRecursiveSetValue, moAllowManualCollapseAndExpand, moManualExpandCollapse, moAlwaysHideChildren
DropDownLinked: boolean - if dropdown list refers to list of another memory record eg. (memrec name)
DropDownLinkedMemrec: string - Description of linked memrec or emptystring if not linked
DropDownList : StringList - list of "value:description" lines, lists are still separate objects when linked, read-write
DropDownReadOnly: boolean - true if 'Disallow manual user input' is set
DropDownDescriptionOnly: boolean - self explanatory
DisplayAsDropDownListItem: boolean - self explanatory
DropDownCount: integer - equivalent to .DropDownList.Count
DropDownValue[index] : Array to access values in DropDownList (ReadOnly)
DropDownDescription[index] : Array to access Descriptions in DropDownList (ReadOnly)
Count: Number of children
Child[index] : Array to access the child records
[index] = Child[index]
Parent: MemoryRecord - The parent of the memory record
HotkeyCount: integer - Number of hotkeys attached to this memory record
Hotkey[] : Array to index the hotkeys
Async: Boolean - Set to true if activating this entry will be asynchronious. (only for AA/Lua scripts)
AsyncProcessing: Boolean - True when async is true and it's being processed
AsyncProcessingTime: qword - The time that it has been processing in milliseconds
OnActivate: function(memoryrecord,before,currentstate):boolean - The function to call when the memoryrecord will change (or changed) Active to true. If before is true, not returning true will cause the activation to stop.
OnDeactivate: function(memoryrecord,before,currentstate):boolean - The function to call when the memoryrecord will change (or changed) Active to false. If before is true, not returning true will cause the deactivation to stop.
OnDestroy: function() - Called when the memoryrecord is destroyed.
OnGetDisplayValue: function(memoryrecord,valuestring):boolean,string - This function gets called when rendering the value of a memory record. Return true and a new string to override the value shown
DontSave: boolean - Don't save this memoryrecord and it's children
methods
getDescription()
setDescription()
getAddress() : Returns the interpretable addressstring of this record. If it is a pointer, it returns a second result as a table filled with the offsets
setAddress(string) : Sets the interpretable address string, and if offsets are provided make it a pointer
getOffsetCount(): Returns the number of offsets for this memoryrecord
setOffsetCount(integer): Lets you set the number of offsets
getOffset(index) : Gets the offset at the given index
setOffset(index, value) : Sets the offset at the given index
getCurrentAddress(): Returns the current address as an integer (the final result of the interpretable address and pointer offsets)
appendToEntry(memrec): Appends the current memory record to the given memory record
getHotkey(index): Returns the hotkey from the hotkey array
getHotkeyByID(integer): Returns the hotkey with the given id
reinterpret()
createHotkey({keys}, action, value OPTIONAL, description OPTIONAL): Returns a hotkey object
disableWithoutExecute(): Sets the entry to disabled without executing the disable section
|
_________________
my english is bad
discord : rynx#9828 |
|
| Back to top |
|
 |
srunblue Newbie cheater
Reputation: 0
Joined: 21 Oct 2020 Posts: 11 Location: Cambodia
|
Posted: Wed Oct 21, 2020 7:24 am Post subject: About cheat engine |
|
|
Lynxz I cant add ur discord
I want to ask you about cheat engine if you seen please reply. Here
Discord: SrunBlueZ#9004 |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
et($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['attachrow'][$_attachrow_i]['FILESIZE'])) ? $this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['attachrow'][$_attachrow_i]['FILESIZE'] : '') , ' ' , ((isset($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['attachrow'][$_attachrow_i]['SIZE_VAR'])) ? $this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['attachrow'][$_attachrow_i]['SIZE_VAR'] : '') , ' |
';
echo '
';
echo '
';
echo ' | ' , ((isset($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['attachrow'][$_attachrow_i]['L_DOWNLOADED_VIEWED'])) ? $this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['attachrow'][$_attachrow_i]['L_DOWNLOADED_VIEWED'] : '') , ': |
';
echo ' ' , ((isset($this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['attachrow'][$_attachrow_i]['L_DOWNLOAD_COUNT'])) ? $this->_tpldata['postrow'][$_postrow_i]['attach'][$_attach_i]['attachrow'][$_attachrow_i]['L_DOWNLOAD_COUNT'] : '') , ' |
';
echo '
';
echo '