Advertisement
ProClifo

Give Starter Egg

Jun 29th, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. #include stdpoke.rbh
  2. #freespace 0xFF
  3. #dynamic 0xF00000
  4.  
  5. #org @start
  6. checkflag 0x207
  7. if 0x1 goto @nop
  8. compare 0x4023 0x0
  9. if 0x1 call @mudkip_egg
  10. compare 0x4023 0x1
  11. if 0x1 call @treecko_egg
  12. compare 0x4023 0x2
  13. if 0x1 call @torchic_egg
  14. compare LASTRESULT 0x0
  15. if 0x1 goto @nick1
  16. compare LASTRESULT 0x1
  17. if 0x1 goto @nick2
  18. goto 0x8273811
  19.  
  20. #org @mudkip_egg
  21. giveegg PKMN_MUDKIP
  22. return
  23.  
  24. #org @treecko_egg
  25. giveegg PKMN_TREECKO
  26. return
  27.  
  28. #org @torchic_egg
  29. giveegg PKMN_TORCHIC
  30. return
  31.  
  32. #org @nick1
  33. call @received
  34. goto @release
  35.  
  36. #org @nick2
  37. call @received
  38. call @box
  39. goto @release
  40.  
  41. #org @received
  42. fanfare 0x172
  43. preparemsg @found_egg
  44. waitmsg
  45. waitfanfare
  46. return
  47.  
  48. #org @box
  49. bufferboxname 0x0 0x4036
  50. bufferstring 0x1 @the_egg
  51. checkflag 0x8AB
  52. if 0x0 call 0x82737BB
  53. checkflag 0x8AB
  54. if 0x1 call 0x82737E6
  55. return
  56.  
  57. #org @release
  58. setflag 0x207
  59. release
  60. end
  61.  
  62. #org @nop
  63. nop1
  64.  
  65. #org @the_egg
  66. = The EGG
  67.  
  68. #org @found_egg
  69. = [player] found an EGG!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement