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

 

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

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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

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