guildpvp.txt 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //===== rAthena Script =======================================
  2. //= Guild Battle NPC
  3. //===== By: ==================================================
  4. //= L0ne_W0lf
  5. //===== Current Version: =====================================
  6. //= 1.1
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= [Official Conversion]
  11. //= Guild Battle with PVP mechanics.
  12. //===== Additional Comments: =================================
  13. //= 1.0 First version. [L0ne_W0lf]
  14. //= 1.1 Optimized. [Euphy]
  15. //============================================================
  16. pvp_y_room,77,85,4 script Guild Battle Guide 105,{
  17. setarray .@map1X[1],7,9,16,8,20;
  18. setarray .@map2X[1],91,90,83,91,79;
  19. setarray .@mapY[1],49,49,50,49,50;
  20. mes "[Guild Battle Guide]";
  21. mes "How are you doing?";
  22. mes "I'm the Guild Battle Guide";
  23. mes "for the new PvP maps.";
  24. mes "Let me know to which map";
  25. mes "you want me to move you.";
  26. next;
  27. set .@i, select("Map 1:Map 2:Map 3:Map 4:Map 5");
  28. mes "[Guild Battle Guide]";
  29. mes "You've chosen Map "+.@i+".";
  30. mes "Now, which team are";
  31. mes "you on? You can choose";
  32. mes "either Team 1 or Team 2.";
  33. next;
  34. set .@j, select("Team 1:Team 2");
  35. mes "[Guild Battle Guide]";
  36. mes "Alright, I'll move you";
  37. mes "to Map "+.@i+" as a member";
  38. mes "of Team "+.@j+". Are you ready";
  39. mes "to be transported there now?";
  40. next;
  41. if(select("Yes:No") == 2) {
  42. mes "[Guild Battle Guide]";
  43. mes "Alright, I hope to";
  44. mes "see you again on";
  45. mes "the PvP fields!";
  46. close;
  47. }
  48. mes "[Guild Battle Guide]";
  49. mes "Great! Have a good time~";
  50. close2;
  51. warp "guild_vs"+.@i,getd(".@map"+.@j+"X["+.@i+"]"),.@mapY[.@i];
  52. end;
  53. }