Search the Community
Showing results for tags 'delay'.
Found 2 results
-
Hi, I was trying to create an item group delay. I tried editing itemdb.c and pc.c but didn't have any success. To be more specific, let me give you an example of what I want: If I consume a Red Potion, I'd like that the Orange, Yellow, White and the Red Potions get the same delay to use again (let's say 5 seconds). So it won't be possible to use any potion again if I consumed a Red, Orange, Yellow or White Potion in the last 5 seconds. I hope what I have requested is possible. In the meantime, thank you for your attention.
-
In the following code in channel.c, when your tick is not at 0 it will direct you to message 1455, "You're talking too fast!" if (sd && chan->msg_delay != 0 && DIFF_TICK(sd->hchsysch_tick + chan->msg_delay*1000, timer->gettick()) > 0 && !pc_has_permission(sd, PC_PERM_HCHSYS_ADMIN)) { clif->messagecolor_self(sd->fd, COLOR_RED, msg_sd(sd,1455)); return; } I wish to display the remaining ticks (seconds) instead of a static message. E.g. message 1455, "You cannot send a message to this channel for another %d seconds." Thanks.