Example Scripts

Here is the script shown in the video for Ni no Kuni: Cross Worlds. The same concept will work for any game with a value you'd like to change via a multiplier.

[variables]
ptr=74EE4E0
movementSpeed=2.0
speedptr=7322B20
speedOffsets=0 110 98
speedIncrease=1.5
xoffsets=0 110 300 1f0
camerayawptr=73B9354
camerapitchptr=73B935C

[113]
keys=addr -a (VAR % ptr) -b -v msAddr -o 0 a0 288 18c
keys2=cmp -l (VAR % msAddr) -g 10000 -h|goto *
keys3=read -a (VAR % msAddr) -v currentMS -t float
keys4=eq -v prevMS -w (VAR % currentMS)|goto *
keys5=store -v origMS -w (VAR % currentMS)
keys6=mul -v currentMS -w (VAR % movementSpeed)
keys7=store -v prevMS -w (VAR % currentMS)
keys8=write -a (VAR % msAddr) -w (VAR % currentMS) -t float|dbg Writing MS (VAR % currentMS) to (VAR % msAddr)
keys9=sleep 100
endkeys=write -a (VAR % msAddr) -w (VAR % origMS) -t float|dbg Writing original MS (VAR % origMS) to (VAR % msAddr)
repeat=2


Here is an example of the "fly" hack command:

[114]
Retrieve player coordinate addresses
keys=addr -a (VAR % speedptr) -b -v xAddr -o (VAR % xoffsets)|store -v yAddr -w (VAR % xAddr)|store -v zAddr -w (VAR % xAddr)
Add 8 to get the Y address and 4 to get the Z address (this varies by game). The Y address should be your height (your up/down position).
keys2=add -v yAddr -h -w 8|add -v zAddr -h -w 4
Read camera yaw and pitch. In this particular game, the yaw and pitch were static addresses and did not require offsets.
keys3=read -a (VAR % camerayawptr) -t float -b -v yaw
keys4=read -a (VAR % camerapitchptr) -t float -b -v pitch
Perform the fly hack with a speed of 10. In this particular game, the camera yaw and pitch were in degrees.
keys5=fly -x (VAR % xAddr) -y (VAR % yAddr) -z (VAR % zAddr) -p (VAR % pitch) -cy (VAR % yaw) -d -s 10
repeat=1


Here is an example of how to parse a file. This works with a comma-delimited file, such as
LocationName,1000.0,500.0,250.0
LocationName2,2000.0,1000.0,500.0
LocationName3,3000.0,2000.0,1000.0
It will parse each line and place each comma-delimited string into separate variables. You might find this useful as a way to save teleport coordinates

[fReadTeleportFile]
keys=file -f Teleport.txt -r -v contents
keys2=store -v line -w 0
keys3=string -s -v contents
keys4=string -s -v contents_(VAR % line) -d ,
keys5=add -v line -w 1|cmp -l (VAR % line) -g (VAR % contents_SIZE)|goto 4

[113]
keys=call fReadTeleportFile
keys2=store -v line -w 0
keys3=eq -v contents_(VAR % line)_0 -w LocationName3|store -v teleX -w (VAR % contents_(VAR % line)_1)|store -v teleY -w (VAR % contents_(VAR % line)_2)|store -v teleZ -w (VAR % contents_(VAR % line)_3)|dbg Teleport location: (VAR % teleX), (VAR % teleY), (VAR % teleZ)|goto *
keys4=add -v line -w 1|cmp -l (VAR % line) -g (VAR % contents_SIZE)|goto 3
keys5=dbg Could not find teleport location
keys6=nop

Scroll to Top