Jump to content
  • 0

How to add effect delay to items


drifterxxxx2

Question


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.02
  • Content Count:  83
  • Reputation:   3
  • Joined:  10/22/17
  • Last Seen:  

Hi

I'm making several custom items and I was wondering how to add a delay of 1 sec to the effect on potions

I have this so far

35027,T_Potion,Test Potion,0,1,,50,,,,,0xFFFFFFFF,63,2,,,,,,{ itemheal rand(325,405),0; { specialeffect2 207; sleep2 1000; } },{},{}

but it isn't working :(

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  403
  • Reputation:   245
  • Joined:  12/17/11
  • Last Seen:  

Hi, this is easier to accomplish through the db/(pre-)re/item_delay.txt file. Simply add an entry under the // Misc tab, like so:

35027,1000	// Test Potion

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.02
  • Content Count:  83
  • Reputation:   3
  • Joined:  10/22/17
  • Last Seen:  

12 hours ago, Najara said:

Hi, this is easier to accomplish through the db/(pre-)re/item_delay.txt file. Simply add an entry under the // Misc tab, like so:


35027,1000	// Test Potion

 

Thanks for your response

I'm aware of item_delay I just wanted to add a delay on the effect, more like learn how to

I thought sleep2 would pause the script specialeffect2 but it is not working

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

Well you could try to add sleep2 before the effect. Not sure if it helps tho.

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