summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-06-24 17:40:54 -0300
committershennetsind <ind@henn.et>2013-06-24 17:40:54 -0300
commit5b40d0c2937c2fe4f8e133271d05602543d86277 (patch)
treea8af29674a49faa9ab2f260172d713d4692c3fb7 /src/map
parent02bb58d320f16ddc30ac3d1e6508cf08997f583a (diff)
downloadhercules-5b40d0c2937c2fe4f8e133271d05602543d86277.tar.gz
hercules-5b40d0c2937c2fe4f8e133271d05602543d86277.tar.bz2
hercules-5b40d0c2937c2fe4f8e133271d05602543d86277.tar.xz
hercules-5b40d0c2937c2fe4f8e133271d05602543d86277.zip
Fixed db2sql
Wasn't taking in account the delay_consume flag which actually means the item type is 11 not 2. Also added a extra warning in the item packages parser. Special Thanks to ossi0110 for bringing this up. Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map')
-rw-r--r--src/map/itemdb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index 6fd8b166c..5fae29500 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -760,7 +760,7 @@ void itemdb_read_packages(void) {
int r = 0, m = 0;
data->package = &itemdb->packages[count];
-
+
itemdb->packages[count].id = data->nameid;
itemdb->packages[count].random_list = NULL;
itemdb->packages[count].must_items = NULL;
@@ -814,7 +814,9 @@ void itemdb_read_packages(void) {
itemdb->packages[count].random_list[r].id = data ? data->nameid : 0;
itemdb->packages[count].random_list[r].qty = icount;
- itemdb->packages[count].random_list[r].rate = rate;
+ if( (itemdb->packages[count].random_list[r].rate = rate) == 10000 ) {
+ ShowWarning("itemdb_read_packages: item '%s' in '%s' has 100% drop rate!! set this item as 'Random: false' or other items won't drop!!!\n",itname,config_setting_name(itg));
+ }
itemdb->packages[count].random_list[r].hours = expire;
itemdb->packages[count].random_list[r].announce = announce == true ? 1 : 0;
itemdb->packages[count].random_list[r].named = named == true ? 1 : 0;