Auto-Reraise
Auto-Reraise
I'm interested in adding Auto-Reraise to signet and/or bringing the effect in via armor like on Twilight Mail/Helm in retail but haven't come across it all. I've looked for Auto-Refresh(SMN) and Auto-Regen(WHM) to try and create it but haven't had much luck in finding those either. I found the MOD_REFRESH/MOD_REGEN and EFFECT_REFRESH/EFFECT_REGEN in dsp/scripts/globals/status but not sure how those translate to their auto counterparts. Thanks in advance for any assistance.
-
- Developer
- Posts: 539
- Joined: Sun Jul 22, 2012 12:17 am
Re: Auto-Reraise
You've stumbled onto an unfortunate coincidence.
Refresh and Regen are all handled by a core function rather than the normal status effect engine, so the Lua files really don't do too much anymore. There's not a lot to learn there.
Refresh and Regen are all handled by a core function rather than the normal status effect engine, so the Lua files really don't do too much anymore. There's not a lot to learn there.
Test Server: Hanekawa | Fantasy World: Naito
An occasionally updated list of what works
Bugs reports go here. | Project chat here.
Things I've found, but don't plan to work on.
An occasionally updated list of what works
Bugs reports go here. | Project chat here.
Things I've found, but don't plan to work on.
Re: Auto-Reraise
It's not the best way to do it but it'd probably work more or less. Couldn't you set it up this way?
In scripts/globals/effects/signet.lua, in OnEffectTick add the following line?
target:addStatusEffect(EFFECT_RERAISE,1,0,0);
Should refresh reraise every tick (so will still have reraise even after you die and raise back up as long as you have signet on)
In scripts/globals/effects/signet.lua, in OnEffectTick add the following line?
target:addStatusEffect(EFFECT_RERAISE,1,0,0);
Should refresh reraise every tick (so will still have reraise even after you die and raise back up as long as you have signet on)
Re: Auto-Reraise
Hello,
I've been trying to add some effects to signet and can't seem to get it working.
I tried adding this to the file:
target:addStatusEffectEx(EFFECT_AUTO_REFRESH,0,1,3,0,11811);
target:addStatusEffectEx(EFFECT_AUTO_REGEN,0,1,3,0,11811);
This didn't work though, is there some other way I should add things to signet? I've seen other servers have this, I just can't figure out how they did it.
I've been trying to add some effects to signet and can't seem to get it working.
I tried adding this to the file:
target:addStatusEffectEx(EFFECT_AUTO_REFRESH,0,1,3,0,11811);
target:addStatusEffectEx(EFFECT_AUTO_REGEN,0,1,3,0,11811);
This didn't work though, is there some other way I should add things to signet? I've seen other servers have this, I just can't figure out how they did it.
Re: Auto-Reraise
i'm assuming you're editing the signet.lua in effects, and this is in onEffectGain? Probably shouldn't add effects inside effects - if you want to add mods to signet, just add the modifier with addModDragol wrote:Hello,
I've been trying to add some effects to signet and can't seem to get it working.
I tried adding this to the file:
target:addStatusEffectEx(EFFECT_AUTO_REFRESH,0,1,3,0,11811);
target:addStatusEffectEx(EFFECT_AUTO_REGEN,0,1,3,0,11811);
This didn't work though, is there some other way I should add things to signet? I've seen other servers have this, I just can't figure out how they did it.
Re: Auto-Reraise
Cool, thanks! I figured it out from there. The first time I tried mod I didnt pass in the parameters it wanted.