You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
basePointer=baseValue+0x1FC44E4# equivalent to the pointer FFX.exe+EA22A0
2224
-
basePointerAddress=process.read(basePointer)# pseudocode function to get the hex value from basePointer to figure out the address of the start of the actor array
2224
+
basePointer=baseValue+0x1FC44E4
2225
+
basePointerAddress=process.read(basePointer)
2225
2226
key=basePointerAddress+ (0x880*eggNum) +0x0C
2226
2227
retVal=float_from_integer(process.read(key))
2227
2228
#print("Egg ", eggNum," X value: ", retVal)
@@ -2231,8 +2232,8 @@ def eggY(eggNum):
2231
2232
globalprocess
2232
2233
globalbaseValue
2233
2234
eggNum+=23
2234
-
basePointer=baseValue+0x1FC44E4# equivalent to the pointer FFX.exe+EA22A0
2235
-
basePointerAddress=process.read(basePointer)# pseudocode function to get the hex value from basePointer to figure out the address of the start of the actor array
2235
+
basePointer=baseValue+0x1FC44E4
2236
+
basePointerAddress=process.read(basePointer)
2236
2237
key=basePointerAddress+ (0x880*eggNum) +0x14
2237
2238
retVal=float_from_integer(process.read(key))
2238
2239
#print("Egg ", eggNum," Y value: ", retVal)
@@ -2300,3 +2301,71 @@ def buildEggs():
2300
2301
forxinrange(10):
2301
2302
retArray[x] =egg(x)
2302
2303
returnretArray
2304
+
2305
+
deficeX(actor):
2306
+
globalprocess
2307
+
globalbaseValue
2308
+
offset=actor+7#Icicle 0 is actor 7 in the array, incremented for each additional icicle.
2309
+
2310
+
basePointer=baseValue+0x1fc44e4
2311
+
basePointerAddress=process.read(basePointer)
2312
+
key=basePointerAddress+ (0x880*offset) +0x0C
2313
+
retVal=float_from_integer(process.read(key))
2314
+
returnretVal
2315
+
2316
+
2317
+
deficeY(actor):
2318
+
globalprocess
2319
+
globalbaseValue
2320
+
offset=actor+7#Icicle 0 is actor 7 in the array, incremented for each additional icicle.
2321
+
2322
+
basePointer=baseValue+0x1fc44e4
2323
+
basePointerAddress=process.read(basePointer)
2324
+
key=basePointerAddress+ (0x880*offset) +0x14
2325
+
retVal=float_from_integer(process.read(key))
2326
+
returnretVal
2327
+
2328
+
defgetIceDistance(iceNum):
2329
+
globalprocess
2330
+
globalbaseValue
2331
+
basePointer=baseValue+0xF270B8
2332
+
basePointerAddress=process.read(basePointer)
2333
+
key=basePointerAddress+0x1C0CC+ (0x40*iceNum)
2334
+
retVal=float_from_integer(process.read(key))
2335
+
returnretVal
2336
+
2337
+
defgetIceLife(iceNum):
2338
+
globalprocess
2339
+
globalbaseValue
2340
+
basePointer=baseValue+0xF270B8
2341
+
basePointerAddress=process.read(basePointer)
2342
+
key=basePointerAddress+0x1C0CC+ (0x40*iceNum) +4
2343
+
retVal=process.readBytes(key,1)
2344
+
returnretVal
2345
+
2346
+
2347
+
classicicle:
2348
+
def__init__(self, icenum):
2349
+
self.num=icenum
2350
+
self.x=iceX(self.num)
2351
+
self.y=iceY(self.num)
2352
+
#self.distance = getIceDistance(self.num)
2353
+
#self.iceLife = getEggLife(icenum)
2354
+
#self.eggPicked = getEggPicked(icenum)
2355
+
2356
+
#if self.distance != 0: #Either we're in battle or the icicle is not active.
0 commit comments