From eba33e17bf19e9e0dfedc387546bd33cfd82daae Mon Sep 17 00:00:00 2001 From: Lupus Date: Sat, 29 Apr 2006 14:39:21 +0000 Subject: temp steal disable git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6374 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/pc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/map/pc.c b/src/map/pc.c index b3c88c0a3..2393cf97b 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -2929,13 +2929,16 @@ int pc_steal_item(struct map_session_data *sd,struct block_list *bl) md=(struct mob_data *)bl; - if(md->state.steal_flag>battle_config.skill_steal_max_tries || status_get_mode(bl)&MD_BOSS || md->master_id || + if(1 || md->state.steal_flag>battle_config.skill_steal_max_tries || status_get_mode(bl)&MD_BOSS || md->master_id || (md->class_>=1324 && md->class_<1364) || // prevent stealing from treasure boxes [Valaris] map[md->bl.m].flag.nomobloot || // check noloot map flag [Lorky] md->sc.data[SC_STONE].timer != -1 || md->sc.data[SC_FREEZE].timer != -1 //status change check ) return 0; + if(md->state.steal_flag < battle_config.skill_steal_max_tries) + md->state.steal_flag++; + skill = battle_config.skill_steal_type == 1 ? (sd->paramc[4] - md->db->dex)/2 + pc_checkskill(sd,TF_STEAL)*6 + 10 : sd->paramc[4] - md->db->dex + pc_checkskill(sd,TF_STEAL)*3 + 10; @@ -2955,9 +2958,6 @@ int pc_steal_item(struct map_session_data *sd,struct block_list *bl) if (i == MAX_MOB_DROP) return 0; - if(md->state.steal_flag < battle_config.skill_steal_max_tries) - md->state.steal_flag++; - memset(&tmp_item,0,sizeof(tmp_item)); tmp_item.nameid = itemid; tmp_item.amount = 1; -- cgit v1.2.3-70-g09d2