Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
<CheatEntries>
<CheatEntry>
<ID>1064</ID>
<Description>"Guarantee Pet Drop (From zones, not dungeons/expeditions)"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048,PetMain:TryToCapture+345)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
subsd xmm0,xmm0 //First try baby. Zeroing out oneo f these should work, but not sure which one... save backup time.
comisd xmm1,xmm0 //xmm1 should be the "right half" that has to be greater than xmm0 to succeed. Or... the other way around. Fuck me I don't even know.
jbe PetMain:TryToCapture+3ab
exit:
jmp returnhere
PetMain:TryToCapture+345:
jmp newmem
nop 5
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
PetMain:TryToCapture+345:
db 66 0F 2F C8 0F 86 5C 00 00 00
//comisd xmm1,xmm0
//jbe PetMain:TryToCapture+3ab
</AssemblerScript>
</CheatEntry>
</CheatEntries>
</CheatTable>
Code above will force a pet drop on the zone you're in on the next kill. Doesn't work for dungeons (not... far enough to even know what those are, but they're in the code) nor 'special pets', which I also don't understand but again, are a separate batch of code.
Should be safe because it just sets the compare for your 'roll' to always be a win if it rolls, but doesn't bypass the parts of the code that determine if the pet is available or not. That said, have not tested on a game that hasn't unlocked pets, nor on a whole lot of different zones. Let me know if it causes you a problem.
Notes:
Requires mono. Turn it on. Forgot to put the code into it that enables it when you try to use it, so... do it yourself. I'm lazy.
Other table makers are welcome to incorporate this into their table. I only make a table if I end up making 4-5+ codes, which is rare - instead I just make onesy twosy stuff that I wanted. Just integrate it with whatever you've got, no accreditation needed or what have you I barely know what I'm doing, anyway.