Hello, How to make this last for 3 minutes clif_specialeffect(bl, 679, AREA); or how to make it display when a specific status is set?
Because I want to create a scroll for aura. If they use the scroll they have a effect that will last only in 3minutes.
Example is this.
int skill_enchant_elemental_end (struct block_list *bl, int type){ struct status_change *sc; const enum sc_type scs[] = { SC_ENCPOISON, SC_ASPERSIO, SC_FIREWEAPON, SC_WATERWEAPON, SC_WINDWEAPON, SC_EARTHWEAPON, SC_SHADOWWEAPON, SC_GHOSTWEAPON, SC_ENCHANTARMS }; int i; nullpo_ret(bl); nullpo_ret(sc= status_get_sc(bl)); clif_specialeffect(bl, 382, ALL_CLIENT); if (!sc->count) return 0; for (i = 0; i < ARRAYLENGTH(scs); i++) if (type != scs && sc->data[scs]) status_change_end(bl, scs, INVALID_TIMER); return 0;}
The problem is the effect will be lost if you try to warp or use flywings. I want the effect to last until a certain time.
Because I want to create a scroll for aura. If they use the scroll they have a effect that will last only in 3minutes.
Example is this.
int skill_enchant_elemental_end (struct block_list *bl, int type){ struct status_change *sc; const enum sc_type scs[] = { SC_ENCPOISON, SC_ASPERSIO, SC_FIREWEAPON, SC_WATERWEAPON, SC_WINDWEAPON, SC_EARTHWEAPON, SC_SHADOWWEAPON, SC_GHOSTWEAPON, SC_ENCHANTARMS }; int i; nullpo_ret(bl); nullpo_ret(sc= status_get_sc(bl)); clif_specialeffect(bl, 382, ALL_CLIENT); if (!sc->count) return 0; for (i = 0; i < ARRAYLENGTH(scs); i++) if (type != scs && sc->data[scs]) status_change_end(bl, scs, INVALID_TIMER); return 0;}
The problem is the effect will be lost if you try to warp or use flywings. I want the effect to last until a certain time.
Last edited by a moderator: