-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMagicEditor.CT
931 lines (911 loc) · 30.5 KB
/
MagicEditor.CT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="26">
<CheatEntries>
<CheatEntry>
<ID>90767</ID>
<Description>"MagicParam"</Description>
<VariableType>String</VariableType>
<Length>32</Length>
<Unicode>0</Unicode>
<CodePage>0</CodePage>
<ZeroTerminate>1</ZeroTerminate>
<Address>BaseP</Address>
<Offsets>
<Offset>c</Offset>
<Offset>20</Offset>
<Offset>204</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>89915</ID>
<Description>"Open"</Description>
<Options moHideChildren="1"/>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>[ENABLE]
globalalloc(selected_attack,4)
globalalloc(selected_attack_var_name,100)
aobscan(finditP,A1????????39A8400400000F)
label(BaseP)
registersymbol(BaseP)
[finditP+1]:
BaseP:
[DISABLE]
dealloc(selected_attack_var_name)
dealloc(selected_attack)
unregistersymbol(BaseP)
</AssemblerScript>
<CheatEntries>
<CheatEntry>
<ID>89917</ID>
<Description>"Set the value to the magic name, and check the box"</Description>
<LastState Value="" RealAddress="00000000"/>
<GroupHeader>1</GroupHeader>
<CheatEntries>
<CheatEntry>
<ID>89916</ID>
<Description>"Generate CE Code"</Description>
<VariableType>String</VariableType>
<Length>100</Length>
<Unicode>0</Unicode>
<CodePage>0</CodePage>
<ZeroTerminate>1</ZeroTerminate>
<Address>selected_attack_var_name</Address>
</CheatEntry>
</CheatEntries>
</CheatEntry>
<CheatEntry>
<ID>10322</ID>
<Description>"Select Magic and check the box"</Description>
<DropDownList DescriptionOnly="1" DisplayValueAsItem="1">3000:Arrow of Seoul
3010:Arrow of strong Seoul
3020:Futoshiya of Seoul
3030:Futoshiya of strong Seoul
3040:Mass of Seoul to be tracked
3050:Crystalline mass of Seoul to be tracked
3060:Spear of Seoul
3070:Crystal spear of Seoul
3100:Magic weapon enhancement 1
3110:Magic weapon enhancement 2
3120:Magic weapon enhancement 3
3300:Strengthening shield 1
3310:Strengthening shield 2
3400:Invisible Weapon
3410:Invisible body
3500:Light
3510:Silence
3520:Sound
3530:Repair
3540:Falling control
3550:Mimicry
3600:Dispelled
3610:Healing
3700:Crystal beam
3710:Balls of [ DLC ] darkness
3720:Splash of [ DLC ] darkness
3730:Fog of darkness [ DLC ]
3740:[ DLC ] those who follow
4000:Fireball
4010:Fireball 2
4020:Fireball 3
4030:Fire Storm
4040:Fire Storm 2
4050:Flame radiation
4060:Whip of flame
4100:Proximity flame 1
4110:Proximity flame 2
4200:Fog of poison
4210:Mist of deadly poison
4220:Fog of acid
4300:Body of iron
4310:Veil of water
4360:Fascination
4400:The power of madness
4500:Chaos _ Fireball
4510:Chaos _ Firestorm
4520:Whip of flame chaos
4530:[ DLC ] black flames
5000:Recovery 1
5010:Recover for two
5020:Recovery 3
5030:4 recovery
5040:Regenerating
5050:Great regen
5100:Summon
5110:Summon 2
5200:Cut once revival
5210:Return
5300:Force 1
5310:Force 2
5320:Force 3
5400:Hint
5500:Thunder 1
5510:Thunder 2
5520:Lightning 3
5600:Magic protection 1
5610:Magic protection 2
5700:Retributive justice
5710:Retributive justice
5800:Gravity
5810:Anti- magic area
5900:Sword of the sun
5910:Sword of moonlight
13000:Arrow of Seoul
13010:Arrow of strong Seoul
13020:Futoshiya of Seoul
13030:Futoshiya of strong Seoul
13040:Mass of Seoul to be tracked
13050:Crystalline mass of Seoul to be tracked
13060:Spear of Seoul
13070:Crystal spear of Seoul
13100:Magic weapon enhancement 1
13110:Magic weapon enhancement 2
13120:Magic weapon enhancement 3
13300:Strengthening shield 1
13310:Strengthening shield 2
13400:Invisible Weapon
13410:Invisible body
13500:Light
13510:Silence
13520:Sound
13530:Repair
13540:Falling control
13550:Mimicry
13600:Dispelled
13610:Healing
13700:Crystal beam
14000:Fireball
14010:Fireball 2
14020:Fireball 3
14030:Fire Storm
14040:Fire Storm 2
14050:Flame radiation
14060:Whip of flame
14100:Proximity flame 1
14110:Proximity flame 2
14200:Fog of poison
14210:Mist of deadly poison
14220:Fog of acid
14300:Body of iron
14310:Veil of water
14360:Fascination
14400:The power of madness
14500:Chaos _ Fireball
14510:Chaos _ Firestorm
14520:Whip of flame chaos
15000:Recovery 1
15010:Recover for two
15020:Recovery 3
15030:4 recovery
15040:Regenerating
15050:Great regen
15100:Summon
15110:Summon 2
15200:Cut once revival
15210:Return
15300:Force 1
15310:Force 2
15320:Force 3
15400:Hint
15500:Thunder 1
15510:Thunder 2
15520:Lightning 3
15600:Magic protection 1
15610:Magic protection 2
15700:Retributive justice
15710:Retributive justice
15800:Gravity
15810:Anti- magic area
15900:Sword of the sun
15910:Sword of moonlight
</DropDownList>
<VariableType>4 Bytes</VariableType>
<Address>selected_attack</Address>
</CheatEntry>
<CheatEntry>
<ID>89788</ID>
<Description>"Magic Base"</Description>
<VariableType>4 Bytes</VariableType>
<Address>4b05cac</Address>
<CheatEntries>
<CheatEntry>
<ID>82808</ID>
<Description>"Yes/No Dialog Box"</Description>
<ShowAsSigned>1</ShowAsSigned>
<VariableType>Byte</VariableType>
<Address>+0</Address>
</CheatEntry>
<CheatEntry>
<ID>82792</ID>
<Description>"Limit Cancel SpEffect ID"</Description>
<ShowAsSigned>1</ShowAsSigned>
<VariableType>4 Bytes</VariableType>
<Address>+4</Address>
</CheatEntry>
<CheatEntry>
<ID>82802</ID>
<Description>"Sort ID"</Description>
<ShowAsSigned>1</ShowAsSigned>
<VariableType>2 Bytes</VariableType>
<Address>+8</Address>
</CheatEntry>
<CheatEntry>
<ID>82781</ID>
<Description>"Reference ID"</Description>
<ShowAsSigned>1</ShowAsSigned>
<VariableType>2 Bytes</VariableType>
<Address>+A</Address>
</CheatEntry>
<CheatEntry>
<ID>82782</ID>
<Description>"FP Cost"</Description>
<ShowAsSigned>1</ShowAsSigned>
<VariableType>2 Bytes</VariableType>
<Address>+C</Address>
</CheatEntry>
<CheatEntry>
<ID>82784</ID>
<Description>"Stamina Cost"</Description>
<ShowAsSigned>1</ShowAsSigned>
<VariableType>2 Bytes</VariableType>
<Address>+E</Address>
</CheatEntry>
<CheatEntry>
<ID>82795</ID>
<Description>"Icon ID"</Description>
<ShowAsSigned>1</ShowAsSigned>
<VariableType>2 Bytes</VariableType>
<Address>+10</Address>
</CheatEntry>
<CheatEntry>
<ID>82796</ID>
<Description>"Behavior ID"</Description>
<ShowAsSigned>1</ShowAsSigned>
<VariableType>2 Bytes</VariableType>
<Address>+12</Address>
</CheatEntry>
<CheatEntry>
<ID>82803</ID>
<Description>"Material Item ID"</Description>
<ShowAsSigned>1</ShowAsSigned>
<VariableType>2 Bytes</VariableType>
<Address>+14</Address>
</CheatEntry>
<CheatEntry>
<ID>82812</ID>
<Description>"Replace Magic ID"</Description>
<ShowAsSigned>1</ShowAsSigned>
<VariableType>2 Bytes</VariableType>
<Address>+16</Address>
</CheatEntry>
<CheatEntry>
<ID>82783</ID>
<Description>"Number of Casts"</Description>
<ShowAsSigned>1</ShowAsSigned>
<VariableType>2 Bytes</VariableType>
<Address>+18</Address>
</CheatEntry>
<CheatEntry>
<ID>82785</ID>
<Description>"Humanity"</Description>
<VariableType>Byte</VariableType>
<Address>+1A</Address>
</CheatEntry>
<CheatEntry>
<ID>82779</ID>
<Description>"Over Dexterity"</Description>
<VariableType>Byte</VariableType>
<Address>+1B</Address>
</CheatEntry>
<CheatEntry>
<ID>82786</ID>
<Description>"SFX Variation"</Description>
<VariableType>Byte</VariableType>
<Address>+1C</Address>
</CheatEntry>
<CheatEntry>
<ID>82797</ID>
<Description>"Slots Used"</Description>
<VariableType>Byte</VariableType>
<Address>+1D</Address>
</CheatEntry>
<CheatEntry>
<ID>82798</ID>
<Description>"Required INT"</Description>
<VariableType>Byte</VariableType>
<Address>+1E</Address>
</CheatEntry>
<CheatEntry>
<ID>82799</ID>
<Description>"Required FAI"</Description>
<VariableType>Byte</VariableType>
<Address>+1F</Address>
</CheatEntry>
<CheatEntry>
<ID>82789</ID>
<Description>"Dexterity Minimum Cast Speed Scaling"</Description>
<VariableType>Byte</VariableType>
<Address>+20</Address>
</CheatEntry>
<CheatEntry>
<ID>82790</ID>
<Description>"Dexterity Maximum Cast Speed Scaling"</Description>
<VariableType>Byte</VariableType>
<Address>+21</Address>
</CheatEntry>
<CheatEntry>
<ID>82778</ID>
<Description>"EzState Behavior Type"</Description>
<VariableType>Byte</VariableType>
<Address>+22</Address>
</CheatEntry>
<CheatEntry>
<ID>82780</ID>
<Description>"Reference Category"</Description>
<VariableType>Byte</VariableType>
<Address>+23</Address>
</CheatEntry>
<CheatEntry>
<ID>82787</ID>
<Description>"SpEffect Category"</Description>
<VariableType>Byte</VariableType>
<Address>+24</Address>
</CheatEntry>
<CheatEntry>
<ID>82788</ID>
<Description>"Reference Type"</Description>
<VariableType>Byte</VariableType>
<Address>+25</Address>
</CheatEntry>
<CheatEntry>
<ID>82809</ID>
<Description>"Menu Type"</Description>
<VariableType>Byte</VariableType>
<Address>+26</Address>
</CheatEntry>
<CheatEntry>
<ID>82811</ID>
<Description>"Has SpEffect Type"</Description>
<VariableType>Byte</VariableType>
<Address>+27</Address>
</CheatEntry>
<CheatEntry>
<ID>82813</ID>
<Description>"Replace Category"</Description>
<VariableType>Byte</VariableType>
<Address>+28</Address>
</CheatEntry>
<CheatEntry>
<ID>82791</ID>
<Description>"Use Limit Category"</Description>
<VariableType>Byte</VariableType>
<Address>+29</Address>
</CheatEntry>
<CheatEntry>
<ID>82815</ID>
<Description>"Vow Type 0"</Description>
<VariableType>Binary</VariableType>
<BitStart>0</BitStart>
<BitLength>1</BitLength>
<ShowAsBinary>0</ShowAsBinary>
<Address>+2A</Address>
</CheatEntry>
<CheatEntry>
<ID>82816</ID>
<Description>"Vow Type 1"</Description>
<VariableType>Binary</VariableType>
<BitStart>1</BitStart>
<BitLength>1</BitLength>
<ShowAsBinary>0</ShowAsBinary>
<Address>+2A</Address>
</CheatEntry>
<CheatEntry>
<ID>82817</ID>
<Description>"Vow Type 2"</Description>
<VariableType>Binary</VariableType>
<BitStart>2</BitStart>
<BitLength>1</BitLength>
<ShowAsBinary>0</ShowAsBinary>
<Address>+2A</Address>
</CheatEntry>
<CheatEntry>
<ID>82818</ID>
<Description>"Vow Type 3"</Description>
<VariableType>Binary</VariableType>
<BitStart>3</BitStart>
<BitLength>1</BitLength>
<ShowAsBinary>0</ShowAsBinary>
<Address>+2A</Address>
</CheatEntry>
<CheatEntry>
<ID>82819</ID>
<Description>"Vow Type 4"</Description>
<VariableType>Binary</VariableType>
<BitStart>4</BitStart>
<BitLength>1</BitLength>
<ShowAsBinary>0</ShowAsBinary>
<Address>+2A</Address>
</CheatEntry>
<CheatEntry>
<ID>82820</ID>
<Description>"Vow Type 5"</Description>
<VariableType>Binary</VariableType>
<BitStart>5</BitStart>
<BitLength>1</BitLength>
<ShowAsBinary>0</ShowAsBinary>
<Address>+2A</Address>
</CheatEntry>
<CheatEntry>
<ID>82821</ID>
<Description>"Vow Type 6"</Description>
<VariableType>Binary</VariableType>
<BitStart>6</BitStart>
<BitLength>1</BitLength>
<ShowAsBinary>0</ShowAsBinary>
<Address>+2A</Address>
</CheatEntry>
<CheatEntry>
<ID>82822</ID>
<Description>"Vow Type 7"</Description>
<VariableType>Binary</VariableType>
<BitStart>7</BitStart>
<BitLength>1</BitLength>
<ShowAsBinary>0</ShowAsBinary>
<Address>+2A</Address>
</CheatEntry>
<CheatEntry>
<ID>82793</ID>
<Description>"Enable Multi"</Description>
<VariableType>Binary</VariableType>
<BitStart>0</BitStart>
<BitLength>1</BitLength>
<ShowAsBinary>0</ShowAsBinary>
<Address>+2B</Address>
</CheatEntry>
<CheatEntry>
<ID>82794</ID>
<Description>"Enable Mult Only"</Description>
<VariableType>Binary</VariableType>
<BitStart>1</BitStart>
<BitLength>1</BitLength>
<ShowAsBinary>0</ShowAsBinary>
<Address>+2B</Address>
</CheatEntry>
<CheatEntry>
<ID>82800</ID>
<Description>"Is Weapon Enchant"</Description>
<VariableType>Binary</VariableType>
<BitStart>2</BitStart>
<BitLength>1</BitLength>
<ShowAsBinary>0</ShowAsBinary>
<Address>+2B</Address>
</CheatEntry>
<CheatEntry>
<ID>82801</ID>
<Description>"Is Shield Enchant"</Description>
<VariableType>Binary</VariableType>
<BitStart>3</BitStart>
<BitLength>1</BitLength>
<ShowAsBinary>0</ShowAsBinary>
<Address>+2B</Address>
</CheatEntry>
<CheatEntry>
<ID>82804</ID>
<Description>"Enable Human"</Description>
<VariableType>Binary</VariableType>
<BitStart>4</BitStart>
<BitLength>1</BitLength>
<ShowAsBinary>0</ShowAsBinary>
<Address>+2B</Address>
</CheatEntry>
<CheatEntry>
<ID>82805</ID>
<Description>"Enable Dragon Phantom"</Description>
<VariableType>Binary</VariableType>
<BitStart>5</BitStart>
<BitLength>1</BitLength>
<ShowAsBinary>0</ShowAsBinary>
<Address>+2B</Address>
</CheatEntry>
<CheatEntry>
<ID>82806</ID>
<Description>"Enable White Phantom"</Description>
<VariableType>Binary</VariableType>
<BitStart>6</BitStart>
<BitLength>1</BitLength>
<ShowAsBinary>0</ShowAsBinary>
<Address>+2B</Address>
</CheatEntry>
<CheatEntry>
<ID>82807</ID>
<Description>"Enable Black Phantom"</Description>
<VariableType>Binary</VariableType>
<BitStart>7</BitStart>
<BitLength>1</BitLength>
<ShowAsBinary>0</ShowAsBinary>
<Address>+2B</Address>
</CheatEntry>
<CheatEntry>
<ID>82810</ID>
<Description>"Disable Offline"</Description>
<VariableType>Binary</VariableType>
<BitStart>0</BitStart>
<BitLength>1</BitLength>
<ShowAsBinary>0</ShowAsBinary>
<Address>+2C</Address>
</CheatEntry>
<CheatEntry>
<ID>82814</ID>
<Description>"Uses Miracle Resonance"</Description>
<VariableType>Binary</VariableType>
<BitStart>1</BitStart>
<BitLength>1</BitLength>
<ShowAsBinary>0</ShowAsBinary>
<Address>+2C</Address>
</CheatEntry>
<CheatEntry>
<ID>82823</ID>
<Description>"Vow Type 8"</Description>
<VariableType>Binary</VariableType>
<BitStart>0</BitStart>
<BitLength>1</BitLength>
<ShowAsBinary>0</ShowAsBinary>
<Address>+2D</Address>
</CheatEntry>
<CheatEntry>
<ID>82824</ID>
<Description>"Vow Type 9"</Description>
<VariableType>Binary</VariableType>
<BitStart>1</BitStart>
<BitLength>1</BitLength>
<ShowAsBinary>0</ShowAsBinary>
<Address>+2D</Address>
</CheatEntry>
<CheatEntry>
<ID>82825</ID>
<Description>"Vow Type 10"</Description>
<VariableType>Binary</VariableType>
<BitStart>2</BitStart>
<BitLength>1</BitLength>
<ShowAsBinary>0</ShowAsBinary>
<Address>+2D</Address>
</CheatEntry>
<CheatEntry>
<ID>82826</ID>
<Description>"Vow Type 11"</Description>
<VariableType>Binary</VariableType>
<BitStart>3</BitStart>
<BitLength>1</BitLength>
<ShowAsBinary>0</ShowAsBinary>
<Address>+2D</Address>
</CheatEntry>
<CheatEntry>
<ID>82827</ID>
<Description>"Vow Type 12"</Description>
<VariableType>Binary</VariableType>
<BitStart>4</BitStart>
<BitLength>1</BitLength>
<ShowAsBinary>0</ShowAsBinary>
<Address>+2D</Address>
</CheatEntry>
<CheatEntry>
<ID>82828</ID>
<Description>"Vow Type 13"</Description>
<VariableType>Binary</VariableType>
<BitStart>5</BitStart>
<BitLength>1</BitLength>
<ShowAsBinary>0</ShowAsBinary>
<Address>+2D</Address>
</CheatEntry>
<CheatEntry>
<ID>82829</ID>
<Description>"Vow Type 14"</Description>
<VariableType>Binary</VariableType>
<BitStart>6</BitStart>
<BitLength>1</BitLength>
<ShowAsBinary>0</ShowAsBinary>
<Address>+2D</Address>
</CheatEntry>
<CheatEntry>
<ID>82830</ID>
<Description>"Vow Type 15"</Description>
<VariableType>Binary</VariableType>
<BitStart>7</BitStart>
<BitLength>1</BitLength>
<ShowAsBinary>0</ShowAsBinary>
<Address>+2D</Address>
</CheatEntry>
</CheatEntries>
</CheatEntry>
</CheatEntries>
</CheatEntry>
</CheatEntries>
<UserdefinedSymbols>
<SymbolEntry>
<Name>TestCode</Name>
<Address>0040F578</Address>
</SymbolEntry>
<SymbolEntry>
<Name>BaseF</Name>
<Address>0137A620</Address>
</SymbolEntry>
<SymbolEntry>
<Name>mypointer</Name>
<Address>0CB20188</Address>
</SymbolEntry>
<SymbolEntry>
<Name>newmem2</Name>
<Address>18EF0000</Address>
</SymbolEntry>
<SymbolEntry>
<Name>newmem1</Name>
<Address>18B80020</Address>
</SymbolEntry>
<SymbolEntry>
<Name>newmem9</Name>
<Address>19400000</Address>
</SymbolEntry>
<SymbolEntry>
<Name>AttackAddr</Name>
<Address>19400000</Address>
</SymbolEntry>
<SymbolEntry>
<Name>addressG</Name>
<Address>18B80000</Address>
</SymbolEntry>
<SymbolEntry>
<Name>GoodsStructure</Name>
<Address>05ABD570</Address>
</SymbolEntry>
<SymbolEntry>
<Name>addressE</Name>
<Address>18B80000</Address>
</SymbolEntry>
<SymbolEntry>
<Name>address</Name>
<Address>18B80020</Address>
</SymbolEntry>
<SymbolEntry>
<Name>EscapeAddressToUse</Name>
<Address>18EF0000</Address>
</SymbolEntry>
<SymbolEntry>
<Name>Effect</Name>
<Address>00DBE5C0</Address>
</SymbolEntry>
<SymbolEntry>
<Name>Goods</Name>
<Address>004F6097</Address>
</SymbolEntry>
<SymbolEntry>
<Name>Bullet</Name>
<Address>01006196</Address>
</SymbolEntry>
<SymbolEntry>
<Name>Attack</Name>
<Address>00E485DD</Address>
</SymbolEntry>
<SymbolEntry>
<Name>World</Name>
<Address>00D38CF3</Address>
</SymbolEntry>
<SymbolEntry>
<Name>Move0</Name>
<Address>00FCAD71</Address>
</SymbolEntry>
<SymbolEntry>
<Name>Move</Name>
<Address>00FCAD76</Address>
</SymbolEntry>
<SymbolEntry>
<Name>ChrIni</Name>
<Address>00D1F982</Address>
</SymbolEntry>
<SymbolEntry>
<Name>Anim</Name>
<Address>007403B0</Address>
</SymbolEntry>
<SymbolEntry>
<Name>lastdroppeditem</Name>
<Address>00DC4AAA</Address>
</SymbolEntry>
<SymbolEntry>
<Name>CHRDBGALL</Name>
<Address>013784D2</Address>
</SymbolEntry>
<SymbolEntry>
<Name>CHRDBGALL2</Name>
<Address>013784D3</Address>
</SymbolEntry>
<SymbolEntry>
<Name>CHRDBGALL3</Name>
<Address>013784E9</Address>
</SymbolEntry>
<SymbolEntry>
<Name>CHRDBGALL4</Name>
<Address>013784EA</Address>
</SymbolEntry>
<SymbolEntry>
<Name>CHRDBGALL5</Name>
<Address>013784EB</Address>
</SymbolEntry>
<SymbolEntry>
<Name>CHRDBGALL6</Name>
<Address>013784EC</Address>
</SymbolEntry>
<SymbolEntry>
<Name>CHRDBGALL7</Name>
<Address>013784ED</Address>
</SymbolEntry>
<SymbolEntry>
<Name>CHRDBGALL8</Name>
<Address>013784EE</Address>
</SymbolEntry>
<SymbolEntry>
<Name>CHRDBGALL9</Name>
<Address>013784E4</Address>
</SymbolEntry>
<SymbolEntry>
<Name>CHRDBGALL0</Name>
<Address>013784E5</Address>
</SymbolEntry>
<SymbolEntry>
<Name>CHRDBGALL11</Name>
<Address>013784E6</Address>
</SymbolEntry>
<SymbolEntry>
<Name>CHRDBGALL12</Name>
<Address>01376EE7</Address>
</SymbolEntry>
<SymbolEntry>
<Name>CHRDBGALL13</Name>
<Address>013784E7</Address>
</SymbolEntry>
<SymbolEntry>
<Name>CHRDBGALL14</Name>
<Address>013784E8</Address>
</SymbolEntry>
<SymbolEntry>
<Name>GameFlagData</Name>
<Address>1532001D</Address>
</SymbolEntry>
<SymbolEntry>
<Name>GameFlagAOB</Name>
<Address>00D38C43</Address>
</SymbolEntry>
<SymbolEntry>
<Name>BaseA</Name>
<Address>012E29E8</Address>
</SymbolEntry>
<SymbolEntry>
<Name>BaseB</Name>
<Address>01378700</Address>
</SymbolEntry>
<SymbolEntry>
<Name>BaseC</Name>
<Address>013784A0</Address>
</SymbolEntry>
<SymbolEntry>
<Name>BaseD</Name>
<Address>0137855C</Address>
</SymbolEntry>
<SymbolEntry>
<Name>BaseE</Name>
<Address>0137E204</Address>
</SymbolEntry>
<SymbolEntry>
<Name>BaseX</Name>
<Address>0137D644</Address>
</SymbolEntry>
<SymbolEntry>
<Name>BaseZ</Name>
<Address>0137D648</Address>
</SymbolEntry>
<SymbolEntry>
<Name>BaseL</Name>
<Address>0137D6C8</Address>
</SymbolEntry>
<SymbolEntry>
<Name>NewKnockBackMode</Name>
<Address>0137D648</Address>
</SymbolEntry>
<SymbolEntry>
<Name>selected_weapon</Name>
<Address>1BE90000</Address>
</SymbolEntry>
<SymbolEntry>
<Name>selected_weapon_var_name</Name>
<Address>1BE90030</Address>
</SymbolEntry>
<SymbolEntry>
<Name>selected_attack</Name>
<Address>1CD70000</Address>
</SymbolEntry>
<SymbolEntry>
<Name>selected_attack_var_name</Name>
<Address>1CD70010</Address>
</SymbolEntry>
</UserdefinedSymbols>
<LuaScript>AddressList = getAddressList()
attack_base_entry = AddressList.getMemoryRecordByDescription('Magic Base')
AddressList.getMemoryRecordByDescription('Open').OnActivate = function(record, before, currentstate)
attack_param_pc_indicies_addr = AddressList.getMemoryRecordByDescription('MagicParam').getCurrentAddress()+0x24
return true
end
attack_paramentry_offset_hex = 0
attack_name = "UNKNOWNNAME"
--on attack selection, get address from aob, and save default atribs
selected_attack = AddressList.getMemoryRecordByDescription('Select Magic and check the box')
selected_attack.OnActivate = function(record, before, currentstate)
--get id from selected attack dropdown
weapon_id = readInteger(selected_attack.getCurrentAddress())
if weapon_id ~= nil then
--find in PARAM index array
for id_i=0,141 do
if readInteger(attack_param_pc_indicies_addr+id_i*12) == weapon_id then
attack_paramentry_offset = readInteger(attack_param_pc_indicies_addr+id_i*12+4)-0x30
break
end
end
--use offset to get entry
attack_paramentry_address = attack_param_pc_indicies_addr+attack_paramentry_offset
--set Attack Base address
attack_base_entry.setAddress(string.format("%x",attack_paramentry_address))
--save attack paramentry offset for use in CE
attack_paramentry_offset_hex = string.format("%x",attack_paramentry_offset)
--save the current (original) stats for the attack
table_string_disable = GenerateStringForAttack()
end
return false
end
table_string_disable = ""
function GenerateStringForAttack()
local table_string = "{$lua}\n" .. "AddressList = getAddressList()\n" .. "magic_param_pcbase_addr = AddressList.getMemoryRecordByDescription('MagicParam').getCurrentAddress()+0x24\n"
--iterate through all children of the attack base (all variables in the struct)
--genreate lua because its really the only way for code that required dynamic param bases
for i=0,26 do
--handle the type cases
if attack_base_entry[i].Type == vtSingle then
local read_bytes = readFloat(attack_base_entry[i].CurrentAddress)
table_string = table_string .. "writeFloat(magic_param_pcbase_addr+0x"..string.format("%x",tonumber(attack_paramentry_offset_hex,16)+tonumber(string.sub(attack_base_entry[i].Address,2),16)) .. ","
table_string = table_string .. string.format("%f) --%s\n", read_bytes, attack_base_entry[i].Description)
elseif attack_base_entry[i].Type == vtDword then
local read_bytes = readInteger(attack_base_entry[i].CurrentAddress)
table_string = table_string .. "writeInteger(magic_param_pcbase_addr+0x"..string.format("%x",tonumber(attack_paramentry_offset_hex,16)+tonumber(string.sub(attack_base_entry[i].Address,2),16)) .. ","
table_string = table_string .. string.format("%d) --%s\n", read_bytes, attack_base_entry[i].Description)
elseif attack_base_entry[i].Type == vtWord then
local read_bytes = readSmallInteger(attack_base_entry[i].CurrentAddress)
table_string = table_string .. "writeSmallInteger(magic_param_pcbase_addr+0x"..string.format("%x",tonumber(attack_paramentry_offset_hex,16)+tonumber(string.sub(attack_base_entry[i].Address,2),16)) .. ","
table_string = table_string .. string.format("%d) --%s\n", read_bytes, attack_base_entry[i].Description)
elseif attack_base_entry[i].Type == vtByte then
local read_bytes = readBytes(attack_base_entry[i].CurrentAddress, 1, true)
table_string = table_string .. "writeBytes(magic_param_pcbase_addr+0x"..string.format("%x",tonumber(attack_paramentry_offset_hex,16)+tonumber(string.sub(attack_base_entry[i].Address,2),16)) .. ","
table_string = table_string .. string.format("%d) --%s\n", read_bytes[1], attack_base_entry[i].Description)
else
print("WARNING unknown type at i="..i)
end
end
--count the flags bytes as a single 3 byte chunk
table_string = table_string .. "writeBytes(magic_param_pcbase_addr+0x"..string.format("%x",tonumber(attack_paramentry_offset_hex,16)+tonumber(string.sub(attack_base_entry[27].Address,2),16)) .. ","
local flag_bytes = readBytes(attack_base_entry[27].CurrentAddress, 3, true)
table_string = table_string .. string.format("%d, %d, %d) --flags\n", flag_bytes[1], flag_bytes[2], flag_bytes[3])
table_string = table_string .. "{$asm}\n"
return table_string
end
--after attack weapon atribs, user triggers the generation of the CE script generation for the changes
generate_code_entry = AddressList.getMemoryRecordByDescription('Generate CE Code')
generate_code_entry.OnActivate = function(record, before, currentstate)
local table_string = "[ENABLE]\n"..
GenerateStringForAttack() .. "\n" ..
"[DISABLE]\n" ..
table_string_disable
--get varable name for attack and fix up
local variable_name = readString(generate_code_entry.getCurrentAddress(), 100, false)
variable_name = variable_name:gsub(" ","_"):lower()
--insert variable name into table
table_string = table_string:gsub(attack_name,variable_name)
print(table_string)
return false
end
</LuaScript>
</CheatTable>