• 0
Tassadar

remove @effect in character

Question

Good night. A [gm] from my server was testing various visual items and some of them put this @effect in the character and I did not find it in the official documentation, nor here in the forum as it does to remove an already applied effect on a character.

I thank the attention.

 

effect.png

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
1 hour ago, Tassadar said:

Good night. A [gm] from my server was testing various visual items and some of them put this @effect in the character and I did not find it in the official documentation, nor here in the forum as it does to remove an already applied effect on a character.

I thank the attention.

 

effect.png

For test (Remove all hat_effects and add selected effect to char)
ID 0 = no effect

prontera,170,180,1	script	Test hat effect#test_effects	122,{
	for(.@i = 0; .@i < 100; ++.@i){
		hateffect .@i,false;
	}
  	input .@ID;
  	hateffect .@ID,true;
	end;
}

Script info: https://github.com/rathena/rathena/blob/master/doc/script_commands.txt

*hateffect(<Hat Effect ID>,<State>);

This will set a Hat Effect onto the player. The state field allows you to
enable (true) or disable (false) the effect on the player.
The Hat Effect constants can be found in 'src/map/script_constants.h' starting
with HAT_EF_*.

Requires client 2015-05-13aRagEXE or newer.

You can change effects in your data.grf (hateffectinfo.lub)
hatEffectID = effect ID
image.thumb.png.c236b54124c1b70579899a99c34c7774.png

Edited by Balfear
  • Upvote 1
  • Like 1

Share this post


Link to post
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.

Loading...