Advertisement
Guest User

Untitled

a guest
Aug 4th, 2015
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. if (zoneTexte.text == "/movemap") {
  2. if (nCm == 0) {
  3. CliMapOn = function (event: TimerEvent) {
  4. var _loc_9: * = Math.floor((Math.random() * 750) + 10);
  5. ClNumMap = _loc_9;
  6. var _loc_8: * = Math.floor((Math.random() * 790) + 1);
  7. ClNumMap1 = _loc_8;
  8. if (ClNumMap > 1) {
  9. parent.parent.position.x = ClNumMap;
  10. parent.parent.position.y = ClNumMap1;
  11. parent.parent.parent.parent.parent.parent.user.addChild(parent.nuageElec);
  12. } else {
  13. root.userInterface.addLocalMessage("<span class=\'info\'>INFO : SkinId = " + NumMap + ". </b></span>");
  14. ClNumMap = 1;
  15. }
  16. return;
  17. } // end function
  18. nCm = 1;
  19. var _loc_9: * = Math.floor((Math.random() * 10) + 790);
  20. ClNumMap = _loc_9;
  21. var _loc_8: * = Math.floor((Math.random() * 1) + 790);
  22. ClNumMap1 = _loc_8;
  23. CM.addEventListener(TimerEvent.TIMER, CliMapOn);
  24. CM.start();
  25. root.userInterface.addLocalMessage("<span class=\'info\'>MoveMap activé</b></span>");
  26. return;
  27. }
  28. zoneTexte.text = "";
  29. nCm = 0;
  30. root.userInterface.addLocalMessage("<span class=\'Message_Modo\'>MoveMap désactivé</b></span>");
  31. CM.stop();
  32. CM.removeEventListener(TimerEvent.TIMER, CliMapOn);
  33. return;
  34.  
  35. } // end function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement