auction.txt 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. //===== rAthena Script =======================================
  2. //= Auction system
  3. //===== By: ==================================================
  4. //= L0ne_W0lf
  5. //===== Current Version: =====================================
  6. //= 1.3
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= [Official Conversion]
  11. //= Auction house releated NPCs, and warps
  12. //===== Additional Comments: =================================
  13. //= 1.0 First version, place holders only. [L0ne_W0lf]
  14. //= 1.1 Moved Morocc Auction NPCs to Morocc Ruins. [L0ne_W0lf]
  15. //= 1.2 Warp fixed. Dialog in Ruins/Lighthalzen changed. [Kisuka]
  16. //= 1.3 Duplicates now spawn from floating NPCs. [L0ne_W0lf]
  17. //============================================================
  18. // Auction House warpers
  19. //============================================================
  20. moc_ruins,78,173,6 script Auction Hall Guide#moc 98,{
  21. callfunc "F_AuctionWarper",1;
  22. }
  23. prontera,218,120,4 script Auction Hall Guide#prt 117,{
  24. callfunc "F_AuctionWarper",2;
  25. }
  26. yuno,129,116,0 script Auction Hall Guide#yuno 90,{
  27. callfunc "F_AuctionWarper",3;
  28. }
  29. lighthalzen,205,169,6 script Auction Hall Guide#lhz 833,{
  30. callfunc "F_AuctionWarper",4;
  31. }
  32. function script F_AuctionWarper {
  33. mes "[Auction Hall Guide]";
  34. mes "Hello, would you";
  35. mes "like to enter the";
  36. mes "Auction Hall?";
  37. next;
  38. if (select("Yes:No") == 1) {
  39. .@num = getarg(0);
  40. if (.@num == 1 || .@num == 4) {
  41. mes "[Auction Hall Guide]";
  42. mes "Great! Well then,";
  43. mes "I hope you have fun";
  44. mes "and enjoy the auction~";
  45. } else {
  46. mes "[Auction Hall Guide]";
  47. mes "Enjoy your auction.";
  48. }
  49. close2;
  50. switch(.@num) {
  51. case 1:
  52. warp "auction_01",179,53; end;
  53. case 2:
  54. warp "auction_01",21,43; end;
  55. case 3:
  56. warp "auction_02",151,23; end;
  57. case 4:
  58. warp "auction_02",43,24; end;
  59. }
  60. }
  61. mes "[Auction Hall Guide]";
  62. mes "Alright then,";
  63. mes "see you later.";
  64. mes "If you change your";
  65. mes "mind, please come";
  66. mes "and enjoy the auctions~";
  67. close;
  68. }
  69. // Sign posts
  70. //============================================================
  71. - script Information Post#dum::AuctionSign -1,{
  72. mes "[Information]";
  73. mes "Auction Warp Guide";
  74. close;
  75. }
  76. moc_ruins,76,176,6 duplicate(AuctionSign) Information Post#moc 837
  77. prontera,216,120,4 duplicate(AuctionSign) Information Post#prt 837
  78. yuno,131,116,0 duplicate(AuctionSign) Information Post#yuno 837
  79. lighthalzen,207,169,6 duplicate(AuctionSign) Information Post#lhz 837
  80. // Warps
  81. //============================================================
  82. auction_01,180,49,0 warp auction_entrance_moc 1,1,moc_ruins,78,171
  83. auction_01,22,37,0 warp auction_entrance_prt 1,1,prontera,214,120
  84. auction_02,151,17,0 warp auction_enterance_juno 1,1,yuno,132,119
  85. auction_02,43,17,0 warp auction_enterance_lhz 1,1,lighthalzen,209,169
  86. // Auction House NPCs
  87. //============================================================
  88. - script Auction Broker#dum::AuctionBroker -1,{
  89. mes "[Auction Broker]";
  90. mes "Welcome to the Auction Hall.";
  91. mes "Would you like to view the goods?";
  92. next;
  93. if (select("Yes:No") == 1) {
  94. mes "[Auction Broker]";
  95. mes "Very well.";
  96. mes "Please take";
  97. mes "a look, and see";
  98. mes "What's being offered~";
  99. OpenAuction;
  100. close;
  101. }
  102. mes "[Auction Broker]";
  103. mes "Very well, then.";
  104. mes "If you change your";
  105. mes "mind, then please";
  106. mes "come and check";
  107. mes "out the auctions~";
  108. close;
  109. }
  110. auction_01,182,68,6 duplicate(AuctionBroker) Auction Broker#moc1 98
  111. auction_01,182,75,0 duplicate(AuctionBroker) Auction Broker#moc2 99
  112. auction_01,177,75,2 duplicate(AuctionBroker) Auction Broker#moc3 98
  113. auction_01,177,68,4 duplicate(AuctionBroker) Auction Broker#moc4 99
  114. auction_01,21,74,4 duplicate(AuctionBroker) Auction Broker#prt1 117
  115. auction_01,27,78,4 duplicate(AuctionBroker) Auction Broker#prt2 116
  116. auction_01,16,78,4 duplicate(AuctionBroker) Auction Broker#prt3 115
  117. auction_02,158,47,6 duplicate(AuctionBroker) Auction Broker#yuno1 90
  118. auction_02,145,47,2 duplicate(AuctionBroker) Auction Broker#yuno2 90
  119. auction_02,151,54,0 duplicate(AuctionBroker) Auction Broker#yuno3 90
  120. auction_02,152,41,4 duplicate(AuctionBroker) Auction Broker#yuno4 90
  121. auction_02,57,46,2 duplicate(AuctionBroker) Auction Broker#lhz1 874
  122. auction_02,31,46,6 duplicate(AuctionBroker) Auction Broker#lhz2 874
  123. auction_02,43,65,4 duplicate(AuctionBroker) Auction Broker#lhz3 833