Jump to content
  • 0

Special effect that have time limit.


Reducto

Question


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  231
  • Reputation:   9
  • Joined:  12/16/11
  • Last Seen:  

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[i] && sc->data[scs[i]])
   status_change_end(bl, scs[i], 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.

Edited by Reducto
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  58
  • Reputation:   4
  • Joined:  07/10/13
  • Last Seen:  

Can you try to put it in the script of the item? I read something about it yesterday. Try to search @aura or @aurasets.

 

 

EDIT:

 

Found it

 

http://rathena.org/board/topic/79770-atcommand-aura/

Edited by redhotzip
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...