diff options
author | shennetsind <ind@henn.et> | 2013-06-24 17:02:01 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-06-24 17:02:01 -0300 |
commit | 02bb58d320f16ddc30ac3d1e6508cf08997f583a (patch) | |
tree | f22230a161488d2b13fb7d233d36f45d49193fb7 /src/map/status.c | |
parent | 045c1a44df08c1472f5a95742628a2765c1be9d1 (diff) | |
download | hercules-02bb58d320f16ddc30ac3d1e6508cf08997f583a.tar.gz hercules-02bb58d320f16ddc30ac3d1e6508cf08997f583a.tar.bz2 hercules-02bb58d320f16ddc30ac3d1e6508cf08997f583a.tar.xz hercules-02bb58d320f16ddc30ac3d1e6508cf08997f583a.zip |
Added missing status icons for 14602,14603,14604 and 14605
As proposed by evilpuncker in http://hercules.ws/board/topic/1230-few-items-missing-buff-icons/
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 43 |
1 files changed, 42 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c index 48ad1e239..fdee5b954 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -8814,6 +8814,27 @@ int status_change_start(struct block_list* bl,enum sc_type type,int rate,int val if (battle_config.sc_castcancel&bl->type) unit_skillcastcancel(bl, 0); break; + /* */ + case SC_ITEMSCRIPT: + if( sd ) { + switch( val1 ) { + //case 4121://Phree + //case 4047://Ghostring + case 4302://Gunka + clif->status_change(bl,SI_MVPCARD_TAOGUNKA,1,tick,0,0,0); + break; + case 4132://Mistress + clif->status_change(bl,SI_MVPCARD_MISTRESS,1,tick,0,0,0); + break; + case 4143://Orc Hero + clif->status_change(bl,SI_MVPCARD_ORCHERO,1,tick,0,0,0); + break; + case 4135://Orc Lord + clif->status_change(bl,SI_MVPCARD_ORCLORD,1,tick,0,0,0); + break; + } + } + break; } // Set option as needed. @@ -9245,7 +9266,7 @@ int status_change_end_(struct block_list* bl, enum sc_type type, int tid, const vd = status_get_viewdata(bl); calc_flag = StatusChangeFlagTable[type]; - switch(type){ + switch(type) { case SC_GRANITIC_ARMOR:{ int dammage = status->max_hp*sce->val3/100; if(status->hp < dammage) //to not kill him @@ -9657,6 +9678,26 @@ int status_change_end_(struct block_list* bl, enum sc_type type, int tid, const case SC_FULL_THROTTLE: sc_start(bl,SC_REBOUND,100,sce->val1,skill->get_time2(ALL_FULL_THROTTLE,sce->val1)); break; + case SC_ITEMSCRIPT: + if( sd ) { + switch( sce->val1 ) { + //case 4121://Phree + //case 4047://Ghostring + case 4302://Gunka + clif->sc_end(&sd->bl, sd->bl.id, SELF, SI_MVPCARD_TAOGUNKA); + break; + case 4132://Mistress + clif->sc_end(&sd->bl, sd->bl.id, SELF, SI_MVPCARD_MISTRESS); + break; + case 4143://Orc Hero + clif->sc_end(&sd->bl, sd->bl.id, SELF, SI_MVPCARD_ORCHERO); + break; + case 4135://Orc Lord + clif->sc_end(&sd->bl, sd->bl.id, SELF, SI_MVPCARD_ORCLORD); + break; + } + } + break; } opt_flag = 1; |