View Single Post
  #409    
Old July 12th, 2009 (12:05 PM).
score_under's Avatar
score_under score_under is offline

I program the *other* ASM.

Crystal Tier
 
Join Date: Aug 2005
Location: Hertfordshire, England
Age: 23
Nature: Rash
Posts: 525

Quote originally posted by heavens_outcast:
can someone tell me how to make a working code to put some random person in pallet town that gives away free master balls?
Code:
#dyn 0x800000
#org @start
lock
faceplayer
checkflag 0x250
if true goto @already-have
msgbox @do-you-want
callstd MSG_YESNO
compare LASTRESULT NO
if == goto :end-of-script
additem MASTERBALL 1
msgbox @yay
callstd MSG_NOCLOSE
setflag 0x250
:end-of-script
release
end

#org @already-have msgbox @nowai callstd MSG_NOCLOSE release end

#org @nowai = Hmm[.] didn't I already give you one?

#org @yay = There you go!

#org @do-you-want = Hey, do you want a free MASTER BALL? ' o_O? lol

Now I just need to remember if I implemented offset labels in this version. If not:
Code:
#dyn 0x800000
#org @start
lock
faceplayer
checkflag 0x250
if true goto @already-have
msgbox @do-you-want
callstd MSG_YESNO
compare LASTRESULT NO
if == goto @end-of-script
additem MASTERBALL 1
msgbox @yay
 callstd MSG_NOCLOSE
setflag 0x250
release
end

#org @end-of-script release end

#org @already-have msgbox @nowai callstd MSG_NOCLOSE release end

#org @nowai = Hmm[.] didn't I already give you one?

#org @yay = There you go!

#org @do-you-want = Hey, do you want a free MASTER BALL? ' o_O? lol

Quote originally posted by IIMarckus:
The command‐line version can; I’m not sure about the IDE.
You can't go 3 lines without seeing a few winapi calls

__________________
Plz not to PM me, I don't come here often enough. Email if you need me