Advertisement
ZoriaRPG

Magic Boss Key, Map, and Compass

Mar 5th, 2019
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. //Collect script for Magic Boss Key--works in a levels
  2. item script MagicBossKey
  3. {
  4.     void run()
  5.     {
  6.         for ( int q = 0; q < 512; ++q )
  7.         {
  8.             Game->LItems[q] |= LI_BOSSKEY;
  9.         }
  10.     }
  11. }
  12.  
  13. //Collect script for Magic Map--works in a levels
  14. item script MagicMap
  15. {
  16.     void run()
  17.     {
  18.         for ( int q = 0; q < 512; ++q )
  19.         {
  20.             Game->LItems[q] |= LI_MAP;
  21.         }
  22.     }
  23. }
  24.  
  25. //Collect script for Magic Compass-works in all levels
  26. item script MagicBossKey
  27. {
  28.     void run()
  29.     {
  30.         for ( int q = 0; q < 512; ++q )
  31.         {
  32.             Game->LItems[q] |= LI_COMPASS;
  33.         }
  34.     }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement