summaryrefslogtreecommitdiff
path: root/localserver
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-08-25 00:35:01 -0300
committerJesusaves <cpntb1@ymail.com>2019-08-25 00:35:01 -0300
commit8b879ec88fd287a77e721db3f9963499b22f82ac (patch)
treee487cfcc30ec0612fcefc5897c55989274ddca73 /localserver
parent52925ea79a716c59f737c78bfbceeb3c33a61238 (diff)
downloadtools-8b879ec88fd287a77e721db3f9963499b22f82ac.tar.gz
tools-8b879ec88fd287a77e721db3f9963499b22f82ac.tar.bz2
tools-8b879ec88fd287a77e721db3f9963499b22f82ac.tar.xz
tools-8b879ec88fd287a77e721db3f9963499b22f82ac.zip
Market version bump
Diffstat (limited to 'localserver')
-rw-r--r--localserver/beta.patch232
1 files changed, 31 insertions, 1 deletions
diff --git a/localserver/beta.patch2 b/localserver/beta.patch2
index 90102d8..33f872a 100644
--- a/localserver/beta.patch2
+++ b/localserver/beta.patch2
@@ -11,9 +11,29 @@ index fe7a64b51..f9066fcb8 100644
static bool battle_set_value_sub(int index, int value)
diff --git a/src/map/npc.c b/src/map/npc.c
-index 4b79a9fed..8196460f7 100644
+index 4b79a9fed..e11f00b2a 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
+@@ -2069,9 +2069,6 @@ static int npc_buylist(struct map_session_data *sd, struct itemlist *item_list)
+ w += itemdb_weight(entry->id) * entry->amount;
+ }
+
+- if (nd->master_nd != NULL) //Script-based shops.
+- return npc->buylist_sub(sd, item_list, nd->master_nd);
+-
+ if (z > sd->status.zeny)
+ return 1; // Not enough Zeny
+ if( w + sd->weight > sd->max_weight )
+@@ -2108,6 +2105,9 @@ static int npc_buylist(struct map_session_data *sd, struct itemlist *item_list)
+ }
+ }
+
++ if (nd->master_nd != NULL) // TMW2 Script-based shops.
++ return npc->buylist_sub(sd, item_list, nd->master_nd);
++
+ return 0;
+ }
+
@@ -2178,6 +2178,9 @@ static int npc_market_buylist(struct map_session_data *sd, struct itemlist *item
return 1;
}
@@ -24,6 +44,16 @@ index 4b79a9fed..8196460f7 100644
z += (int64)value * entry->amount;
w += itemdb_weight(entry->id) * entry->amount;
}
+@@ -2217,6 +2220,9 @@ static int npc_market_buylist(struct map_session_data *sd, struct itemlist *item
+ }
+ }
+
++ if (nd->master_nd != NULL) // TMW2 Script-based shops.
++ return npc->buylist_sub(sd, item_list, nd->master_nd);
++
+ return 0;
+ }
+
diff --git a/src/map/rodex.c b/src/map/rodex.c
index 766fdc5ea..996576fd3 100644
--- a/src/map/rodex.c