diff options
author | shennetsind <ind@henn.et> | 2013-05-07 19:02:38 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-05-07 19:02:38 -0300 |
commit | 36383ebd1423d2c8f6e0495046de27708160109c (patch) | |
tree | 677058ef25197255ccf131e531382b697cc15f2f /src/map/skill.c | |
parent | d95d6891713747e058b2cedf7e5811a6918f71d4 (diff) | |
download | hercules-36383ebd1423d2c8f6e0495046de27708160109c.tar.gz hercules-36383ebd1423d2c8f6e0495046de27708160109c.tar.bz2 hercules-36383ebd1423d2c8f6e0495046de27708160109c.tar.xz hercules-36383ebd1423d2c8f6e0495046de27708160109c.zip |
Cart Fix
cart 'items' button no longer remains visible after the cart has been removed. -- Special Thanks to Wolfed.
Improved status change end, now only sends the termination packet to those that matter, as opposed to always sending to those nearby, and made it smaller.
Made possible thanks to super awesome Yommy :3
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index d29861f4c..c17004793 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -158,12 +158,12 @@ int skill_get_index( uint16 skill_id ) { else if( skill_id > 1019 && skill_id < 8001 ) { if( skill_id < 2058 ) // 1020 - 2000 are empty skill_id = 1020 + skill_id - 2001; - else if( skill_id < 2549 ) // 2058 - 2200 are empty - skill_id = (1020+56) + skill_id - 2201; - else if ( skill_id < 3036 ) // 2549 - 3000 are empty - skill_id = (1020+56+348) + skill_id - 3001; - else if ( skill_id < 5019 ) // 3036 - 5000 are empty - skill_id = (1020+56+348+35) + skill_id - 5001; + else if( skill_id < 2549 ) // 2058 - 2200 are empty - 1020+57 + skill_id = (1077) + skill_id - 2201; + else if ( skill_id < 3036 ) // 2549 - 3000 are empty - 1020+57+348 + skill_id = (1425) + skill_id - 3001; + else if ( skill_id < 5019 ) // 3036 - 5000 are empty - 1020+57+348+35 + skill_id = (1460) + skill_id - 5001; else ShowWarning("skill_get_index: skill id '%d' is not being handled!\n",skill_id); } @@ -14382,9 +14382,9 @@ int skill_sit (struct map_session_data *sd, int type) } if( type ) { - clif->status_change(&sd->bl, SI_SIT, 1, 0, 0, 0, 0); + clif->sc_load(&sd->bl,sd->bl.id,SELF,SI_SIT,0,0,0); } else { - clif->status_change(&sd->bl, SI_SIT, 0, 0, 0, 0, 0); + clif->sc_end(&sd->bl,sd->bl.id,SELF,SI_SIT); } if (!flag) return 0; |