Advertisement
Guest User

Untitled

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