Jump to content
  • 0
Brynner

item drop delay

Question

how can i make this compatible with hercules?

 

Index: pc.c===================================================================--- pc.c	(revision 17269)+++ pc.c	(working copy)@@ -578,6 +578,7 @@ 	sd->state.active = 0; //to be set to 1 after player is fully authed and loaded. 	sd->bl.type      = BL_PC; 	sd->canlog_tick  = gettick();+	sd->candrop_tick = 0; 	//Required to prevent homunculus copuing a base speed of 0. 	sd->battle_status.speed = sd->base_status.speed = DEFAULT_WALK_SPEED; 	return 0;@@ -3999,6 +4000,12 @@ 		return 0; //Can't drop items in nodrop mapflag maps. 	} +	if ( sd->candrop_tick && DIFF_TICK(gettick(), sd->candrop_tick) < 5000)+	{+		clif_displaymessage(sd->fd, "Please wait 5 seconds before dropping another item.");+		return 0;+	}+ 	if( !pc_candrop(sd,&sd->status.inventory[n]) ) 	{ 		clif_displaymessage (sd->fd, msg_txt(sd,263));@@ -4009,6 +4016,7 @@ 		return 0;  	pc_delitem(sd, n, amount, 1, 0, LOG_TYPE_PICKDROP_PLAYER);+	sd->candrop_tick = gettick(); 	clif_dropitem(sd, n, amount); 	return 1; }Index: pc.h===================================================================--- pc.h	(revision 17269)+++ pc.h	(working copy)@@ -230,6 +230,7 @@  	int invincible_timer; 	unsigned int canlog_tick;+	unsigned int candrop_tick; 	unsigned int canuseitem_tick;	// [Skotlex] 	unsigned int canusecashfood_tick; 	unsigned int canequip_tick;	// [Inkfish]

 

thanks in advance.

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

everything is fine:

you just need to make a minor change:

clif_displaymessage to clif->message

oh ok thank you.

Share this post


Link to post
Share on other sites
  • 0

sir i have a question. i'm having a warning for 'clif_broadcast2'? what is the substitute for this?

Share this post


Link to post
Share on other sites
  • 0

sir i have a question. i'm having a warning for 'clif_broadcast2'? what is the substitute for this?

clif->broadcast2

Share this post


Link to post
Share on other sites
  • 0

 

sir i have a question. i'm having a warning for 'clif_broadcast2'? what is the substitute for this?

clif->broadcast2

thanks but its already solve.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.