Users browsing this thread: 1 Guest(s)
Hacking the Auction House

#1
Posts: 10
Threads: 3
Thanks Received: 0
Thanks Given: 0
Joined: Oct 2011
Status
None
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/3...iting.xlsx
  Find
Quote  

#2
Posts: 831
Threads: 41
Thanks Received: 16
Thanks Given: 12
Joined: Nov 2009
Reputation: 18
Status
None
Attachment link is broken for me?
Quote  

#3
Posts: 3,970
Threads: 279
Thanks Received: 236
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
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
  Find
Quote  

#4
Posts: 290
Threads: 3
Thanks Received: 40
Thanks Given: 1
Joined: Apr 2012
Reputation: 9
Status
None
(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/3...iting.xlsx


GET A SILK BAG FROM THE GRAVEYARD DUCK TO LIVE LONGER.

Brave New World
  Find
Quote  



Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite