Brynner 34 Posted April 19, 2013 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. Quote Share this post Link to post Share on other sites
0 Judas 100 Posted April 19, 2013 everything is fine: you just need to make a minor change: clif_displaymessage to clif->message Quote Share this post Link to post Share on other sites
0 Brynner 34 Posted April 19, 2013 everything is fine: you just need to make a minor change: clif_displaymessage to clif->message oh ok thank you. Quote Share this post Link to post Share on other sites
0 Brynner 34 Posted April 19, 2013 sir i have a question. i'm having a warning for 'clif_broadcast2'? what is the substitute for this? Quote Share this post Link to post Share on other sites
0 Wend 0 Posted April 19, 2013 sir i have a question. i'm having a warning for 'clif_broadcast2'? what is the substitute for this? clif->broadcast2 Quote Share this post Link to post Share on other sites
0 Brynner 34 Posted April 19, 2013 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. Quote Share this post Link to post Share on other sites
how can i make this compatible with hercules?
thanks in advance.
Share this post
Link to post
Share on other sites