Logan
[img]http://pldh.net/media/pokecons_action/403.gif
- 10,413
- Posts
- 16
- Years
- Age 30
- Salisbury, England
- Seen Nov 23, 2023
Code:
#dynamic 0x<offset>
#org @start
lock
faceplayer
showmoney 0x0 0x0 0x0
msgbox @msg1 MSG_KEEPOPEN
closeonkeypress
multichoice 0x14 0x1 0x<mcnumber> 0x0
compare 0x800D 0x0
if 0x1 goto @common
compare 0x800D 0x1
if 0x1 goto @uncommon
compare 0x800D 0x2
if 0x1 goto @rare
hidemoney 0x0 0x0
release
end
#org @common
checkmoney 0x1388 0x0
compare 0x800D 0x0
if 0x1 goto @notenough
paymoney 0x1388 0x0
updatemoney 0x0 0x0 0x0
fanfare 0x13E
msgbox @msg3 MSG_KEEPOPEN
closeonkeypress
waitfanfare
hidemoney 0x0 0x0
random 0x5
compare 0x800D 0x0
if 0x1 goto @1
compare 0x800D 0x1
if 0x1 goto @2
compare 0x800D 0x2
if 0x1 goto @3
compare 0x800D 0x3
if 0x1 goto @4
compare 0x800D 0x4
if 0x1 goto @5
release
end
#org @1
giveegg 0x<species>
release
end
#org @2
giveegg 0x<species>
release
end
#org @3
giveegg 0x<species>
release
end
#org @4
giveegg 0x<species>
release
end
#org @5
giveegg 0x<species>
release
end
#org @notenough
hidemoney 0x0 0x0
msgbox @msg2 MSG_KEEPOPEN
closeonkeypress
release
end
#org @uncommon
checkmoney 0x2710 0x0
compare 0x800D 0x0
if 0x1 goto @notenough
paymoney 0x2710 0x0
updatemoney 0x0 0x0 0x0
fanfare 0x13E
msgbox @msg3 MSG_KEEPOPEN
closeonkeypress
waitfanfare
hidemoney 0x0 0x0
random 0x5
compare 0x800D 0x0
if 0x1 goto @k1
compare 0x800D 0x1
if 0x1 goto @k2
compare 0x800D 0x2
if 0x1 goto @k3
compare 0x800D 0x3
if 0x1 goto @k4
compare 0x800D 0x4
if 0x1 goto @k5
release
end
#org @k1
giveegg 0x<species>
release
end
#org @k2
giveegg 0x<species>
release
end
#org @k3
giveegg 0x<species>
release
end
#org @k4
giveegg 0x<species>
release
end
#org @k5
giveegg 0x<species>
release
end
#org @rare
checkmoney 0x61A8
compare 0x800D 0x0
if 0x1 goto @notenough
paymoney 0x61A8 0x0
updatemoney 0x0 0x0 0x0
fanfare 0x13E
msgbox @msg1 MSG_KEEPOPEN
closeonkeypress
waitfanfare
hidemoney 0x0 0x0
random 0x3
compare 0x800D 0x0
if 0x1 goto @rare1
compare 0x800D 0x1
if 0x1 goto @rare2
compare 0x800D 0x2
if 0x1 goto @rare3
release
end
#org @rare1
giveegg 0x<species>
release
end
#org @rare2
giveegg 0x<species>
release
end
#org @rare3
giveegg 0x<species>
release
end
#org @msg1
= Hello, welcome to our Egg Shop!\pWhich kind of Egg would you like?
#org @msg2
= You don't have enough money.
#org @msg3
= [black_fr][player] received a [red_fr]Pokémon Egg[black_fr]!
Common - $5000
Uncommon - $10000
Rare - $25000
Last edited: