Saki Posted January 30, 2014 Author Share Posted January 30, 2014 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 More sharing options...
Joyce Posted January 30, 2014 Share Posted January 30, 2014 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 More sharing options...
Saki Posted January 30, 2014 Author Share Posted January 30, 2014 This list is to be created in new file (.txt or .dat) ? Link to comment Share on other sites More sharing options...
Joyce Posted January 31, 2014 Share Posted January 31, 2014 No, in memory. :) It's really bad to keep reading/writing data to the disk when you're going to use it every other second. Link to comment Share on other sites More sharing options...
Saki Posted January 31, 2014 Author Share Posted January 31, 2014 How i can send animation to player (i need command)?I want write number animation manually- i have problem with this.PS: Im using EO 3.0 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now