# Glitch City Laboratories Archives

Glitch City Laboratories closed on 1 September 2020 (announcement). This is an archived copy of a thread from Glitch City Laboratories Forums.

You can join Glitch City Research Institute to ask questions or discuss current developments.

You may also download the archive of this forum in .tar.gz, .sql.gz, or .sqlite.gz formats.

## Arbitrary Code Execution Discussion

### Getting money/Game Corner coins with 8F - Page 1

Previous Page

- 1

Next Page

#### Getting money/Game Corner coins with 8F

Posted by: xtreme713ify
Date: 2016-10-26 05:27:26
This shouldn't be too tall of an order, right?

#### Re: Getting money/Game Corner coins with 8F

Posted by: ISSOtm
Date: 2016-10-26 07:40:02
Really it's not. You can use many, many setups.
I did not test those, so they can accidentally format your root partition.
(Nah jk, but if they crash, come back and shoot me in the face >.>)
I always like to save before using 8F ^^
`
8F
Item x[qty]
Thunderstone x71
TM11 x34
TM01 x[qty] / Poké Ball x201
; code from 3rd item
ld hl, $D347 ; wPlayerMoney (https://github.com/pret/pokered/blob/master/wram.asm#L2355)
ldi (hl), a
ret
; or
inc b ; Poké Ball
ret
`
This will set two of your money's digits to 63 (either the first two or the last two, I don't remember).
You can also try it with 72 or 73 Thunderstones, that'll change your monies by different amounts.
Alternate setups :
`
8F
Item x[qty]
X Accuracy x71
Water Stone x201
OR
Water Stone x03
TM01 x[qty] / Poké Ball x201
`

`
8F
Item x[qty]
Thunderstone x71
TM11 x34
Water Stone x34
TM01 x[qty] / Poké Ball x201
; code
ld hl, $D347 ; wPlayerMonies this time :P
ldi (hl), a
ldi (hl), a
ldi (hl), a
ret
; or
inc b
ret
`
That'll set you money to the constant amount 636363.
Don'tcha like it ? :D
Alternative :
`
8F
Item x[qty]
X Accuracy x71
Poké / Super Ball x34
Water Stone x34
TM01 x[qty] / Poké / Super Ball x201
`

`
8F
Item x[qty]
Thunderstone x71
TM11 x03
TM06 x54
Poké / Super Ball x34
Water Stone x34
TM01 x[qty] / Poké / Super Ball x201
; code
ld hl, $D347
dec b
adc a, $36 ; a = a ($63) + 54 ($36) + carry (0) = $99
inc / dec b
ldi (hl), a
ldi (hl), a
ldi (hl), a
ret
; OR
inc / dec b
ret
`
That should give you 999999 money.
Still can't afford that bike :(
Alternate setup :
`
8F
Item x[qty]
X Accuracy x71
TM06 x54
(from here, same as previously)
(and yep, too lazy to copy/paste)
`

#### Re: Getting money/Game Corner coins with 8F

Posted by: xtreme713ify
Date: 2016-10-26 12:38:20
Can you do one for Game Corner coins too?

#### Re: Getting money/Game Corner coins with 8F

Posted by: Charmy
Date: 2016-10-26 13:59:27
I think yes. Even though I couldn't find the address on the Data Crystal's R\B RAM map, I know that it's somewhere in the RAM.
It's right here if you want it.
You can, however change the prizes, but you would need to use the magic 8F while on the prize menu.

#### Re: Getting money/Game Corner coins with 8F

Posted by: ISSOtm
Date: 2016-10-27 07:19:22

> I think yes. Even though I couldn't find the address on the Data Crystal's R\B RAM map, I know that it's somewhere in the RAM.
> It's right here if you want it.
> You can, however change the prizes, but you would need to use the magic 8F while on the prize menu.

You didn't look very far :P
Anyways, the setups are pretty much the same.
`
8F
Item x[qty]
Thunderstone x164
TM13 x34
TM01 x[qty] / Poké Ball x201
; code from 3rd item
ld hl, $D5A4 ; wPlayerCoins (https://github.com/pret/pokered/blob/master/wram.asm#L2680)
ldi (hl), a
ret
; or
inc b ; Poké Ball
ret
`
This will set two of your coin's digits to 63 (either the first two or the last two, I don't remember).
You can also try it with 165 Thunderstones, that'll change your coinz by different amounts.
Alternate setups :
`
8F
Item x[qty]
X Accuracy x164
Protein x36
Water Stone x201
OR
Water Stone x03
TM01 x[qty] / Poké Ball x201
`

`
8F
Item x[qty]
Thunderstone x164
TM13 x34
Water Stone x201
OR
Water Stone x3
TM01 x[qty]
; code
ld hl, $D5A4 ; wPlayerCoinez this time :P
ldi (hl), a
ldi (hl), a
ret
; or
inc b
ret
`
That'll set your coins to the constant amount 6363.
Don'tcha like it ? :D
Alternative :
`
8F
Item x[qty]
X Accuracy x164
Protein x36
Water Stone x34
TM01 x[qty] / Poké / Super Ball x201
`

`
8F
Item x[qty]
Thunderstone x164
TM11 x03
TM06 x54
Water Stone x34
TM01 x[qty] / Poké / Super Ball x201
; code
ld hl, $D5A4
dec b
adc a, $36 ; a = a ($63) + 54 ($36) + carry (0) = $99
ldi (hl), a
ldi (hl), a
ret
; OR
inc / dec b
ret
`
That should give you 9999 coins.
Still can't afford that bike (although it's completely unrelated)
Alternate setup :
`
8F
Item x[qty]
X Accuracy x164
Protein x36
TM06 x54
(from here, same as previously)
(and yep, too lazy to copy/paste)
`

#### Re: Getting money/Game Corner coins with 8F

Posted by: Charmy
Date: 2016-10-27 07:22:04

> > I think yes. Even though I couldn't find the address on the Data Crystal's R\B RAM map, I know that it's somewhere in the RAM.
> > It's right here if you want it.
> > You can, however change the prizes, but you would need to use the magic 8F while on the prize menu.

> You didn't look very far :P

It's now confirmed that I'm blind.
Previous Page

- 1

Next Page