Jump to content
  • 0

HatEffect NPC Script


Question

6 answers to this question

Recommended Posts

  • 0
Posted
*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.hpp' starting
with HAT_EF_*.

Requires client 2015-05-13aRagEXE or newer.

You should specify exactly what you want.... but here is the script command for hateffect.

  • 0
Posted
19 hours ago, cook1e said:
*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.hpp' starting
with HAT_EF_*.

Requires client 2015-05-13aRagEXE or newer.

You should specify exactly what you want.... but here is the script command for hateffect.

No, no bro i need hatteffect test NPC script.  I test it but dont work

 

prontera,155,150,4	script	teste	810,{
end;
	
OnMy:
	input .@number;
	hateffect .@number,true;
	end;
	
OnMy2:
hateffect 165,true;
end;
	
OnInit:
	bindatcmd "efc",strnpcinfo(3)+"::OnMy";
	bindatcmd "ef",strnpcinfo(3)+"::OnMy2";
	
}

 

  • 0
Posted (edited)
14 hours ago, mR L said:
prontera,152,179,4	script	teste	810,{
	input .@number;
	if (.@number < 1) end;
	for(.@i = 0; .@i < 160; ++.@i)
		hateffect .@i,false;
	hateffect .@number,true;
	end;
}

#Source

Ty sure, i need it ? But can i make it permanent?

Edited by Fabre01
  • 0
Posted (edited)
14 hours ago, Fabre01 said:

Ty sure, i need it ? But can i make it permanent?

 

Spoiler
-	script	hateffectonLogin	FAKE_NPC,{

OnPCLoginEvent:
	@name$ = strcharinfo(0);
	if (@name$ == "mR L")
		hateffect 1,true;
	end;
}

 

** Note **
if the hat effect didn't appear, just @refresh or @go 0

Edited by mR L
  • Like 1
  • 0
Posted
9 hours ago, mR L said:

 

  Hide contents
-	script	hateffectonLogin	FAKE_NPC,{

OnPCLoginEvent:
	@name$ = strcharinfo(0);
	if (@name$ == "mR L")
		hateffect 1,true;
	end;
}

 

** Note **
if the hat effect didn't appear, just @refresh or @go 0

Thank you for your help. I am hateffect files chance enchant system currently preparing. I hope I can achieve more efficient results.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...