jojoz wrote: ↑Fri Aug 18, 2023 9:28 pm
hey guys, im trying to spawn in Karlach using this code
[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]
but i'm not entirely sure where to enter it and how to get it to actually function, whenever i would try to use it id be doing it through the lua script option and it wouldn't work at all. Any sort of help is appreciated