1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
|
//================= Hercules Script =======================================
//= _ _ _
//= | | | | | |
//= | |_| | ___ _ __ ___ _ _| | ___ ___
//= | _ |/ _ \ '__/ __| | | | |/ _ \/ __|
//= | | | | __/ | | (__| |_| | | __/\__ \
//= \_| |_/\___|_| \___|\__,_|_|\___||___/
//================= License ===============================================
//= This file is part of Hercules.
//= http://herc.ws - http://github.com/HerculesWS/Hercules
//=
//= Copyright (C) 2012-2015 Hercules Dev Team
//= Copyright (C) Kisuka
//= Copyright (C) L0ne_W0lf
//=
//= Hercules is free software: you can redistribute it and/or modify
//= it under the terms of the GNU General Public License as published by
//= the Free Software Foundation, either version 3 of the License, or
//= (at your option) any later version.
//=
//= This program is distributed in the hope that it will be useful,
//= but WITHOUT ANY WARRANTY; without even the implied warranty of
//= MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//= GNU General Public License for more details.
//=
//= You should have received a copy of the GNU General Public License
//= along with this program. If not, see <http://www.gnu.org/licenses/>.
//=========================================================================
//= Auction system
//================= Description ===========================================
//= Auction house releated NPCs, and warps
//================= Current Version =======================================
//= 1.3
//=========================================================================
//== Auction House warpers =================================
moc_ruins,78,173,6 script Auction Hall Guide#moc 4W_M_02,{
callfunc "F_AuctionWarper",1;
}
prontera,218,120,4 script Auction Hall Guide#prt 4_F_KAFRA1,{
callfunc "F_AuctionWarper",2;
}
yuno,129,116,0 script Auction Hall Guide#yuno 4_F_01,{
callfunc "F_AuctionWarper",3;
}
lighthalzen,205,169,6 script Auction Hall Guide#lhz 4_M_ZONDAOYAJI,{
callfunc "F_AuctionWarper",4;
}
function script F_AuctionWarper {
mes "[Auction Hall Guide]";
mes "Hello, would you";
mes "like to enter the";
mes "Auction Hall?";
next;
if (select("Yes", "No") == 1) {
if (getarg(0) == 1 || getarg(0) == 4) {
mes "[Auction Hall Guide]";
mes "Great! Well then,";
mes "I hope you have fun";
mes "and enjoy the auction~";
} else {
mes "[Auction Hall Guide]";
mes "Enjoy your auction.";
}
close2;
switch(getarg(0)) {
case 1:
warp "auction_01",179,53; end;
case 2:
warp "auction_01",21,43; end;
case 3:
warp "auction_02",151,23; end;
case 4:
warp "auction_02",43,24; end;
}
}
mes "[Auction Hall Guide]";
mes "Alright then,";
mes "see you later.";
mes "If you change your";
mes "mind, please come";
mes "and enjoy the auctions~";
close;
}
//== Sign posts ============================================
- script Information Post#dum::AuctionSign FAKE_NPC,{
mes "[Information]";
mes "Auction Warp Guide";
close;
}
moc_ruins,76,176,6 duplicate(AuctionSign) Information Post#moc 2_BULLETIN_BOARD
prontera,216,120,4 duplicate(AuctionSign) Information Post#prt 2_BULLETIN_BOARD
yuno,131,116,0 duplicate(AuctionSign) Information Post#yuno 2_BULLETIN_BOARD
lighthalzen,207,169,6 duplicate(AuctionSign) Information Post#lhz 2_BULLETIN_BOARD
//== Warps =================================================
auction_01,180,49,0 warp auction_entrance_moc 1,1,moc_ruins,78,171
auction_01,22,37,0 warp auction_entrance_prt 1,1,prontera,214,120
auction_02,151,17,0 warp auction_enterance_juno 1,1,yuno,132,119
auction_02,43,17,0 warp auction_enterance_lhz 1,1,lighthalzen,209,169
//== Auction House NPCs ====================================
- script Auction Broker#dum::AuctionBroker FAKE_NPC,{
mes "[Auction Broker]";
mes "Welcome to the Auction Hall.";
mes "Would you like to view the goods?";
next;
if (select("Yes", "No") == 1) {
mes "[Auction Broker]";
if ( getbattleflag( "feature.auction" ) ) {
mes "Very well.";
mes "Please take";
mes "a look, and see";
mes "What's being offered~";
openauction;
}
else {
mes "Auction feature isn't enabled.";
}
close;
}
mes "[Auction Broker]";
mes "Very well, then.";
mes "If you change your";
mes "mind, then please";
mes "come and check";
mes "out the auctions~";
close;
}
auction_01,182,68,6 duplicate(AuctionBroker) Auction Broker#moc1 4W_M_02
auction_01,182,75,0 duplicate(AuctionBroker) Auction Broker#moc2 4W_M_03
auction_01,177,75,2 duplicate(AuctionBroker) Auction Broker#moc3 4W_M_02
auction_01,177,68,4 duplicate(AuctionBroker) Auction Broker#moc4 4W_M_03
auction_01,21,74,4 duplicate(AuctionBroker) Auction Broker#prt1 4_F_KAFRA1
auction_01,27,78,4 duplicate(AuctionBroker) Auction Broker#prt2 4_F_KAFRA2
auction_01,16,78,4 duplicate(AuctionBroker) Auction Broker#prt3 4_F_KAFRA3
auction_02,158,47,6 duplicate(AuctionBroker) Auction Broker#yuno1 4_F_01
auction_02,145,47,2 duplicate(AuctionBroker) Auction Broker#yuno2 4_F_01
auction_02,151,54,0 duplicate(AuctionBroker) Auction Broker#yuno3 4_F_01
auction_02,152,41,4 duplicate(AuctionBroker) Auction Broker#yuno4 4_F_01
auction_02,57,46,2 duplicate(AuctionBroker) Auction Broker#lhz1 4_M_ZONDAMAN
auction_02,31,46,6 duplicate(AuctionBroker) Auction Broker#lhz2 4_M_ZONDAMAN
auction_02,43,65,4 duplicate(AuctionBroker) Auction Broker#lhz3 4_M_ZONDAOYAJI
|