Jump to content
  • 0

HatEffect NPC Script


Fabre01

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.01
  • Content Count:  21
  • Reputation:   0
  • Joined:  12/12/21
  • Last Seen:  

I have new hat effect but i need NPC script. Help me please.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   68
  • Joined:  10/25/20
  • Last Seen:  

*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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.01
  • Content Count:  21
  • Reputation:   0
  • Joined:  12/12/21
  • Last Seen:  

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";
	
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  177
  • Reputation:   25
  • Joined:  12/24/14
  • Last Seen:  

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

  • MVP 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.01
  • Content Count:  21
  • Reputation:   0
  • Joined:  12/12/21
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  177
  • Reputation:   25
  • Joined:  12/24/14
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.01
  • Content Count:  21
  • Reputation:   0
  • Joined:  12/12/21
  • Last Seen:  

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.

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...