Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Timer or loop


Saki
 Share

Recommended Posts

Hello.

I do scripted spell (buff) what give  +10 dmg. This buff when was started must take -2 mana points every 2sec. and must turn on one hour. When mana is low 10 ponts or script working one hour buff must stop.

So better do only loop, timer or loop and timer ?

PS. Sorry for my english.
Link to comment
Share on other sites

You'll need a timer either way. Whether you tie it to a global timer or a player based one is up to you though. Just keep a list of who is affected by said debuff and loop through this list. :) Saves you from looping through every online player.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...