高级玩家
- 贡献度
- 1
- 金元
- 3599
- 积分
- 364
- 精华
- 0
- 注册时间
- 2009-12-1
|
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="34">
<CheatEntries>
<CheatEntry>
<ID>16</ID>
<Description>"麻将"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>{ Game :
Version:
Date : 2021-02-01
Author : Karl
This script does blah blah blah
}
[ENABLE]
{$lua}
if syntaxcheck then return end
if process == "Yakuza5.exe" then
autoAssemble([[aobscanmodule(MahJongPtr,mg.dll,488B05????????33D2488B??????4?????)
registerSymbol(MahJongPtr)]])
elseif process == "YakuzaKiwami2.exe" then
autoAssemble([[aobscanmodule(MahJongPtr,$process,488B0D????????48????48????200D)
registersymbol(MahJongPtr)]])
elseif process == "YakuzaKiwami.exe" then
autoAssemble([[aobscanmodule(MahJongPtr,lexus_minigame_release_retail.dll,488B05????????4?????480300004???????140100004?????74)
registersymbol(MahJongPtr)]])
elseif process == "Yakuza0.exe" then
autoAssemble([[aobscanmodule(MahJongPtr,cima_minigame_release_retail.dll,488B05????????48????480300008?9???140100008?C?0F)
registersymbol(MahJongPtr)]])
else
autoAssemble([[aobscanmodule(MahJongPtr,$process,488D05????????4?0???488D0?????????E8????????48)
registersymbol(MahJongPtr)]])
end
local addr = getAddress("MahJongPtr")
unregisterSymbol("MahJongPtr")
addr = addr+readInteger(addr+0x3)+getInstructionSize(addr)
registerSymbol("MahJongPtr",addr,true)
local ItemList = {
"0:一萬","1:一萬","2:一萬","3:一萬","4:二萬","5:二萬","6:二萬","7:二萬","8:三萬","9:三萬","10:三萬","11:三萬","12:四萬","13:四萬",
"14:四萬","15:四萬","16:五萬","17:五萬","18:五萬","19:五萬","20:六萬","21:六萬","22:六萬","23:六萬","24:七萬","25:七萬","26:七萬",
"27:七萬","28:八萬","29:八萬","30:八萬","31:八萬","32:九萬","33:九萬","34:九萬","35:九萬","36:一索","37:一索","38:一索","39:一索",
"40:二索","41:二索","42:二索","43:二索","44:三索","45:三索","46:三索","47:三索","48:四索","49:四索","50:四索","51:四索","52:五索",
"53:五索","54:五索","55:五索","56:六索","57:六索","58:六索","59:六索","60:七索","61:七索","62:七索","63:七索","64:八索","65:八索",
"66:八索","67:八索","68:九索","69:九索","70:九索","71:九索","72:一筒","73:一筒","74:一筒","75:一筒","76:二筒","77:二筒","78:二筒",
"79:二筒","80:三筒","81:三筒","82:三筒","83:三筒","84:四筒","85:四筒","86:四筒","87:四筒","88:五筒","89:五筒","90:五筒","91:五筒",
"92:六筒","93:六筒","94:六筒","95:六筒","96:七筒","97:七筒","98:七筒","99:七筒","100:八筒","101:八筒","102:八筒","103:八筒","104:九筒",
"105:九筒","106:九筒","107:九筒","108:东风","109:东风","110:东风","111:东风","112:南风","113:南风","114:南风","115:南风","116:西风",
"117:西风","118:西风","119:西风","120:北风","121:北风","122:北风","123:北风","124:白板","125:白板","126:白板","127:白板","128:发财",
"129:发财","130:发财","131:发财","132:红中","133:红中","134:红中","135:红中"}
local hotkeylist = {57,48,56,189,55}
local hotkeynamelist = {'按9九莲宝灯','按0大四喜字一色','按8一条龙','按-立直一发','按7国士无双'}
local hotkeyvaluelist = {'01 00 00 00 02 00 00 00 03 00 00 00 05 00 00 00 09 00 00 00 0D 00 00 00 11 00 00 00 15 00 00 00 19 00 00 00 1D 00 00 00 21 00 00 00 22 00 00 00 23',
'6C 00 00 00 6D 00 00 00 6E 00 00 00 70 00 00 00 71 00 00 00 72 00 00 00 74 00 00 00 75 00 00 00 76 00 00 00 78 00 00 00 79 00 00 00 7A 00 00 00 7E',
'01 00 00 00 05 00 00 00 09 00 00 00 0D 00 00 00 11 00 00 00 15 00 00 00 19 00 00 00 1D 00 00 00 21 00 00 00 61 00 00 00 65 00 00 00 84 00 00 00 85',
'03 00 00 00 09 00 00 00 0D 00 00 00 11 00 00 00 15 00 00 00 19 00 00 00 1D 00 00 00 21 00 00 00 24 00 00 00 25 00 00 00 59 00 00 00 5D 00 00 00 61',
'00 00 00 00 20 00 00 00 24 00 00 00 44 00 00 00 48 00 00 00 68 00 00 00 6C 00 00 00 70 00 00 00 74 00 00 00 78 00 00 00 7C 00 00 00 80 00 00 00 84'}
local DropDownListITM = createStringlist()
for k,l in ipairs(ItemList) do
DropDownListITM.add(string.format("%s",l))
end
local al=getAddressList()
local mainMR = memrec
while mainMR.Count>0 do mainMR[0].destroy() end
local newMR0 = al.createMemoryRecord()
newMR0.Type = vtAutoAssembler
newMR0.Script = '[Enable]\r[Disable]\r'
newMR0.DontSave = true
newMR0.Description = '(非小键盘)按9九莲宝灯,按0大四喜字一色,按8一条龙,按-立直一发,按7国士无双'
newMR0.options = "[moAlwaysHideChildren,moManualExpandCollapse]"
newMR0.appendToEntry(mainMR)
local newMR1 = al.createMemoryRecord()
newMR1.Type = vtByteArray
newMR1.Aob.Size = 49
newMR1.ShowAsHex = true
newMR1.Description = '牌式数组'
if process == "Yakuza3.exe" then newMR1.Address = 'MahJongPtr' elseif process == "Yakuza4.exe" then newMR1.Address = 'MahJongPtr' else newMR1.setAddress('MahJongPtr',{0x0}) end
newMR1.appendToEntry(newMR0)
for i=1,#hotkeylist do
newMR1.createHotkey({hotkeylist[i]},mrhSetValue,hotkeyvaluelist[i],hotkeynamelist[i])
end
for i=1,0xE do
local newMR2 = al.createMemoryRecord()
newMR2.Type = vtDword
if i == 0xE then
newMR2.Description = '摸牌'
newMR2.DontSave = true
newMR2.appendToEntry(mainMR)
else
newMR2.Description = '麻将'..(i)
newMR2.appendToEntry(newMR1)
end
if process == "Yakuza3.exe" then newMR2.Address = string.format("MahJongPtr+%X",(i-1)*4) elseif process == "Yakuza4.exe" then newMR2.Address = string.format("MahJongPtr+%X",(i-1)*4) else newMR2.setAddress('MahJongPtr',{(i-1)*4}) end
newMR2.DropDownList.Text = DropDownListITM.Text
newMR2.DropDownReadOnly = false
newMR2.DropDownDescriptionOnly = true
newMR2.DisplayAsDropDownListItem = true
end
mainMR.options = "[moAlwaysHideChildren,moManualExpandCollapse]"
{$asm}
[DISABLE]
{$lua}
local mainMR = memrec
while mainMR.Count>0 do mainMR[0].destroy() end
mainMR.options = ""
unregisterSymbol("MahJongPtr")
{$asm}
</AssemblerScript>
</CheatEntry>
</CheatEntries>
<UserdefinedSymbols/>
</CheatTable>
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="34">
<CheatEntries>
<CheatEntry>
<ID>16</ID>
<Description>"麻将"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>{ Game :
Version:
Date : 2021-02-01
Author : Karl
This script does blah blah blah
}
[ENABLE]
{$lua}
if syntaxcheck then return end
if process == "Yakuza5.exe" then
autoAssemble([[aobscanmodule(MahJongPtr,mg.dll,488B05????????33D2488B??????4?????)
registerSymbol(MahJongPtr)]])
elseif process == "YakuzaKiwami2.exe" then
autoAssemble([[aobscanmodule(MahJongPtr,$process,488B0D????????48????48????200D)
registersymbol(MahJongPtr)]])
elseif process == "YakuzaKiwami.exe" then
autoAssemble([[aobscanmodule(MahJongPtr,lexus_minigame_release_retail.dll,488B05????????4?????480300004???????140100004?????74)
registersymbol(MahJongPtr)]])
elseif process == "Yakuza0.exe" then
autoAssemble([[aobscanmodule(MahJongPtr,cima_minigame_release_retail.dll,488B05????????48????480300008?9???140100008?C?0F)
registersymbol(MahJongPtr)]])
else
autoAssemble([[aobscanmodule(MahJongPtr,$process,488D05????????4?0???488D0?????????E8????????48)
registersymbol(MahJongPtr)]])
end
local addr = getAddress("MahJongPtr")
unregisterSymbol("MahJongPtr")
addr = addr+readInteger(addr+0x3)+getInstructionSize(addr)
registerSymbol("MahJongPtr",addr,true)
local ItemList = {
"0:一萬","1:一萬","2:一萬","3:一萬","4:二萬","5:二萬","6:二萬","7:二萬","8:三萬","9:三萬","10:三萬","11:三萬","12:四萬","13:四萬",
"14:四萬","15:四萬","16:五萬","17:五萬","18:五萬","19:五萬","20:六萬","21:六萬","22:六萬","23:六萬","24:七萬","25:七萬","26:七萬",
"27:七萬","28:八萬","29:八萬","30:八萬","31:八萬","32:九萬","33:九萬","34:九萬","35:九萬","36:一索","37:一索","38:一索","39:一索",
"40:二索","41:二索","42:二索","43:二索","44:三索","45:三索","46:三索","47:三索","48:四索","49:四索","50:四索","51:四索","52:五索",
"53:五索","54:五索","55:五索","56:六索","57:六索","58:六索","59:六索","60:七索","61:七索","62:七索","63:七索","64:八索","65:八索",
"66:八索","67:八索","68:九索","69:九索","70:九索","71:九索","72:一筒","73:一筒","74:一筒","75:一筒","76:二筒","77:二筒","78:二筒",
"79:二筒","80:三筒","81:三筒","82:三筒","83:三筒","84:四筒","85:四筒","86:四筒","87:四筒","88:五筒","89:五筒","90:五筒","91:五筒",
"92:六筒","93:六筒","94:六筒","95:六筒","96:七筒","97:七筒","98:七筒","99:七筒","100:八筒","101:八筒","102:八筒","103:八筒","104:九筒",
"105:九筒","106:九筒","107:九筒","108:东风","109:东风","110:东风","111:东风","112:南风","113:南风","114:南风","115:南风","116:西风",
"117:西风","118:西风","119:西风","120:北风","121:北风","122:北风","123:北风","124:白板","125:白板","126:白板","127:白板","128:发财",
"129:发财","130:发财","131:发财","132:红中","133:红中","134:红中","135:红中"}
local hotkeylist = {57,48,56,189,55}
local hotkeynamelist = {'按9九莲宝灯','按0大四喜字一色','按8一条龙','按-立直一发','按7国士无双'}
local hotkeyvaluelist = {'01 00 00 00 02 00 00 00 03 00 00 00 05 00 00 00 09 00 00 00 0D 00 00 00 11 00 00 00 15 00 00 00 19 00 00 00 1D 00 00 00 21 00 00 00 22 00 00 00 23',
'6C 00 00 00 6D 00 00 00 6E 00 00 00 70 00 00 00 71 00 00 00 72 00 00 00 74 00 00 00 75 00 00 00 76 00 00 00 78 00 00 00 79 00 00 00 7A 00 00 00 7E',
'01 00 00 00 05 00 00 00 09 00 00 00 0D 00 00 00 11 00 00 00 15 00 00 00 19 00 00 00 1D 00 00 00 21 00 00 00 61 00 00 00 65 00 00 00 84 00 00 00 85',
'03 00 00 00 09 00 00 00 0D 00 00 00 11 00 00 00 15 00 00 00 19 00 00 00 1D 00 00 00 21 00 00 00 24 00 00 00 25 00 00 00 59 00 00 00 5D 00 00 00 61',
'00 00 00 00 20 00 00 00 24 00 00 00 44 00 00 00 48 00 00 00 68 00 00 00 6C 00 00 00 70 00 00 00 74 00 00 00 78 00 00 00 7C 00 00 00 80 00 00 00 84'}
local DropDownListITM = createStringlist()
for k,l in ipairs(ItemList) do
DropDownListITM.add(string.format("%s",l))
end
local al=getAddressList()
local mainMR = memrec
while mainMR.Count>0 do mainMR[0].destroy() end
local newMR0 = al.createMemoryRecord()
newMR0.Type = vtAutoAssembler
newMR0.Script = '[Enable]\r[Disable]\r'
newMR0.DontSave = true
newMR0.Description = '(非小键盘)按9九莲宝灯,按0大四喜字一色,按8一条龙,按-立直一发,按7国士无双'
newMR0.options = "[moAlwaysHideChildren,moManualExpandCollapse]"
newMR0.appendToEntry(mainMR)
local newMR1 = al.createMemoryRecord()
newMR1.Type = vtByteArray
newMR1.Aob.Size = 49
newMR1.ShowAsHex = true
newMR1.Description = '牌式数组'
if process == "Yakuza3.exe" then newMR1.Address = 'MahJongPtr' elseif process == "Yakuza4.exe" then newMR1.Address = 'MahJongPtr' else newMR1.setAddress('MahJongPtr',{0x0}) end
newMR1.appendToEntry(newMR0)
for i=1,#hotkeylist do
newMR1.createHotkey({hotkeylist[i]},mrhSetValue,hotkeyvaluelist[i],hotkeynamelist[i])
end
for i=1,0xE do
local newMR2 = al.createMemoryRecord()
newMR2.Type = vtDword
if i == 0xE then
newMR2.Description = '摸牌'
newMR2.DontSave = true
newMR2.appendToEntry(mainMR)
else
newMR2.Description = '麻将'..(i)
newMR2.appendToEntry(newMR1)
end
if process == "Yakuza3.exe" then newMR2.Address = string.format("MahJongPtr+%X",(i-1)*4) elseif process == "Yakuza4.exe" then newMR2.Address = string.format("MahJongPtr+%X",(i-1)*4) else newMR2.setAddress('MahJongPtr',{(i-1)*4}) end
newMR2.DropDownList.Text = DropDownListITM.Text
newMR2.DropDownReadOnly = false
newMR2.DropDownDescriptionOnly = true
newMR2.DisplayAsDropDownListItem = true
end
mainMR.options = "[moAlwaysHideChildren,moManualExpandCollapse]"
{$asm}
[DISABLE]
{$lua}
local mainMR = memrec
while mainMR.Count>0 do mainMR[0].destroy() end
mainMR.options = ""
unregisterSymbol("MahJongPtr")
{$asm}
</AssemblerScript>
</CheatEntry>
</CheatEntries>
<UserdefinedSymbols/>
</CheatTable>
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="34">
<CheatEntries>
<CheatEntry>
<ID>16</ID>
<Description>"麻将"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>{ Game :
Version:
Date : 2021-02-01
Author : Karl
This script does blah blah blah
}
[ENABLE]
{$lua}
if syntaxcheck then return end
if process == "Yakuza5.exe" then
autoAssemble([[aobscanmodule(MahJongPtr,mg.dll,488B05????????33D2488B??????4?????)
registerSymbol(MahJongPtr)]])
elseif process == "YakuzaKiwami2.exe" then
autoAssemble([[aobscanmodule(MahJongPtr,$process,488B0D????????48????48????200D)
registersymbol(MahJongPtr)]])
elseif process == "YakuzaKiwami.exe" then
autoAssemble([[aobscanmodule(MahJongPtr,lexus_minigame_release_retail.dll,488B05????????4?????480300004???????140100004?????74)
registersymbol(MahJongPtr)]])
elseif process == "Yakuza0.exe" then
autoAssemble([[aobscanmodule(MahJongPtr,cima_minigame_release_retail.dll,488B05????????48????480300008?9???140100008?C?0F)
registersymbol(MahJongPtr)]])
else
autoAssemble([[aobscanmodule(MahJongPtr,$process,488D05????????4?0???488D0?????????E8????????48)
registersymbol(MahJongPtr)]])
end
local addr = getAddress("MahJongPtr")
unregisterSymbol("MahJongPtr")
addr = addr+readInteger(addr+0x3)+getInstructionSize(addr)
registerSymbol("MahJongPtr",addr,true)
local ItemList = {
"0:一萬","1:一萬","2:一萬","3:一萬","4:二萬","5:二萬","6:二萬","7:二萬","8:三萬","9:三萬","10:三萬","11:三萬","12:四萬","13:四萬",
"14:四萬","15:四萬","16:五萬","17:五萬","18:五萬","19:五萬","20:六萬","21:六萬","22:六萬","23:六萬","24:七萬","25:七萬","26:七萬",
"27:七萬","28:八萬","29:八萬","30:八萬","31:八萬","32:九萬","33:九萬","34:九萬","35:九萬","36:一索","37:一索","38:一索","39:一索",
"40:二索","41:二索","42:二索","43:二索","44:三索","45:三索","46:三索","47:三索","48:四索","49:四索","50:四索","51:四索","52:五索",
"53:五索","54:五索","55:五索","56:六索","57:六索","58:六索","59:六索","60:七索","61:七索","62:七索","63:七索","64:八索","65:八索",
"66:八索","67:八索","68:九索","69:九索","70:九索","71:九索","72:一筒","73:一筒","74:一筒","75:一筒","76:二筒","77:二筒","78:二筒",
"79:二筒","80:三筒","81:三筒","82:三筒","83:三筒","84:四筒","85:四筒","86:四筒","87:四筒","88:五筒","89:五筒","90:五筒","91:五筒",
"92:六筒","93:六筒","94:六筒","95:六筒","96:七筒","97:七筒","98:七筒","99:七筒","100:八筒","101:八筒","102:八筒","103:八筒","104:九筒",
"105:九筒","106:九筒","107:九筒","108:东风","109:东风","110:东风","111:东风","112:南风","113:南风","114:南风","115:南风","116:西风",
"117:西风","118:西风","119:西风","120:北风","121:北风","122:北风","123:北风","124:白板","125:白板","126:白板","127:白板","128:发财",
"129:发财","130:发财","131:发财","132:红中","133:红中","134:红中","135:红中"}
local hotkeylist = {57,48,56,189,55}
local hotkeynamelist = {'按9九莲宝灯','按0大四喜字一色','按8一条龙','按-立直一发','按7国士无双'}
local hotkeyvaluelist = {'01 00 00 00 02 00 00 00 03 00 00 00 05 00 00 00 09 00 00 00 0D 00 00 00 11 00 00 00 15 00 00 00 19 00 00 00 1D 00 00 00 21 00 00 00 22 00 00 00 23',
'6C 00 00 00 6D 00 00 00 6E 00 00 00 70 00 00 00 71 00 00 00 72 00 00 00 74 00 00 00 75 00 00 00 76 00 00 00 78 00 00 00 79 00 00 00 7A 00 00 00 7E',
'01 00 00 00 05 00 00 00 09 00 00 00 0D 00 00 00 11 00 00 00 15 00 00 00 19 00 00 00 1D 00 00 00 21 00 00 00 61 00 00 00 65 00 00 00 84 00 00 00 85',
'03 00 00 00 09 00 00 00 0D 00 00 00 11 00 00 00 15 00 00 00 19 00 00 00 1D 00 00 00 21 00 00 00 24 00 00 00 25 00 00 00 59 00 00 00 5D 00 00 00 61',
'00 00 00 00 20 00 00 00 24 00 00 00 44 00 00 00 48 00 00 00 68 00 00 00 6C 00 00 00 70 00 00 00 74 00 00 00 78 00 00 00 7C 00 00 00 80 00 00 00 84'}
local DropDownListITM = createStringlist()
for k,l in ipairs(ItemList) do
DropDownListITM.add(string.format("%s",l))
end
local al=getAddressList()
local mainMR = memrec
while mainMR.Count>0 do mainMR[0].destroy() end
local newMR0 = al.createMemoryRecord()
newMR0.Type = vtAutoAssembler
newMR0.Script = '[Enable]\r[Disable]\r'
newMR0.DontSave = true
newMR0.Description = '(非小键盘)按9九莲宝灯,按0大四喜字一色,按8一条龙,按-立直一发,按7国士无双'
newMR0.options = "[moAlwaysHideChildren,moManualExpandCollapse]"
newMR0.appendToEntry(mainMR)
local newMR1 = al.createMemoryRecord()
newMR1.Type = vtByteArray
newMR1.Aob.Size = 49
newMR1.ShowAsHex = true
newMR1.Description = '牌式数组'
if process == "Yakuza3.exe" then newMR1.Address = 'MahJongPtr' elseif process == "Yakuza4.exe" then newMR1.Address = 'MahJongPtr' else newMR1.setAddress('MahJongPtr',{0x0}) end
newMR1.appendToEntry(newMR0)
for i=1,#hotkeylist do
newMR1.createHotkey({hotkeylist[i]},mrhSetValue,hotkeyvaluelist[i],hotkeynamelist[i])
end
for i=1,0xE do
local newMR2 = al.createMemoryRecord()
newMR2.Type = vtDword
if i == 0xE then
newMR2.Description = '摸牌'
newMR2.DontSave = true
newMR2.appendToEntry(mainMR)
else
newMR2.Description = '麻将'..(i)
newMR2.appendToEntry(newMR1)
end
if process == "Yakuza3.exe" then newMR2.Address = string.format("MahJongPtr+%X",(i-1)*4) elseif process == "Yakuza4.exe" then newMR2.Address = string.format("MahJongPtr+%X",(i-1)*4) else newMR2.setAddress('MahJongPtr',{(i-1)*4}) end
newMR2.DropDownList.Text = DropDownListITM.Text
newMR2.DropDownReadOnly = false
newMR2.DropDownDescriptionOnly = true
newMR2.DisplayAsDropDownListItem = true
end
mainMR.options = "[moAlwaysHideChildren,moManualExpandCollapse]"
{$asm}
[DISABLE]
{$lua}
local mainMR = memrec
while mainMR.Count>0 do mainMR[0].destroy() end
mainMR.options = ""
unregisterSymbol("MahJongPtr")
{$asm}
</AssemblerScript>
</CheatEntry>
</CheatEntries>
<UserdefinedSymbols/>
</CheatTable>
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="34">
<CheatEntries>
<CheatEntry>
<ID>16</ID>
<Description>"麻将"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>{ Game :
Version:
Date : 2021-02-01
Author : Karl
This script does blah blah blah
}
[ENABLE]
{$lua}
if syntaxcheck then return end
if process == "Yakuza5.exe" then
autoAssemble([[aobscanmodule(MahJongPtr,mg.dll,488B05????????33D2488B??????4?????)
registerSymbol(MahJongPtr)]])
elseif process == "YakuzaKiwami2.exe" then
autoAssemble([[aobscanmodule(MahJongPtr,$process,488B0D????????48????48????200D)
registersymbol(MahJongPtr)]])
elseif process == "YakuzaKiwami.exe" then
autoAssemble([[aobscanmodule(MahJongPtr,lexus_minigame_release_retail.dll,488B05????????4?????480300004???????140100004?????74)
registersymbol(MahJongPtr)]])
elseif process == "Yakuza0.exe" then
autoAssemble([[aobscanmodule(MahJongPtr,cima_minigame_release_retail.dll,488B05????????48????480300008?9???140100008?C?0F)
registersymbol(MahJongPtr)]])
else
autoAssemble([[aobscanmodule(MahJongPtr,$process,488D05????????4?0???488D0?????????E8????????48)
registersymbol(MahJongPtr)]])
end
local addr = getAddress("MahJongPtr")
unregisterSymbol("MahJongPtr")
addr = addr+readInteger(addr+0x3)+getInstructionSize(addr)
registerSymbol("MahJongPtr",addr,true)
local ItemList = {
"0:一萬","1:一萬","2:一萬","3:一萬","4:二萬","5:二萬","6:二萬","7:二萬","8:三萬","9:三萬","10:三萬","11:三萬","12:四萬","13:四萬",
"14:四萬","15:四萬","16:五萬","17:五萬","18:五萬","19:五萬","20:六萬","21:六萬","22:六萬","23:六萬","24:七萬","25:七萬","26:七萬",
"27:七萬","28:八萬","29:八萬","30:八萬","31:八萬","32:九萬","33:九萬","34:九萬","35:九萬","36:一索","37:一索","38:一索","39:一索",
"40:二索","41:二索","42:二索","43:二索","44:三索","45:三索","46:三索","47:三索","48:四索","49:四索","50:四索","51:四索","52:五索",
"53:五索","54:五索","55:五索","56:六索","57:六索","58:六索","59:六索","60:七索","61:七索","62:七索","63:七索","64:八索","65:八索",
"66:八索","67:八索","68:九索","69:九索","70:九索","71:九索","72:一筒","73:一筒","74:一筒","75:一筒","76:二筒","77:二筒","78:二筒",
"79:二筒","80:三筒","81:三筒","82:三筒","83:三筒","84:四筒","85:四筒","86:四筒","87:四筒","88:五筒","89:五筒","90:五筒","91:五筒",
"92:六筒","93:六筒","94:六筒","95:六筒","96:七筒","97:七筒","98:七筒","99:七筒","100:八筒","101:八筒","102:八筒","103:八筒","104:九筒",
"105:九筒","106:九筒","107:九筒","108:东风","109:东风","110:东风","111:东风","112:南风","113:南风","114:南风","115:南风","116:西风",
"117:西风","118:西风","119:西风","120:北风","121:北风","122:北风","123:北风","124:白板","125:白板","126:白板","127:白板","128:发财",
"129:发财","130:发财","131:发财","132:红中","133:红中","134:红中","135:红中"}
local hotkeylist = {57,48,56,189,55}
local hotkeynamelist = {'按9九莲宝灯','按0大四喜字一色','按8一条龙','按-立直一发','按7国士无双'}
local hotkeyvaluelist = {'01 00 00 00 02 00 00 00 03 00 00 00 05 00 00 00 09 00 00 00 0D 00 00 00 11 00 00 00 15 00 00 00 19 00 00 00 1D 00 00 00 21 00 00 00 22 00 00 00 23',
'6C 00 00 00 6D 00 00 00 6E 00 00 00 70 00 00 00 71 00 00 00 72 00 00 00 74 00 00 00 75 00 00 00 76 00 00 00 78 00 00 00 79 00 00 00 7A 00 00 00 7E',
'01 00 00 00 05 00 00 00 09 00 00 00 0D 00 00 00 11 00 00 00 15 00 00 00 19 00 00 00 1D 00 00 00 21 00 00 00 61 00 00 00 65 00 00 00 84 00 00 00 85',
'03 00 00 00 09 00 00 00 0D 00 00 00 11 00 00 00 15 00 00 00 19 00 00 00 1D 00 00 00 21 00 00 00 24 00 00 00 25 00 00 00 59 00 00 00 5D 00 00 00 61',
'00 00 00 00 20 00 00 00 24 00 00 00 44 00 00 00 48 00 00 00 68 00 00 00 6C 00 00 00 70 00 00 00 74 00 00 00 78 00 00 00 7C 00 00 00 80 00 00 00 84'}
local DropDownListITM = createStringlist()
for k,l in ipairs(ItemList) do
DropDownListITM.add(string.format("%s",l))
end
local al=getAddressList()
local mainMR = memrec
while mainMR.Count>0 do mainMR[0].destroy() end
local newMR0 = al.createMemoryRecord()
newMR0.Type = vtAutoAssembler
newMR0.Script = '[Enable]\r[Disable]\r'
newMR0.DontSave = true
newMR0.Description = '(非小键盘)按9九莲宝灯,按0大四喜字一色,按8一条龙,按-立直一发,按7国士无双'
newMR0.options = "[moAlwaysHideChildren,moManualExpandCollapse]"
newMR0.appendToEntry(mainMR)
local newMR1 = al.createMemoryRecord()
newMR1.Type = vtByteArray
newMR1.Aob.Size = 49
newMR1.ShowAsHex = true
newMR1.Description = '牌式数组'
if process == "Yakuza3.exe" then newMR1.Address = 'MahJongPtr' elseif process == "Yakuza4.exe" then newMR1.Address = 'MahJongPtr' else newMR1.setAddress('MahJongPtr',{0x0}) end
newMR1.appendToEntry(newMR0)
for i=1,#hotkeylist do
newMR1.createHotkey({hotkeylist[i]},mrhSetValue,hotkeyvaluelist[i],hotkeynamelist[i])
end
for i=1,0xE do
local newMR2 = al.createMemoryRecord()
newMR2.Type = vtDword
if i == 0xE then
newMR2.Description = '摸牌'
newMR2.DontSave = true
newMR2.appendToEntry(mainMR)
else
newMR2.Description = '麻将'..(i)
newMR2.appendToEntry(newMR1)
end
if process == "Yakuza3.exe" then newMR2.Address = string.format("MahJongPtr+%X",(i-1)*4) elseif process == "Yakuza4.exe" then newMR2.Address = string.format("MahJongPtr+%X",(i-1)*4) else newMR2.setAddress('MahJongPtr',{(i-1)*4}) end
newMR2.DropDownList.Text = DropDownListITM.Text
newMR2.DropDownReadOnly = false
newMR2.DropDownDescriptionOnly = true
newMR2.DisplayAsDropDownListItem = true
end
mainMR.options = "[moAlwaysHideChildren,moManualExpandCollapse]"
{$asm}
[DISABLE]
{$lua}
local mainMR = memrec
while mainMR.Count>0 do mainMR[0].destroy() end
mainMR.options = ""
unregisterSymbol("MahJongPtr")
{$asm}
</AssemblerScript>
</CheatEntry>
</CheatEntries>
<UserdefinedSymbols/>
</CheatTable>
|
|