Zanzer wrote: ↑Sun Aug 13, 2023 11:14 pm
I rewrote a lot of the console commands so that the scripts can appear more streamlined.
Also added a new Weapon Enchantments section to the console to start apply stats to your gear.
Such as thrown weapons automatically returning to you.
Can you modify them like the ones you made in add boost weapon where its +5? sorry trying to figure out how you streamed lined it
[ENABLE]
{$lua}
if syntaxcheck then return end
local cmdCall = getAddress("cmdCall")
local cmdArgs = getAddress("cmdArgs")
local cmdStr1 = getAddress("cmdStr1")
local cmdStr2 = getAddress("cmdStr2")
PrepareCall("GetHostCharacter")
executeCodeEx(0, nil, cmdCall)
local player = readPointer(cmdArgs + 0x08)
player = readString(player, 256, false)
PrepareCall("GetEquippedWeapon")
writeString(cmdStr1, player)
writeBytes(cmdStr1 + #player, 0)
writePointer(cmdArgs + 0x08, cmdStr1)
writeQword(cmdArgs + 0x18, 0)
writeQword(cmdArgs + 0x28, 0)
executeCodeEx(0, nil, cmdCall)
local item = readPointer(cmdArgs + 0x18)
item = readString(item, 256, false)
writeString(cmdStr1, item)
writeBytes(cmdStr1 + #item, 0)
local boost = "WeaponEnchantment(5);WeaponProperty(Magical)"
--local boost = "UnlockSpell(Target_CreateWater_StaffOfRain)"
writeString(cmdStr2, boost)
writeBytes(cmdStr2 + #boost, 0)
PrepareCall("AddBoosts")
writePointer(cmdArgs + 0x08, cmdStr1)
writePointer(cmdArgs + 0x18, cmdStr2)
writeQword(cmdArgs + 0x28, 0)
writeQword(cmdArgs + 0x38, 0)
local result = executeCodeEx(0, nil, cmdCall)
print(result == 1 and "success" or "failure")
{$asm}
assert(true)
[DISABLE]