Pupsic-3D wrote: ↑Wed Aug 09, 2023 10:13 pm
BourbieSpeedrun wrote: ↑Wed Aug 09, 2023 10:07 pm
Slaggy wrote: ↑Wed Aug 09, 2023 9:52 pm
Thank you, had a brain derp with the search function but still haven't found much.
Did you find out how to get NPCs IDs ?
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