FF6 Hacking
Hacking the Auction House - Printable Version

+- FF6 Hacking (https://www.ff6hacking.com/forums)
+-- Forum: Discussion Forums (https://www.ff6hacking.com/forums/forum-5.html)
+--- Forum: Magitek Research Facility (https://www.ff6hacking.com/forums/forum-9.html)
+--- Thread: Hacking the Auction House (/thread-1990.html)



Hacking the Auction House - gogo13 - 03-03-2013

I finally got my change to the Auction house to work. I first had to put in a change to the gold taking script, where it jumps to a new part of bank C0 and some code Drakkhen made for me was put in to determine if 65535 GP is being taken. If it is, the code multiplies the number and takes 9,900,900 GP instead. Then I took out the code for the 1/1200th Airship auction and replaced it with the Hero Ring auction code, and changed key parts of the code to make the auction for a Debilitator that eventually costs 9,900,900 GP. The only non-intuitive trick that I had to use here was that at the end, I replace the code that flags the event if you've already bought a hero ring (so you don't buy it again) with EA (disabling the code) and then put FE ("Return") at the end, however I had to put FE right before this flag code section, where all the auction events have completed anyways, and then just EA the rest of the space until the next auction item.

http://www.fileden.com/files/2011/1/28/3069210/FF6%20Auction%20House%20Editing.xlsx


RE: Hacking the Auction House - Angelo26 - 03-03-2013

Attachment link is broken for me?


RE: Hacking the Auction House - madsiur - 03-03-2013

Well done. I've read the thread on mnrogar forum and while event editing is more or less an easy task, depending on the amount of practice you have, the routine that takes more than 65535 Gp was really interesting me. I might actually use it someday, who knows...

So I'll post Drakkhen's function here, for anyone wanting to understand how this works. At that price, I hope the debiliator is worth having in your hack :P

Code:
Take XXXX amount of GP from party
(gen. act. 85)

...
C0/AD89: 4C XX YY      JMP $New Function
...

New Function -- Place somewhere in bank C0

C0/YYXX: A5 EB         LDA $EB
C0/####: 1A            INC
C0/####: F0 06         BEQ $####
C0/####: AD 60 18      LDA $1860
C0/####: 4C 8C AD      JMP $AD8C
C0/####: AD 60 18      LDA $1860
C0/####: 38            SEC
C0/####: E9 64 13      SBC #$1364
C0/####: 85 2A         STA $2A
C0/####: 7B            TDC
C0/####: E2 20         SEP #$20
C0/####: AD 62 18      LDA $1862
C0/####: E9 97         SBC #$97
C0/####: 85 2C         STA $2C
C0/####: C9 40         CMP #$40
C0/####: 90 03         BCC $????
C0/####: 4C 9F AD      JMP $AD9F
C0/####: 4C A9 AD      JMP $ADA9



RE: Hacking the Auction House - Synchysi - 03-03-2013

(03-03-2013, 02:25 PM)Angelo Wrote: Attachment link is broken for me?

Spaces don't work too well in URLs; using underscores in the original filename or an HTML link tag would have bypassed this problem.

In the meantime, this link should work: http://www.fileden.com/files/2011/1/28/3069210//FF6%20Auction%20House%20Editing.xlsx