posted, I wrote some Lua to start setting the values for some testing. But so far I haven't gotten it to drop legendaries or see any real changes to the drops. The addresses get accessed with a lot of other stuff, so an injection script will take some time. Plus I still need to figure out what values to set them to. And there are addresses that get accessed that have similar values but aren't with the pointers that lampuiho posted. So there's still some things to work out.
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
<CheatEntries>
<CheatEntry>
<ID>13701</ID>
<Description>"-[ Rarity Drops ]- ()->"</Description>
<Options moHideChildren="1"/>
<LastState/>
<Color>008000</Color>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">{$lua}
local DEBUG = DEBUG or false
-- DEBUG = true
local t = translate
local format = string.format
local strE = ''
local minV = 1/2^16
RarityBaseAddr = 'BorderlandsGOTY.exe+25AEDC8'
Rarities = {
'VeryCommon',
'VeryCommon_LowerPerPlayer',
'Common',
'Uncommon',
'Uncommoner',
'Rare',
'VeryRare',
'Awesome_VeryCommon',
'Awesome_Common',
'Awesome_Uncommon',
'Awesome_Uncommoner',
'Awesome_Rare',
'Awesome_VeryRare',
'Awesome_Legendary',
}
RarityOffsets = {
VeryCommon = 0x8*0x159B7,
VeryCommon_LowerPerPlayer = 0x8*0x16ADC,
Common = 0x8*0x16ADF,
Uncommon = 0x8*0x159B6,
Uncommoner = 0x8*0x159B5,
Rare = 0x8*0x159BE,
VeryRare = 0x8*0x16AE0,
Awesome_VeryCommon = 0x8*0x16AE1,
Awesome_Common = 0x8*0x16AE2,
Awesome_Uncommon = 0x8*0x16AE3,
Awesome_Uncommoner = 0x8*0x16AE4,
Awesome_Rare = 0x8*0x16AE5,
Awesome_VeryRare = 0x8*0x16AE6,
Awesome_Legendary = 0x8*0x16AE7,
}
RarityPresets = {
default = {
100,
100,
60,
20,
5,
1.5,
0.5,
1,
1,
1,
1,
1.5,
0.5,
0.200000003
},
['Legendary 10x'] = {
minV,
minV,
minV,
minV,
minV,
minV,
minV,
minV,
minV,
minV,
minV,
minV,
minV,
2
},
['Legendary Only'] = {
minV,
minV,
minV,
minV,
minV,
minV,
minV,
minV,
minV,
minV,
minV,
minV,
minV,
100
},
['Purple Only'] = {
minV,
minV,
minV,
minV,
minV,
minV,
minV,
minV,
minV,
minV,
minV,
minV,
100,
minV
},
-- ['Blue Only'] = {
-- minV,
-- minV,
-- minV,
-- minV,
-- minV,
-- minV,
-- minV,
-- minV,
-- minV,
-- minV,
-- minV,
-- minV,
-- minV,
-- minV
-- },
-- ['Green Only'] = {
-- minV,
-- minV,
-- minV,
-- minV,
-- minV,
-- minV,
-- minV,
-- minV,
-- minV,
-- minV,
-- minV,
-- minV,
-- minV,
-- minV
-- },
-- ['White Only'] = {
-- minV,
-- minV,
-- minV,
-- minV,
-- minV,
-- minV,
-- minV,
-- minV,
-- minV,
-- minV,
-- minV,
-- minV,
-- minV,
-- minV
-- },
}
function setRarityDrops(values)
if DEBUG then
print(strE)
end
for i, v in ipairs(Rarities) do
local offset = format('%x', RarityOffsets[v])
local addr = '[['..RarityBaseAddr..']+'..offset..']+78'
if DEBUG then
print(addr, ' ', values[i], ' ', v, ' ', readFloat(addr))
end
writeFloat(addr, values[i])
end
return 0
end
function presetRarityDrops(key)
return setRarityDrops(RarityPresets[key])
end
function resetRarityDrops()
return presetRarityDrops('default')
end
[ENABLE]
[Disable]
</AssemblerScript>
<CheatEntries>
<CheatEntry>
<ID>13702</ID>
<Description>"Reset ()->"</Description>
<LastState/>
<Color>008000</Color>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">{$lua}
[ENABLE]
if syntaxcheck then return end
presetRarityDrops('default')
if type(mrAutoDisable) == 'function' then
mrAutoDisable(memrec.ID)
end
[Disable]
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>13703</ID>
<Description>"Preset: Legendary 10x ()->"</Description>
<LastState/>
<Color>008000</Color>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">{$lua}
[ENABLE]
if syntaxcheck then return end
presetRarityDrops('Legendary 10x')
if type(mrAutoDisable) == 'function' then
mrAutoDisable(memrec.ID)
end
[Disable]
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>13704</ID>
<Description>"Preset: Legendary Only ()->"</Description>
<LastState/>
<Color>008000</Color>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">{$lua}
[ENABLE]
if syntaxcheck then return end
presetRarityDrops('Legendary Only')
if type(mrAutoDisable) == 'function' then
mrAutoDisable(memrec.ID)
end
[Disable]
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>13705</ID>
<Description>"Preset: Purple Only ()->"</Description>
<LastState/>
<Color>008000</Color>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">{$lua}
[ENABLE]
if syntaxcheck then return end
presetRarityDrops('Purple Only')
if type(mrAutoDisable) == 'function' then
mrAutoDisable(memrec.ID)
end
[Disable]
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>13706</ID>
<Description>"DropWeights { lampuiho }"</Description>
<LastState Value="" RealAddress="00000000"/>
<GroupHeader>1</GroupHeader>
<CheatEntries>
<CheatEntry>
<ID>13707</ID>
<Description>"VeryCommon"</Description>
<LastState Value="0.00001525878906" RealAddress="343F0558"/>
<VariableType>Float</VariableType>
<Address>BorderlandsGOTY.exe+25AEDC8</Address>
<Offsets>
<Offset>78</Offset>
<Offset>8*159B7</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>13708</ID>
<Description>"VeryCommon_LowerPerPlayer"</Description>
<LastState Value="0.00001525878906" RealAddress="14B638D8"/>
<VariableType>Float</VariableType>
<Address>BorderlandsGOTY.exe+25AEDC8</Address>
<Offsets>
<Offset>78</Offset>
<Offset>8*16ADC</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>13709</ID>
<Description>"Common"</Description>
<LastState Value="0.00001525878906" RealAddress="14B63C18"/>
<VariableType>Float</VariableType>
<Address>BorderlandsGOTY.exe+25AEDC8</Address>
<Offsets>
<Offset>78</Offset>
<Offset>8*16ADF</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>13710</ID>
<Description>"Uncommon"</Description>
<LastState Value="0.00001525878906" RealAddress="343F03B8"/>
<VariableType>Float</VariableType>
<Address>BorderlandsGOTY.exe+25AEDC8</Address>
<Offsets>
<Offset>78</Offset>
<Offset>8*159B6</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>13711</ID>
<Description>"Uncommoner"</Description>
<LastState Value="0.00001525878906" RealAddress="343F0218"/>
<VariableType>Float</VariableType>
<Address>BorderlandsGOTY.exe+25AEDC8</Address>
<Offsets>
<Offset>78</Offset>
<Offset>8*159B5</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>13712</ID>
<Description>"Rare"</Description>
<LastState Value="0.00001525878906" RealAddress="343F06F8"/>
<VariableType>Float</VariableType>
<Address>BorderlandsGOTY.exe+25AEDC8</Address>
<Offsets>
<Offset>78</Offset>
<Offset>8*159BE</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>13713</ID>
<Description>"VeryRare"</Description>
<LastState Value="0.00001525878906" RealAddress="14B63DB8"/>
<VariableType>Float</VariableType>
<Address>BorderlandsGOTY.exe+25AEDC8</Address>
<Offsets>
<Offset>78</Offset>
<Offset>8*16AE0</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>13714</ID>
<Description>"Awesome_VeryCommon"</Description>
<LastState Value="0.00001525878906" RealAddress="14B63F58"/>
<VariableType>Float</VariableType>
<Address>BorderlandsGOTY.exe+25AEDC8</Address>
<Offsets>
<Offset>78</Offset>
<Offset>8*16AE1</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>13715</ID>
<Description>"Awesome_Common"</Description>
<LastState Value="0.00001525878906" RealAddress="14B640F8"/>
<VariableType>Float</VariableType>
<Address>BorderlandsGOTY.exe+25AEDC8</Address>
<Offsets>
<Offset>78</Offset>
<Offset>8*16AE2</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>13716</ID>
<Description>"Awesome_Uncommon"</Description>
<LastState Value="0.00001525878906" RealAddress="14B64298"/>
<VariableType>Float</VariableType>
<Address>BorderlandsGOTY.exe+25AEDC8</Address>
<Offsets>
<Offset>78</Offset>
<Offset>8*16AE3</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>13717</ID>
<Description>"Awesome_Uncommoner"</Description>
<LastState Value="0.00001525878906" RealAddress="14B64438"/>
<VariableType>Float</VariableType>
<Address>BorderlandsGOTY.exe+25AEDC8</Address>
<Offsets>
<Offset>78</Offset>
<Offset>8*16AE4</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>13718</ID>
<Description>"Awesome_Rare"</Description>
<LastState Value="0.00001525878906" RealAddress="14B645D8"/>
<VariableType>Float</VariableType>
<Address>BorderlandsGOTY.exe+25AEDC8</Address>
<Offsets>
<Offset>78</Offset>
<Offset>8*16AE5</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>13719</ID>
<Description>"Awesome_VeryRare"</Description>
<LastState Value="0.00001525878906" RealAddress="14B64778"/>
<VariableType>Float</VariableType>
<Address>BorderlandsGOTY.exe+25AEDC8</Address>
<Offsets>
<Offset>78</Offset>
<Offset>8*16AE6</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>13720</ID>
<Description>"Awesome_Legendary"</Description>
<LastState Value="2" RealAddress="14B64918"/>
<VariableType>Float</VariableType>
<Address>BorderlandsGOTY.exe+25AEDC8</Address>
<Offsets>
<Offset>78</Offset>
<Offset>8*16AE7</Offset>
</Offsets>
</CheatEntry>
</CheatEntries>
</CheatEntry>
</CheatEntries>
</CheatEntry>
</CheatEntries>
</CheatTable>