Jump to content
  • 0

delay usable after using a certain item


icabit

Question


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  353
  • Reputation:   70
  • Joined:  07/14/12
  • Last Seen:  

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

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.01
  • Content Count:  105
  • Reputation:   7
  • Joined:  04/11/22
  • Last Seen:  

On 9/6/2014 at 11:31 PM, icabit said:

bump

Hi! Did you ever find something about this?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.01
  • Content Count:  105
  • Reputation:   7
  • Joined:  04/11/22
  • Last Seen:  

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!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  383
  • Reputation:   78
  • Joined:  10/30/12
  • Last Seen:  

/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

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  353
  • Reputation:   70
  • Joined:  07/14/12
  • Last Seen:  

bump

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  353
  • Reputation:   70
  • Joined:  07/14/12
  • Last Seen:  

bump

Link to comment
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.   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.

×
×
  • Create New...