Syner Posted January 8, 2009 Author Share Posted January 8, 2009 I don't like the regeneration rates that come automatically with the game and I'm tryign to develop my own but I can't get it to work, basically I have it so if server seconds are equal to or more than 0 it would increase the person's HP and MP by 1% but I can't get it to start …here is the script.Sub TimedEvent(Hours, Minutes, Seconds)Dim HPRegenDim MPRegenHPRegen = (GetPlayerMaxHP(index) / 10)MPRegen = (GetPlayerMaxMP(index) / 10)If Seconds => 0 ThenCall SetPlayerHP(index, GetPlayerHP(index) + HPRegen)Call SetPlayerMP(index, GetPlayerMP(index) + MPRegen)End IfLoopEnd Sub Link to comment Share on other sites More sharing options...
DarkMazer Posted January 9, 2009 Share Posted January 9, 2009 It's been said before, but Index isn't a variable in Sub TimedEvents. If you want to get everyone to regenerate, you have to Dim Index, and add For Index = 1 To MAX_PLAYERS. Also, if it's the time between regenerations you have problems with, you can change it in data.ini… 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