Long lasting spells
Hi Folks,
Just trying to create a new clicky buff line, and would like the spells to last at least 5 days , is there a way to do this ? Seems like every duration I try to set it won't reach anywhere near that long, almost like the duration formula's themselves are capped. Mort |
Why not just permanent? (formula 50)
|
Just about to say..
Quote:
|
So perma lasts 5 days?
|
Heh.
Just a suggestion. I assume you have your reason for wanting it to last a definitive amount of time. I don't know if there is a cap. I saw something possibly related as I was skimming through C++ files related to Bards and 16 hours. That's as far as I got but, below is where I found the formulas. Maybe a custom formula can be created for your needs. <int CalcBuffDuration_formula(int level, int formula, int duration)> - \zone\spells.cpp(~2746) Good day. |
Quote:
Basically, a buffdurationformula of 1-15, 50, and 51 has some sort of meaning to it. A buffdurationformula greater than 200 will just use the buffdurationformula as the duration. The buffduration is really just a cap that is used with every formula. So you can use a buffdurationformula of 99999999 or something ridiculous and just use a buffduration as what you want the duration to be. |
Thanks got it :)
|
Ok so got it so they last 7 days, however how can i set it so they can't accidentally click them off ? I tried to set the "Deleteable" field to nothing, also put a check into it and they are still able to click them off, any ideas?
|
One thing ive done in the past with long duration buffs is instead of having them go to the spell window i have them go to the song window. Less chance of them being clicked off that way imo.
|
oh yeah , excellent idea !
(edit) , OK so made them Short Buff Box, put them in song window but when i zone the effect vanishes... How did you go about fixing that ? |
I think it's field232? Or no_remove if you ran the optional SQL update.
I think that's mostly a client thing? But we do have the server checking against it too now. |
I tried to set that field to like 1, and 0, and -1, but nothing seemed to work
|
All times are GMT -4. The time now is 03:51 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.