summaryrefslogtreecommitdiff
path: root/npc/guilds/exchange.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-04-26 07:47:04 -0300
committerJesusaves <cpntb1@ymail.com>2020-04-26 07:47:04 -0300
commitc9361c6ac2e84d2e6e8ef2f418b92b88027fcead (patch)
tree19a5d90e797009692132161351ee42a4b36c60fb /npc/guilds/exchange.txt
parentd745280ed5b143acd24cf9ac8243380a50de9e3e (diff)
downloadserverdata-c9361c6ac2e84d2e6e8ef2f418b92b88027fcead.tar.gz
serverdata-c9361c6ac2e84d2e6e8ef2f418b92b88027fcead.tar.bz2
serverdata-c9361c6ac2e84d2e6e8ef2f418b92b88027fcead.tar.xz
serverdata-c9361c6ac2e84d2e6e8ef2f418b92b88027fcead.zip
Guild Shop now sells Arcmage Boxset.
Job Level now affects chances of getting a good Arcmage Card.
Diffstat (limited to 'npc/guilds/exchange.txt')
-rw-r--r--npc/guilds/exchange.txt34
1 files changed, 32 insertions, 2 deletions
diff --git a/npc/guilds/exchange.txt b/npc/guilds/exchange.txt
index 1d2fe9b17..bdd04a719 100644
--- a/npc/guilds/exchange.txt
+++ b/npc/guilds/exchange.txt
@@ -56,11 +56,27 @@ guilds,29,24,0 script Guild Coin Exchange NPC_NO_SPRITE,{
.@bluecost=200; .@blueId=GEX_blueMAX;
}
+ // Calculate arcmage boxset cost
+ if (!(GUILDSHOP & GEX_arcmage1)) {
+ .@arcmagecost=30; .@arcmageId=GEX_arcmage1;
+ } else if (!(GUILDSHOP & GEX_arcmage2)) {
+ .@arcmagecost=60; .@arcmageId=GEX_arcmage2;
+ } else if (!(GUILDSHOP & GEX_arcmage3)) {
+ .@arcmagecost=90; .@arcmageId=GEX_arcmage3;
+ } else if (!(GUILDSHOP & GEX_arcmage4)) {
+ .@arcmagecost=120; .@arcmageId=GEX_arcmage4;
+ } else if (!(GUILDSHOP & GEX_arcmage5)) {
+ .@arcmagecost=150; .@arcmageId=GEX_arcmage5;
+ } else {
+ .@arcmagecost=150; .@arcmageId=GEX_arcmageMAX;
+ }
+
menuint
l("Close"), 0,
rif(.@fruitcost, .@fruitcost+l(" Coins - Mysterious Fruit")), .@fruitId,
- rif(.@merccost, .@merccost+l(" Coins - Mercenary Boxset ++")), .@mercId,
- rif(.@bluecost, .@bluecost+l(" Coins - Ancient Blueprint")), .@blueId;
+ rif(.@merccost, .@merccost+l(" Coins - Mercenary Boxset")), .@mercId,
+ rif(.@bluecost, .@bluecost+l(" Coins - Ancient Blueprint")), .@blueId,
+ rif(.@arcmagecost, .@arcmagecost+l(" Coins - Arcmage Boxset")), .@arcmageId;
mes "";
switch (@menuret) {
@@ -101,6 +117,20 @@ guilds,29,24,0 script Guild Coin Exchange NPC_NO_SPRITE,{
if (countitem(GuildCoin) < .@bluecost)
close;
delitem GuildCoin, .@bluecost;
+ getitem ArcmageBoxset, 1;
+ if (@menuret > 0)
+ GUILDSHOP=GUILDSHOP|@menuret;
+ break;
+
+ case GEX_arcmage1:
+ case GEX_arcmage2:
+ case GEX_arcmage3:
+ case GEX_arcmage4:
+ case GEX_arcmage5:
+ case GEX_arcmageMAX:
+ if (countitem(GuildCoin) < .@arcmagecost)
+ close;
+ delitem GuildCoin, .@arcmagecost;
getitem AncientBlueprint, 1;
if (@menuret > 0)
GUILDSHOP=GUILDSHOP|@menuret;