summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorpanikon <panikon@zoho.com>2014-02-22 13:28:46 -0300
committerpanikon <panikon@zoho.com>2014-02-22 13:28:46 -0300
commiteedb111a26c994ec9044aadb05bebc0207e0f3e2 (patch)
tree477c532597c3ac6ec9fdc82fc0b7c35dd7988e1d /src/map/pc.c
parentf0633c23bb502a46488c30495f8cd6cbf035c7ce (diff)
downloadhercules-eedb111a26c994ec9044aadb05bebc0207e0f3e2.tar.gz
hercules-eedb111a26c994ec9044aadb05bebc0207e0f3e2.tar.bz2
hercules-eedb111a26c994ec9044aadb05bebc0207e0f3e2.tar.xz
hercules-eedb111a26c994ec9044aadb05bebc0207e0f3e2.zip
Changed function types related to SG days in date.c
Changed types in clif.c: bool clif_setip -> map:ip_set, map: char_ip_set changed as well bool clif_setbindip bool clif_send bool clif_spawn void clif_homskillinfoblock bool clif_sub_guild_invite Note that return values of those types have changed, so if any modification uses their return values it should be changed. clif_disp_onlyself replaced as a macro clif_viewequip_fail replaced as a macro Merged clif_skillup and clif_guild_skillup as they were using the same packet Added packet_len() values in clif_updatestatus
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 394a08d75..284a459e7 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -3752,7 +3752,7 @@ int pc_payzeny(struct map_session_data *sd,int zeny, enum e_log_pick_type type,
if( zeny > 0 && sd->state.showzeny ) {
char output[255];
sprintf(output, "Removed %dz.", zeny);
- clif->disp_onlyself(sd,output,strlen(output));
+ clif_disp_onlyself(sd,output,strlen(output));
}
return 0;
@@ -3794,7 +3794,7 @@ int pc_paycash(struct map_session_data *sd, int price, int points)
{
char output[128];
sprintf(output, msg_txt(504), points, cash, sd->kafraPoints, sd->cashPoints);
- clif->disp_onlyself(sd, output, strlen(output));
+ clif_disp_onlyself(sd, output, strlen(output));
}
return cash+points;
}
@@ -3819,7 +3819,7 @@ int pc_getcash(struct map_session_data *sd, int cash, int points)
if( battle_config.cashshop_show_points )
{
sprintf(output, msg_txt(505), cash, sd->cashPoints);
- clif->disp_onlyself(sd, output, strlen(output));
+ clif_disp_onlyself(sd, output, strlen(output));
}
return cash;
}
@@ -3842,7 +3842,7 @@ int pc_getcash(struct map_session_data *sd, int cash, int points)
if( battle_config.cashshop_show_points )
{
sprintf(output, msg_txt(506), points, sd->kafraPoints);
- clif->disp_onlyself(sd, output, strlen(output));
+ clif_disp_onlyself(sd, output, strlen(output));
}
return points;
}
@@ -3880,7 +3880,7 @@ int pc_getzeny(struct map_session_data *sd,int zeny, enum e_log_pick_type type,
if( zeny > 0 && sd->state.showzeny ) {
char output[255];
sprintf(output, "Gained %dz.", zeny);
- clif->disp_onlyself(sd,output,strlen(output));
+ clif_disp_onlyself(sd,output,strlen(output));
}
return 0;
@@ -6040,7 +6040,7 @@ int pc_gainexp(struct map_session_data *sd, struct block_list *src, unsigned int
char output[256];
sprintf(output,
"Experience Gained Base:%u (%.2f%%) Job:%u (%.2f%%)",base_exp,nextbp*(float)100,job_exp,nextjp*(float)100);
- clif->disp_onlyself(sd,output,strlen(output));
+ clif_disp_onlyself(sd,output,strlen(output));
}
return 1;
@@ -6341,7 +6341,7 @@ int pc_skillup(struct map_session_data *sd,uint16 skill_id) {
else
pc->check_skilltree(sd, skill_id); // Check if a new skill can Lvlup
- clif->skillup(sd,skill_id);
+ clif->skillup(sd,skill_id, sd->status.skill[index].lv, 1);
clif->updatestatus(sd,SP_SKILLPOINT);
if( skill_id == GN_REMODELING_CART ) /* cart weight info was updated by status_calc_pc */
clif->updatestatus(sd,SP_CARTINFO);