View Single Post
  #2743    
Old December 25th, 2009 (08:38 AM).
Pokepal17's Avatar
Pokepal17 Pokepal17 is offline
More cowbell~
Silver Tier
 
Join Date: Oct 2008
Location: Steeltown
Age: 20
Gender: Male
Nature: Modest
Posts: 1,517
Quote originally posted by H2O Turquoise:
ROM: FireRed
Scripted in: XSE
Script: Person
Actual script:
Spoiler:
#dynamic 0x000000

#org @start
lock
faceplayer
checkflag 0x1581
if 0x1 goto @1581set
checkflag 0x1580
if 0x1 goto @1580set
checkitem ITEM_MOOMOOMILK 2
compare LASTRESULT 0x1
if 0x1 goto @havethemilk
checkflag 0x1582
if 0x1 goto @1582set
msgbox @wygb MSG_NORMAL
setflag 0x1852
release
end

#org @1581set
msgbox @sell MSG_NORMAL
pokemart @pokemart
release
end

#org @1582set
msgbox @getbusy MSG_NORMAL
release
end

#org @havethemilk
removeitem ITEM_MOOMOOMILK 2
msgbox @gimmethemilk MSG_NORMAL
setflag 0x1580
release
end

#org @1580set
checkitem ITEM_GREPABERRY 1
compare LASTRESULT 0x1
if 0x1 goto @havetheberry
msgbox @youonly MSG_NORMAL
release
end

#org @havetheberry
removeitem ITEM_LEEMONBERRY 1
msgbox @gimmetheberry MSG_NORMAL
applymovement LASTTALKED @moveup
pause 0x100
applymovement LASTTALKED @movedown
msgbox @deserve MSG_NORMAL
giveitem ITEM_GOLDTEETH 1 MSG_OBTAIN
setflag 0x1581
release
end

#org @gimmethemilk
= RYAN: You got the MOOMOO MILK!\nGive it to me now.

#org @wygb
= RYAN: Hey, [player]!\nSo you're here eh?\pRYAN: If I can recall, you need a\nPIKA-CHEW, correct?\pRYAN: Ah, I'm sorry to disappoint\nyou, but I've ran out of the basic\lingredients for it.\pRYAN: I need [fr_blue]2 bottles of MOOMOO\nMILK and a LEEMON BERRY[black_fr].\pRYAN: Bring me those and I'll make\nyou a PIKA-CHEW free of charge.

#org @youonly
= RYAN: I only need a LEEMON BERRY\nnow.

#org @gimmethemilk
= RYAN: You got the LEEMON BERRY!\nGive it to me now.

#org @getbusy
= RYAN: Chop-chop, get busy!\pRemember, I need [fr_blue]2 bottles of\nMOOMOO MILK and a LEEMON BERRY[black_fr].

#org @deserve
= RYAN: Here you go, buddy!\nYou deserve it! Use it wisely.

#org @sell
= RYAN: Hello, dear friend! I have a\nspecial discount just for you!\pNow, what can I do for you?

#org @pokemart
#raw word ITEM_BERRYJUICE
#raw word ITEM_RARECANDY
#raw word 0x0

#org @moveup
#org 0x11 0x13 0x11 0x60 0xFE

#org @movedown
#org 0y10 0x12 0x10 0x61 0xFE

Don't mind the offset.
You didn't tell us the problem. :D

Anyway, I think I know.

Checkflag doesn't use a compare.

So it would be:

Checkflag 0xflag
if 0x1 goto @pointer.
__________________
Pokémon Stardrop