diff options
author | brianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-05-25 03:46:10 +0000 |
---|---|---|
committer | brianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-05-25 03:46:10 +0000 |
commit | 544d3110b2230aec0a1b27ecd964bee1dabb3b84 (patch) | |
tree | 268559d16ff3293ebf0879a8101d56c1d064f1e5 | |
parent | 7ac8ddc2d5c0827c86a4b3813a5fa2b29541f684 (diff) | |
download | hercules-544d3110b2230aec0a1b27ecd964bee1dabb3b84.tar.gz hercules-544d3110b2230aec0a1b27ecd964bee1dabb3b84.tar.bz2 hercules-544d3110b2230aec0a1b27ecd964bee1dabb3b84.tar.xz hercules-544d3110b2230aec0a1b27ecd964bee1dabb3b84.zip |
- Added a warning when NPC shops sell items for 0z (FREE!)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16147 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | src/map/npc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index 5976412db..4f08d28f5 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -2109,6 +2109,11 @@ static const char* npc_parse_shop(char* w1, char* w2, char* w3, char* w4, const else value = 0; // Cashshop doesn't have a "buy price" in the item_db } + if( type == SHOP && id->value_buy == 0 ) + { // NPC selling items for free! + ShowWarning("npc_parse_shop: Item %s [%d] is being sold for FREE in file '%s', line '%d'.\n", + id->name, nameid, filepath, strline(buffer,start-buffer)); + } if( type == SHOP && value*0.75 < id->value_sell*1.24 ) {// Exploit possible: you can buy and sell back with profit ShowWarning("npc_parse_shop: Item %s [%d] discounted buying price (%d->%d) is less than overcharged selling price (%d->%d) at file '%s', line '%d'.\n", |