Advertisement
ZoriaRPG

Eat wind FFC

Mar 5th, 2018
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.92 KB | None | 0 0
  1. ffc script EatWind
  2. {
  3.      void run(int npc_type)
  4.      {
  5.           int q; npc n; lweapon l; bool found;
  6.           while(1)
  7.           {
  8.                for ( q = Screen->NumNPCs(); q > 0; --q )
  9.                {
  10.                     n = Screen->LoadNPC(q);
  11.                     if ( n->Type == npc_type )
  12.                     {
  13.                          found = true; break;
  14.                     }
  15.                }
  16.                if ( found )
  17.                {
  18.                     found = false;
  19.                     for ( q = Screen->NumLWeapons(); q > 0; --q )
  20.                     {
  21.                          l = Screen->LoadLWeapon(q);
  22.                          if ( l->ID == LW_WIND )
  23.                          {
  24.                               l->Step = 0; Remove(l);
  25.                          }
  26.                     }
  27.                }
  28.                Waitframe();
  29.           } //end while(1)
  30.      }     //end run()
  31. } //end script scope
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement