oilnarak01 wrote: ↑Thu Aug 10, 2023 8:12 am
Pupsic-3D wrote: ↑Wed Aug 09, 2023 10:13 pm
And what will the NPC call give you? Will they be your partners?
yes there're command in cheat engine that require npc id to make them join your party or follow you
[ENABLE]
{$lua}
if syntaxcheck then return end
local uuid = "S_DEN_CapturedGoblin_783d7572-a846-455f-b686-247a95263ebb"
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)
local cmdStr2 = getAddress("cmdStr2")
writeString(cmdStr2, player)
writeBytes(cmdStr2 + #player, 0)
executeCodeEx(0, nil, cmdCall)
PrepareCall("AddPartyFollower")
writePointer(cmdArgs + 0x18, cmdStr2)
writePointer(cmdArgs + 0x08, cmdStr1)
writeString(cmdStr1, uuid)
writeBytes(cmdStr1 + #uuid, 0)
executeCodeEx(0, nil, cmdCall)
local result = executeCodeEx(0, nil, cmdCall)
print(result == 1 and "success" or "failure")
{$asm}
assert(true)
[DISABLE]
like this