Jump to content
  • 0

How to add cool down after usage of an usable item?


Currently

Question


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  313
  • Reputation:   1
  • Joined:  01/22/12
  • Last Seen:  

Red Raffle Sap (11522) have a 1 second delay cool down right after usage.

 

How do I do that? IS it database or source?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/db/item_delay.txt

 

1000 ms = 1 second.

// Item Delay Database
// There is a max concurrent number of entries modifiable in src/map/itemdb.h as MAX_ITEMDELAYS
//
// Structure:
// Item ID,Delay in Milliseconds

//12202,60000    //Str_Dish10_
//12203,60000    //Agi_Dish10_
//12204,60000    //Int_Dish10_
//12205,60000    //Dex_Dish10_
//12206,60000    //Luk_Dish10_
//12207,60000    //Vit_Dish10_
12208,60000    //Battle_Manual
12210,60000    //Bubble_Gum
14538,300000    //Glass_Of_Illusion
14586,180000    //Spark_Candy
607,5000    // Yggdrasil_Berry
608,3000    // Yggdrasil_Seed

// Bifrost Items
11522,1000    // Red_Raffle_Sap
11523,2000    // Yellow_Raffle_Sap
11524,3000    // White_Raffle_Sap
11525,5000    // Mora_Hip_Tea
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...