Jump to content
  • 0

delay usable after using a certain item


Question

Posted

my problem is about usable items

specifically on this example

 

in item delay i added their respective delay on consume

like

607,5000//ygg berry

608,4000//ygg seed

504,3000//white pots

 

when i use item 607 it will give me the delay of 5 seconds but within that 5 seconds i can use another usable like item 608 or 607. 

so basically players can use another usable while the 1st usable used was still in cooldown

 

any idea's how to script this? i tried google but i failed

5 answers to this question

Recommended Posts

  • 0
Posted
38 minutes ago, zeusc137 said:

Hi! Did you ever find something about this?

I found out nowadays we can configure the delay directly inside item_db_usable.yml in my case:
 

    - Id: 999999
    AegisName: Some_Aegis_Name
    Name: Example Name
    Type: Delayconsume
    Flags:
      NoConsume: true
    Delay:
      Duration: 500

I hope that helps someone!

  • 0
Posted

/conf/battle/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

 

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