1 | //===== eAthena Script ======================================= |
---|
2 | //= Auction system |
---|
3 | //===== By: ================================================== |
---|
4 | //= L0ne_W0lf |
---|
5 | //===== Current Version: ===================================== |
---|
6 | //= 1.0 |
---|
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 | //============================================================ |
---|
15 | |
---|
16 | // Auction House warpers |
---|
17 | //============================================================ |
---|
18 | morocc,182,95,6 script Auction Hall Guide#moc 98,{ |
---|
19 | callfunc "F_AuctionWarper",1; |
---|
20 | } |
---|
21 | |
---|
22 | prontera,218,120,4 script Auction Hall Guide#prt 117,{ |
---|
23 | callfunc "F_AuctionWarper",2; |
---|
24 | } |
---|
25 | |
---|
26 | yuno,129,116,0 script Auction Hall Guide#yuno 90,{ |
---|
27 | callfunc "F_AuctionWarper",3; |
---|
28 | } |
---|
29 | |
---|
30 | lighthalzen,205,169,6 script Auction Hall Guide#lhz 833,{ |
---|
31 | callfunc "F_AuctionWarper",4; |
---|
32 | } |
---|
33 | |
---|
34 | function script F_AuctionWarper { |
---|
35 | mes "[Auction Hall Guide]"; |
---|
36 | mes "Hello, would you"; |
---|
37 | mes "like to enter the"; |
---|
38 | mes "Auction Hall?"; |
---|
39 | next; |
---|
40 | if (select("Yes.:No.") == 1) { |
---|
41 | mes "[Auction Hall Guide]"; |
---|
42 | mes "Enjoy your auction."; |
---|
43 | close2; |
---|
44 | switch(getarg(0)) { |
---|
45 | case 1: |
---|
46 | warp "auction_01",179,53; end; |
---|
47 | case 2: |
---|
48 | warp "auction_01",21,43; end; |
---|
49 | case 3: |
---|
50 | warp "auction_02",151,23; end; |
---|
51 | case 4: |
---|
52 | warp "auction_02",43,24; end; |
---|
53 | } |
---|
54 | } |
---|
55 | mes "[Auction Hall Guide]"; |
---|
56 | mes "Alright then,"; |
---|
57 | mes "See you later."; |
---|
58 | mes "If you change your"; |
---|
59 | mes "mind, please come"; |
---|
60 | mes "and enjoy the auctions~"; |
---|
61 | close; |
---|
62 | } |
---|
63 | |
---|
64 | // Sign posts |
---|
65 | //============================================================ |
---|
66 | morocc,180,97,6 script Information Post#moc::AuctionSign 837,{ |
---|
67 | mes "[Information]"; |
---|
68 | mes "Auction Warp Guide"; |
---|
69 | close; |
---|
70 | } |
---|
71 | |
---|
72 | prontera,216,120,4 duplicate(AuctionSign) Information Post#prt 837,{ |
---|
73 | yuno,131,116,0 duplicate(AuctionSign) Information Post#yuno 837,{ |
---|
74 | lighthalzen,207,169,6 duplicate(AuctionSign) Information Post#lhz 837 |
---|
75 | |
---|
76 | // Warps |
---|
77 | //============================================================ |
---|
78 | auction_01,180,49,0 warp auction_entrance_moc 1,1,morocc,182,92 |
---|
79 | auction_01,22,37,0 warp auction_entrance_prt 1,1,prontera,214,120 |
---|
80 | auction_02,151,17,0 warp auction_enterance_juno 1,1,yuno,132,119 |
---|
81 | auction_02,43,17,0 warp auction_enterance_lhz 1,1,lighthalzen,209,169 |
---|
82 | |
---|
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 "Wery 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 | |
---|
108 | auction_01,182,75,0 duplicate(AuctionBroker) Auction Broker#moc2 99 |
---|
109 | auction_01,177,75,2 duplicate(AuctionBroker) Auction Broker#moc3 98 |
---|
110 | auction_01,177,68,4 duplicate(AuctionBroker) Auction Broker#moc4 99 |
---|
111 | auction_01,21,74,4 duplicate(AuctionBroker) Auction Broker#prt1 117 |
---|
112 | auction_01,27,78,4 duplicate(AuctionBroker) Auction Broker#prt2 116 |
---|
113 | auction_01,16,78,4 duplicate(AuctionBroker) Auction Broker#prt3 115 |
---|
114 | auction_02,158,47,6 duplicate(AuctionBroker) Auction Broker#yuno1 90 |
---|
115 | auction_02,145,47,2 duplicate(AuctionBroker) Auction Broker#yuno2 90 |
---|
116 | auction_02,151,54,0 duplicate(AuctionBroker) Auction Broker#yuno3 90 |
---|
117 | auction_02,152,41,4 duplicate(AuctionBroker) Auction Broker#yuno4 90 |
---|
118 | auction_02,57,46,2 duplicate(AuctionBroker) Auction Broker#lhz1 874 |
---|
119 | auction_02,31,46,6 duplicate(AuctionBroker) Auction Broker#lhz2 874 |
---|
120 | auction_02,43,65,4 duplicate(AuctionBroker) Auction Broker#lhz3 833 |
---|