Users browsing this thread: 1 Guest(s)
Request: No items lost at Colosseum
(09-25-2018, 04:42 PM)Lightning Wrote: Can Madsiur's patch be tweaked to only prevent item loss when the player loses a match? If you win, your current item should still be traded for the new one.
You'd have to remove the item bet when you add the new item to inventory. This is done at $C25D79. I don't have time to do this now unfortunately.
Edit: I've tried putting the $C2499E code at $C25D79 but changes are not reflected in inventory window afterward. I'm not really sure what the problem is..
Edit2: Well I got it working! You'll need to change that org $C26469 to a spot where you have enough free bytes since a previous hack was using that space iirc.
Code:
hirom
org $C25D79
jsr free_space
nop
nop
org $C2499E
bra jump
org $C249C4
jump:
org $C26469
free_space:
tdc
lda $0205
rep #$10
phx
ldx #$0000
loop:
cmp $2686,X
beq found
inx
inx
inx
inx
inx
cpx #$0500
bne loop
found:
dec $2689,X
lda $2689,X
bne exit
lda #$FF
sta $2686,X
exit:
plx
sep #$10
lda #$01
sta $2E75
rts
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)