Coinage

Astronaut

May 17th, 2015
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.97 KB | None | 0 0
  1. // Make a public static int[] called effect, and a public static bool[] called fswitch
  2.  
  3. public static int[] effect = new int[100];
  4. public static bool[] fswitch = new bool[100];
  5.  
  6. if (faceid[p] == 71)
  7. {
  8. if (effect[p] == 0 && fswitch[p] == true)     // Checks if player has high jump effect on
  9.                                     {
  10. if (ver == 1)
  11. {
  12. con.Send(worldkey, 0, X, Y, 381, 0, 3, 4); Thread.Sleep(250);
  13. con.Send(worldkey, 0, X, Y, 0);
  14. }
  15.                                     }
  16. else {
  17. if (ver == -1)
  18. {
  19.                                         con.Send(worldkey, 0, X, Y, 381, 0, 1, 2); Thread.Sleep(250);
  20.                                         con.Send(worldkey, 0, X, Y, 0);
  21.                                     }
  22. }
  23. }
  24.  
  25. // In case "effect"
  26. case "effect":
  27.                     int e = m.GetInt(0);
  28.                     int ef = m.GetInt(1);
  29.                     bool on = m.GetBoolean(2);
  30.                     effect[e] = ef;
  31.                     fswitch[e] = on;
  32. break;
Advertisement
Add Comment
Please, Sign In to add comment