summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-20 20:56:55 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-20 20:56:55 +0000
commitb720934d03f18b4858029a38faf142cf656774cc (patch)
tree0ef63a2572ba329984a0d040e1d699ad0f04361e /src/map/npc.c
parent270ea9d6ada343b9d05e4c5d6d2616759efb02f9 (diff)
downloadhercules-b720934d03f18b4858029a38faf142cf656774cc.tar.gz
hercules-b720934d03f18b4858029a38faf142cf656774cc.tar.bz2
hercules-b720934d03f18b4858029a38faf142cf656774cc.tar.xz
hercules-b720934d03f18b4858029a38faf142cf656774cc.zip
- Added SC_ARMOR_RESIST, used by Undead Scroll, gives you resistance against elements and it's can be used with Resist Potions.
- SC_ARMOR_RESIST and SC_BENEDICTIO ends if you change your armor. Tested on iRO. - If you call SC_ELEMENTALCHANGE with val3 = 1 it will use the level in val 1, and not a random value. * Barricades: - Fixed a bug when @reloadscript. Barricades should be destroyed too. - Unbreakable barricades are only wall type (not shootable) According to Doddler info. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12407 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 58cfac285..09f101983 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -1679,11 +1679,10 @@ static const char* npc_parse_shop(char* w1, char* w2, char* w3, char* w4, const
}
if( type == SHOP && value*0.75 < id->value_sell*1.24 )
- {// Expoit possible: you can buy and sell back with profit
+ {// 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",
id->name, nameid, value, (int)(value*0.75), id->value_sell, (int)(id->value_sell*1.24), filepath, strline(buffer,start-buffer));
}
-
//for logs filters, atcommands and iteminfo script command
if( id->maxchance <= 0 )
id->maxchance = 10000; //10000 (100% drop chance)would show that the item's sold in NPC Shop
@@ -2845,6 +2844,7 @@ int npc_reload(void)
// clear npc-related data structures
ev_db->clear(ev_db,NULL);
npcname_db->clear(npcname_db,NULL);
+ mod_barricade_clearall(); // Clear Barricades
npc_warp = npc_shop = npc_script = 0;
npc_mob = npc_cache_mob = npc_delay_mob = 0;