Jump to content
  • 0

ExtendedBG_rev7 HELP clif.cpp


christofereduardo

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   2
  • Joined:  06/06/13
  • Last Seen:  

@@ -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

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...