auction.txt 4.1 KB

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