christofereduardo Posted March 5, 2019 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 36 Reputation: 2 Joined: 06/06/13 Last Seen: April 15 Share Posted March 5, 2019 @@ -20747,11 +21020,16 @@ void clif_equipswitch_reply( struct map_session_data* sd, bool failed ){ void clif_parse_equipswitch_request( int fd, struct map_session_data* sd ){ #if PACKETVER >= 20170208 int i; + char output[128]; t_tick tick = gettick(); uint16 skill_id = ALL_EQSWITCH, skill_lv = 1; + if (pc_checkskill(sd,ALL_EQSWITCH)) + skill_lv = pc_checkskill(sd,ALL_EQSWITCH); if( DIFF_TICK(tick, sd->equipswitch_tick) < 0 ) { // Client will not let you send a request + sprintf(output, "[Swap Equipment Delay]: %I64i seconds remaining...", (DIFF_TICK(tick, sd->equipswitch_tick)/1000)*-1); + clif_messagecolor(&sd->bl,color_table[COLOR_CYAN],output,false,SELF); return; } Where should I put this in the file clif.cpp can someone help me Quote Link to comment Share on other sites More sharing options...
Question
christofereduardo
@@ -20747,11 +21020,16 @@ void clif_equipswitch_reply( struct map_session_data* sd, bool failed ){ void clif_parse_equipswitch_request( int fd, struct map_session_data* sd ){ #if PACKETVER >= 20170208 int i; + char output[128]; t_tick tick = gettick(); uint16 skill_id = ALL_EQSWITCH, skill_lv = 1; + if (pc_checkskill(sd,ALL_EQSWITCH)) + skill_lv = pc_checkskill(sd,ALL_EQSWITCH); if( DIFF_TICK(tick, sd->equipswitch_tick) < 0 ) { // Client will not let you send a request + sprintf(output, "[Swap Equipment Delay]: %I64i seconds remaining...", (DIFF_TICK(tick, sd->equipswitch_tick)/1000)*-1); + clif_messagecolor(&sd->bl,color_table[COLOR_CYAN],output,false,SELF); return; }
Where should I put this in the file clif.cpp can someone help me
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.