Go Back   EQEmulator Home > EQEmulator Forums > Support > Spell Support

Spell Support Broken Spells? Want them Fixed? Request it here.

Reply
 
Thread Tools Display Modes
  #1  
Old 10-12-2015, 08:16 PM
Mortykins's Avatar
Mortykins
Hill Giant
 
Join Date: Apr 2014
Posts: 156
Default 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
Reply With Quote
  #2  
Old 10-12-2015, 09:33 PM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,164
Default

Why not just permanent? (formula 50)
Reply With Quote
  #3  
Old 10-12-2015, 09:34 PM
AdrianD
Discordant
 
Join Date: Dec 2013
Posts: 297
Default

Just about to say..

Quote:
case 50: // Permanent. Cancelled by casting/combat for perm invis, non-lev zones for lev, curing poison/curse
// counters, etc.
return -1;
case 51: // Permanent. Cancelled when out of range of aura.
return -4;
Reply With Quote
  #4  
Old 10-13-2015, 01:42 PM
Mortykins's Avatar
Mortykins
Hill Giant
 
Join Date: Apr 2014
Posts: 156
Default

So perma lasts 5 days?
Reply With Quote
  #5  
Old 10-13-2015, 02:09 PM
AdrianD
Discordant
 
Join Date: Dec 2013
Posts: 297
Default

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.
Reply With Quote
  #6  
Old 10-13-2015, 02:39 PM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,164
Default

Quote:
Originally Posted by Mortykins View Post
So perma lasts 5 days?
No, they last until they are removed somehow. If you really want 5 days just set both to 72000 (5 days in ticks) that will work, but why not just make them perma buffs? You can make these still dispellable, not persistent through death etc, those are controlled by other fields. A perma duration just means it can not fade due to time.


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.
Reply With Quote
  #7  
Old 10-13-2015, 03:17 PM
Mortykins's Avatar
Mortykins
Hill Giant
 
Join Date: Apr 2014
Posts: 156
Default

Thanks got it
Reply With Quote
  #8  
Old 10-21-2015, 11:44 PM
Mortykins's Avatar
Mortykins
Hill Giant
 
Join Date: Apr 2014
Posts: 156
Default

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?
Reply With Quote
  #9  
Old 10-22-2015, 12:36 AM
atrayas
Hill Giant
 
Join Date: Jun 2010
Posts: 105
Default

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.
Reply With Quote
  #10  
Old 10-22-2015, 12:41 AM
Mortykins's Avatar
Mortykins
Hill Giant
 
Join Date: Apr 2014
Posts: 156
Default

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 ?
Reply With Quote
  #11  
Old 10-22-2015, 02:36 AM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,164
Default

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.
Reply With Quote
  #12  
Old 10-22-2015, 07:19 PM
Mortykins's Avatar
Mortykins
Hill Giant
 
Join Date: Apr 2014
Posts: 156
Default

I tried to set that field to like 1, and 0, and -1, but nothing seemed to work
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 11:49 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3