Jump to content
  • 0

Global Cooldown for Healing Items.


Question

Posted

Hi,

Is there anyway to place a global cooldown on all healing item? I tried adding cooldown manually on all healing item on item_delay.txt but players can still use other healing item while waiting for the cooldown for one potion.

Also, is there any way to change the text send for waiting item cooldown?

"Item failed: Item is cooldown down. Please wait % seconds."

Thanks in advance.

5 answers to this question

Recommended Posts

Posted

tried this ??

https://rathena.svn....ttle/items.conf

// How much time must pass between item uses?
// Only affects the delay between using items, prevents healing item abuse. Recommended ~500 ms
// On officials this is 0, but it's set to 100ms as a measure against bots/macros.
item_use_interval: 100

That is the item delay for all usable items. I need to make this only for healing items it is possible to use item_group_id?

Adding delay on that will also put delay on items such as wing of fly/ butterfly.

Posted

Hello itried to patch it but i got error on this part

 //Prevent mass item usage. [skotlex] if( DIFF_TICK(sd->canuseitem_tick, tick) > 0 || - (itemdb_iscashfood(sd->status.inventory[n].nameid) && DIFF_TICK(sd->canusecashfood_tick, tick) > 0) + (itemdb_iscashfood(sd->status.inventory[n].nameid) && DIFF_TICK(sd->canusecashfood_tick, tick) > 0) || + DIFF_TICK(sd->canusehealingitem_tick, tick) > 0 ) return 0;

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...