navigate.txt 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //===== rAthena Script =======================================
  2. //= Sample: Navigation
  3. //===== By: ==================================================
  4. //= rAthena Dev Team
  5. //===== Last Updated: ========================================
  6. //= 20160306
  7. //===== Description: =========================================
  8. //= Shows how to use the navigateto command.
  9. //=
  10. //= NOTE:
  11. //= Please note that we do not have any influence on how
  12. //= stupid the client calculates the route to your target.
  13. //============================================================
  14. prontera,162,188,4 script Navigation Test 112,{
  15. cutin "kafra_06",2;
  16. mes "[Navigation Test]";
  17. mes "Welcome to Prontera's Navigation Test.";
  18. mes "Where do you want to go?";
  19. next;
  20. switch( select( "Izlude", "Poring War Recruiter", "Izlude without Kafra", "Poring War Recruiter with Window", "Show me Porings" ) ){
  21. case 1:
  22. mes "[Navigation Test]";
  23. mes "I will now start your navigation system.";
  24. close2;
  25. cutin "kafra_06",255;
  26. navigateto "izlude";
  27. end;
  28. case 2:
  29. mes "[Navigation Test]";
  30. mes "I will now start your navigation system.";
  31. close2;
  32. cutin "kafra_06",255;
  33. navigateto "prt_fild08", 157, 371;
  34. end;
  35. case 3:
  36. mes "[Navigation Test]";
  37. mes "I will now start your navigation system.";
  38. close2;
  39. cutin "kafra_06",255;
  40. navigateto "izlude", 0, 0, NAV_NONE;
  41. end;
  42. case 4:
  43. mes "[Navigation Test]";
  44. mes "I will now start your navigation system.";
  45. close2;
  46. cutin "kafra_06",255;
  47. navigateto "prt_fild08", 157, 371, NAV_NONE, 0;
  48. end;
  49. case 5:
  50. mes "[Navigation Test]";
  51. mes "I will now start your navigation system.";
  52. close2;
  53. cutin "kafra_06",255;
  54. navigateto "prt_fild08", 0, 0, NAV_NONE, 1, 1002;
  55. end;
  56. }
  57. }