Actually, I think your home is not yet upgraded to included kitchen if I might say ? Because both my latest more pointer and bug catching script use recipe part code either for cooking related option and to access player's bug picture book to spawn bug... don't know if it's relate
Here I comment out some code -> select all-> copy this code -> double-click script -> Ctrl+A -> paste, click OK -> Yes and try to activate it...
Code: Select all
[ENABLE]
assert(BugController:Update,55 48 8B EC 56)
alloc(newmem2,2048,BugController:Update)
label(returnhere2)
getmonostruct(BugController)
getmonostruct(BugDataModel)
getmonostruct(BugMasterModel)
newmem2:
push rbp
mov rbp,rsp
push rsi
test rcx,rcx
je short @f
mov byte ptr[rcx+BugController.mIsStay],1
mov rsi,[rcx+BugController.mBugModel]
test rsi,rsi
je short @f
mov rsi,[rsi+BugDataModel.mBugData]
test rsi,rsi
je short @f
mov byte ptr[rsi+BugMasterModel.mIsRandomQuality],0
mov dword ptr[rsi+BugMasterModel.mQuality],#10
@@:
jmp returnhere2
BugController:Update:
jmp newmem2
returnhere2:
assert(BugPointController:GetBugData,55 48 8B EC 56)
aobscanregion(_GetMapName,TextUtility:GetMapName,TextUtility:GetMapName+50,49 BA)
aobscanregion(_FarmPlayerControllerUpdate,FarmPlayerController:Update,FarmPlayerController:Update+50,49 BA)
//aobscanregion(_ListContains,FarmModel:AddCookingRecipe,FarmModel:AddCookingRecipe+50,49)
getmonostruct(MasterManager)
getmonostruct(BugMasterCollection)
getmonostruct(BugMasterModel)
getmonostruct(UserManager)
getmonostruct(UserModel)
getmonostruct(PicturebookModel)
getmonostruct(BugDataModel)
alloc(newmem,2048,BugPointController:GetBugData)
label(returnhere)
label(exit)
label(temp)
newmem:
push rbp
mov rbp,rsp
push rsi
lea rdx,[rdx]
test rdx,rdx
je long exit
mov [temp],rax
mov [temp+8],rbx
mov [temp+10],rcx
mov [temp+18],rdx
mov [temp+20],r8
mov [temp+28],r9
mov [temp+30],r10
mov [temp+38],r11
readmem(_FarmPlayerControllerUpdate,31)
mov rcx,[rax+UserManager.mUser]
mov rcx,[rcx+UserModel.mBugPicturebookModel]
mov [temp+60],rcx
mov rcx,[rcx+PicturebookModel.mItemIdList]
mov [temp+50],rcx
mov rcx,[temp+60]
sub rsp,30
mov r11,"PicturebookModel:OnBeforeSerialize"
call r11
add rsp,30
readmem(_GetMapName,31)
mov rbx,rax
mov rbx,[rbx+MasterManager.mBugMaster]
mov rbx,[rbx+BugMasterCollection.mBugDatas]
mov [temp+58],rbx
@@:
xor rax,rax
mov rbx,[temp+58]
mov al,[temp+40]
cmp al,[rbx+38]
jnl short @f
mov rbx,[rbx+28]
mov rbx,[rbx+20+rax*8]
add byte ptr[temp+40],01
mov [temp+48],rbx
mov rbx,dword ptr[rbx+BugMasterModel.mItemId]
/*
mov rcx,[temp+50]
mov rax,rcx
mov rdx,rbx
sub rsp,20
cmp dword ptr [rax],00
reassemble(_ListContains)
call r11
add rsp,20
test eax,eax
jne short @b
*/
mov rdx,[temp+18]
mov dword ptr[rdx+18],01
mov rbx,[temp+48]
mov rdx,[rdx+20]
mov [rdx+BugDataModel.mBugData],rbx
jmp short exit
@@:
xor rcx,rcx
mov rax,[temp+50]
mov rbx,[temp+58]
mov eax,dword ptr[rax+18]
cmp eax,dword ptr[rbx+38]
jnl short exit
mov byte ptr[temp+40],0
exit:
mov rax,[temp]
mov rbx,[temp+8]
mov rcx,[temp+10]
mov rdx,[temp+18]
mov r8,[temp+20]
mov r9,[temp+28]
mov r10,[temp+30]
mov r11,[temp+38]
lea rdx,[rdx]
jmp returnhere
temp:
dq 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BugPointController:GetBugData:
jmp newmem
returnhere:
[DISABLE]
dealloc(newmem2)
BugController:Update:
//push rbp
//mov rbp,rsp
//push rsi
db 55 48 8B EC 56
dealloc(newmem)
BugPointController:GetBugData:
//push rbp
//mov rbp,rsp
//push rsi
db 55 48 8B EC 56