, but you can try this...
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
<CheatEntries>
<CheatEntry>
<ID>4983</ID>
<Description>"MoveOver Farm"</Description>
<Options moHideChildren="1"/>
<LastState/>
<Color>0080FF</Color>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>{======================
Author : aanpsx
Date : %scriptDate%
Game : STORY OF SEASONS Friends of Mineral Town.exe
Version : %exeVersion%
======================}
define(bytes_MoveOver,db 8B 59 04 8D 04 80)
define(fmax,(float)999999999)
define(imax,#999999999)
define(fmin,(float)0)
define(cmp1,cmp byte ptr)
define(cmp4,cmp dword ptr)
define(bit,byte ptr)
define(4b,dd 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0)
// 0 4 8 c1014181c2024282c3034383c404448
define(8b,dq 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0)
// 0 81018202830384048505860687078808890
[ENABLE]
{$lua}
if syntaxcheck then return end
-----------------------
memrec.Color=0x000080ff
-------------- A.B.G.R
{$asm}
aobscanmodule(PSX_MoveOver,STORY OF SEASONS Friends of Mineral Town.exe,8B 59 04 8D 04 80)
alloc(newmem_MoveOver,$1000,PSX_MoveOver)
label(_MoveOver)
label(code_MoveOver)
registersymbol(_MoveOver)
registersymbol(PSX_MoveOver)
registersymbol(code_MoveOver)
newmem_MoveOver:
mov [_MoveOver],rcx
cmp1 [_MoveOver+70],0
je FarmStage
@@:
cmp1 [_MoveOver+70],1
jne @f
mov dword ptr [rcx],1//tiled
@@:
cmp1 [_MoveOver+70],2
jne @f
mov dword ptr [rcx],2//tiled +watered
@@:
cmp1 [_MoveOver+70],3
jne @f
mov dword ptr [rcx],0//Cleared
FarmStage:
cmp4 [rcx+4],17
jge ClearAll
@@:
cmp1 [_MoveOver+71],1
jne @f
mov dword ptr [rcx+8],1//<--- Have Seed
jmp ClearAll
@@:
cmp1 [_MoveOver+71],2
jne @f
mov dword ptr [rcx+8],5//<--- Ready
jmp ClearAll
@@:
cmp1 [_MoveOver+71],3
jne @f
mov dword ptr [rcx+8],0//<--- No Seed/Crop
ClearAll:
cmp1 [_MoveOver+71],4
jne @f
mov dword ptr [rcx+4],0//seed
mov dword ptr [rcx+8],0//stage
//mov rdx,0
code_MoveOver:
readmem(PSX_MoveOver,6)
jmp return_MoveOver
_MoveOver:
8b
PSX_MoveOver:
jmp newmem_MoveOver
nop
return_MoveOver:
[DISABLE]
unregistersymbol(_MoveOver)
unregistersymbol(PSX_MoveOver)
unregistersymbol(code_MoveOver)
dealloc(newmem_MoveOver)
PSX_MoveOver:
readmem(code_MoveOver,6)
//Alt: mov ebx,[rcx+04]
//Alt: lea eax,[rax+rax*4]
{$lua}
if syntaxcheck then return end
-----------------------
memrec.Color=0x00008000
-------------- A.B.G.R
{$asm}
{
// ORIGINAL CODE - INJECTION POINT: STORY OF SEASONS Friends of Mineral Town.exe+71765
"STORY OF SEASONS Friends of Mineral Town.exe"+71738: 48 8D 55 FF - lea rdx,[rbp-01]
"STORY OF SEASONS Friends of Mineral Town.exe"+7173C: E8 9F 25 2A 00 - call "STORY OF SEASONS Friends of Mineral Town.exe"+313CE0
"STORY OF SEASONS Friends of Mineral Town.exe"+71741: 84 C0 - test al,al
"STORY OF SEASONS Friends of Mineral Town.exe"+71743: 0F 84 D3 01 00 00 - je "STORY OF SEASONS Friends of Mineral Town.exe"+7191C
"STORY OF SEASONS Friends of Mineral Town.exe"+71749: 0F B7 45 DF - movzx eax,word ptr [rbp-21]
"STORY OF SEASONS Friends of Mineral Town.exe"+7174D: 48 8B 4D D7 - mov rcx,[rbp-29]
"STORY OF SEASONS Friends of Mineral Town.exe"+71751: 83 E8 0F - sub eax,0F
"STORY OF SEASONS Friends of Mineral Town.exe"+71754: C5 F8 57 C0 - vxorps xmm0,xmm0,xmm0
"STORY OF SEASONS Friends of Mineral Town.exe"+71758: C5 F8 29 B4 24 90 00 00 00 - vmovaps [rsp+00000090],xmm6
"STORY OF SEASONS Friends of Mineral Town.exe"+71761: C5 C8 57 F6 - vxorps xmm6,xmm6,xmm6
// ---------- INJECTING HERE ----------
"STORY OF SEASONS Friends of Mineral Town.exe"+71765: 8B 59 04 - mov ebx,[rcx+04]
"STORY OF SEASONS Friends of Mineral Town.exe"+71768: 8D 04 80 - lea eax,[rax+rax*4]
// ---------- DONE INJECTING ----------
"STORY OF SEASONS Friends of Mineral Town.exe"+7176B: 03 C0 - add eax,eax
"STORY OF SEASONS Friends of Mineral Town.exe"+7176D: C5 FA 2A C0 - vcvtsi2ss xmm0,eax,eax
"STORY OF SEASONS Friends of Mineral Town.exe"+71771: C5 FA 58 15 57 65 4B 00 - vaddss xmm2,xmm0,["STORY OF SEASONS Friends of Mineral Town.exe"+527CD0]
"STORY OF SEASONS Friends of Mineral Town.exe"+71779: 0F B7 45 E1 - movzx eax,word ptr [rbp-1F]
"STORY OF SEASONS Friends of Mineral Town.exe"+7177D: 83 E8 0B - sub eax,0B
"STORY OF SEASONS Friends of Mineral Town.exe"+71780: C5 E8 14 D6 - vunpcklps xmm2,xmm2,xmm6
"STORY OF SEASONS Friends of Mineral Town.exe"+71784: C5 F8 57 C0 - vxorps xmm0,xmm0,xmm0
"STORY OF SEASONS Friends of Mineral Town.exe"+71788: C5 FB 11 55 0F - vmovsd [rbp+0F],xmm2
"STORY OF SEASONS Friends of Mineral Town.exe"+7178D: 8D 04 80 - lea eax,[rax+rax*4]
"STORY OF SEASONS Friends of Mineral Town.exe"+71790: 03 C0 - add eax,eax
}
</AssemblerScript>
<CheatEntries>
<CheatEntry>
<ID>4978</ID>
<Description>"Farm"</Description>
<DropDownList DescriptionOnly="1" DisplayValueAsItem="1">0:---
1:Tilled
2:Watered
3:Cleared
</DropDownList>
<VariableType>Byte</VariableType>
<Address>_MoveOver+70</Address>
</CheatEntry>
<CheatEntry>
<ID>4979</ID>
<Description>"Farm Stage"</Description>
<DropDownList DescriptionOnly="1" DisplayValueAsItem="1">0:---
1:Have Seed
2:Ready
3:No Seed/Crop
</DropDownList>
<VariableType>Byte</VariableType>
<Address>_MoveOver+71</Address>
<CheatEntries>
<CheatEntry>
<ID>4980</ID>
<Description>"Seed"</Description>
<DropDownList DisplayValueAsItem="1">0:Turnip
1:Potato
2:Cucumber
3:Strawberries
4:Cabbage
5:Tomato
6:Corn
7:Onion
8:Pumpkin
9:Pineapple
10:Eggplant
11:Carrot
12:Yam
13:Spinach
14:Green Pepper
15:Adzuki Beans
16:Chili Peppers
17:Moondrop Flower
18:Pink Cat Flower
19:Blue Magic Red Flower
20:True Magic Red Flower
21:Toy Flower
22:Sunsweet Flower
23:Grass
</DropDownList>
<VariableType>4 Bytes</VariableType>
<Address>_MoveOver</Address>
<Offsets>
<Offset>4</Offset>
</Offsets>
</CheatEntry>
</CheatEntries>
</CheatEntry>
<CheatEntry>
<ID>4981</ID>
<Description>"Pointer"</Description>
<Options moHideChildren="1"/>
<LastState Value="" Activated="1" RealAddress="00000000"/>
<GroupHeader>1</GroupHeader>
<CheatEntries>
<CheatEntry>
<ID>4964</ID>
<Description>"base"</Description>
<ShowAsHex>1</ShowAsHex>
<VariableType>8 Bytes</VariableType>
<Address>_MoveOver</Address>
</CheatEntry>
<CheatEntry>
<ID>4975</ID>
<Description>"Tiled/watered"</Description>
<DropDownList DisplayValueAsItem="1">0:None
1:Tilled
2:Watered
</DropDownList>
<VariableType>4 Bytes</VariableType>
<Address>_MoveOver</Address>
<Offsets>
<Offset>0</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>4977</ID>
<Description>"Seed"</Description>
<DropDownList DisplayValueAsItem="1">0:Turnip
1:Potato
2:Cucumber
3:Strawberries
4:Cabbage
5:Tomato
6:Corn
7:Onion
8:Pumpkin
9:Pineapple
10:Eggplant
11:Carrot
12:Yam
13:Spinach
14:Green Pepper
15:Adzuki Beans
16:Chili Peppers
17:Moondrop Flower
18:Pink Cat Flower
19:Blue Magic Red Flower
20:True Magic Red Flower
21:Toy Flower
22:Sunsweet Flower
23:Grass
</DropDownList>
<VariableType>4 Bytes</VariableType>
<Address>_MoveOver</Address>
<Offsets>
<Offset>4</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>4976</ID>
<Description>"Farm Stage"</Description>
<DropDownList DisplayValueAsItem="1">0:No
1:Have Seed
2:Sprout
5:Ready
</DropDownList>
<VariableType>4 Bytes</VariableType>
<Address>_MoveOver</Address>
<Offsets>
<Offset>8</Offset>
</Offsets>
</CheatEntry>
</CheatEntries>
</CheatEntry>
</CheatEntries>
</CheatEntry>
</CheatEntries>
</CheatTable>