fixed STEAL. 8) and tested at lhz_dun03
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6399 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
171ba4e902
commit
d880305708
@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
|
|||||||
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
|
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
|
||||||
|
|
||||||
2006/04/30
|
2006/04/30
|
||||||
|
* Fixed and enabled STEAL skill [Lupus]
|
||||||
* Implemented NJ_SHADOWJUMP. [blackhole89]
|
* Implemented NJ_SHADOWJUMP. [blackhole89]
|
||||||
* Moved the soul-drain code to skill_counter_additionaleffect [Skotlex]
|
* Moved the soul-drain code to skill_counter_additionaleffect [Skotlex]
|
||||||
* Fixed fake NPC missing code. Thanks to Skotlex for pointing out. [Lance]
|
* Fixed fake NPC missing code. Thanks to Skotlex for pointing out. [Lance]
|
||||||
|
@ -2926,9 +2926,7 @@ int pc_steal_item(struct map_session_data *sd,struct block_list *bl)
|
|||||||
if(!sd || !bl || bl->type != BL_MOB)
|
if(!sd || !bl || bl->type != BL_MOB)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
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 ||
|
||||||
//temp steal disable [Lupus]
|
|
||||||
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]
|
(md->class_>=1324 && md->class_<1364) || // prevent stealing from treasure boxes [Valaris]
|
||||||
map[md->bl.m].flag.nomobloot || // check noloot map flag [Lorky]
|
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
|
md->sc.data[SC_STONE].timer != -1 || md->sc.data[SC_FREEZE].timer != -1 //status change check
|
||||||
@ -2950,7 +2948,7 @@ int pc_steal_item(struct map_session_data *sd,struct block_list *bl)
|
|||||||
itemid = md->db->dropitem[i].nameid;
|
itemid = md->db->dropitem[i].nameid;
|
||||||
if(itemid <= 0 || (itemid>4000 && itemid<5000 && pc_checkskill(sd,TF_STEAL) <= 5))
|
if(itemid <= 0 || (itemid>4000 && itemid<5000 && pc_checkskill(sd,TF_STEAL) <= 5))
|
||||||
continue;
|
continue;
|
||||||
if(rand() % 10000 > ((md->db->dropitem[i].p * skill) / 100 + sd->add_steal_rate))
|
if(rand() % 10000 <= ((md->db->dropitem[i].p * skill) / 100 + sd->add_steal_rate))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (i == MAX_MOB_DROP)
|
if (i == MAX_MOB_DROP)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user