View Single Post
  #7462    
Old December 4th, 2012 (08:42 AM). Edited December 4th, 2012 by DrFuji.
LugiaMZ's Avatar
LugiaMZ LugiaMZ is offline
 
Join Date: Dec 2011
Gender: Male
Posts: 72
Hello everyone! I having two question of my script...

Have someone know how to checkpokemon like checkitem, checkpcitem, etc...
Here is my example script that I need to make a script to check player is caught Bulbasaur or not.
Example script:
#dynamic 0x800000
#org @example
lock
faceplayer
checkflag 0x828
if 0x1 goto @thanks
msgbox @help 0x6
wildbattle 0x1 0x8 0x0
(somethings check if player caught the Bulbasaur goto @caught, if uncaught goto
@uncaught)
end
#org @caught
msgbox @caught2 0x6
giveitem 0x1 0x1 MSG_OBTAIN
msgbox @good 0x6
release
end
#org @uncaught
msgbox @uncaught2 0x6
giveitem 0x2 0x1 MSG_OBTAIN
msgbox @good 0x6
release
end
#org @thanks
msgbox @how 0x6
release
end
#org @help
= Trainer! Please help me!\p The Bulbasaur attacking me!\nPlease defeat it!
#org @caught2
= Oh thanks you...\pWow you catched it!\nGood Job dude!\lThis is your prize,\ltake it!
#org @uncaught2
= Oh thanks you...\pThis is your prize,\ntake it!
#org @good
= Good luck, dude!
#org @how
= How are you, [player]?

Have everyone know how to do it?

Other question, this script is making for DNS Day,Night and Season tools, I want to check week of day, but failed, can someone tell me why?
For Example:
#dynamic 0x800000
#org @dif
lock
faceplayer
comparefarbytetobyte 0x03005540 0x0
if 0x1 goto @sunday
comparefarbytetobyte 0x03005540 0x1
if 0x1 goto @monday
comparefarbytetobyte 0x03005540 0x2
if 0x1 goto @tuesday
comparefarbytetobyte 0x03005540 0x3
if 0x1 goto @wednesday
comparefarbytetobyte 0x03005540 0x4
if 0x1 goto @thursday
comparefarbytetobyte 0x03005540 0x5
if 0x1 goto @friday
comparefarbytetobyte 0x03005540 0x6
if 0x1 goto @saturday
release
end
#org @sunday
msgbox @sun 0x6
end
#org @monday
msgbox @mon 0x6
end
#org @tuesday
msgbox @tues 0x6
end
#org @wednesday
msgbox @wed 0x6
end
#org @thursday
msgbox @thurs 0x6
end
#org @friday
msgbox @fri 0x6
end
#org @saturday
msgbox @sat 0x6
end
#org @sun
= Today is Sunday.
#org @mon
= Today is Monday.
#org @tues
= Today is Tuesday.
#org @wed
= Today is Wednesday.
#org @thurs
= Today is Thursday.
#org @fri
= Today is Friday.
#org @sat
= Today is Saturday.

Answer me please... ><

PS: Sorry for my bad english... Thanks. :)