Fabre01 Posted April 23 Share Posted April 23 I have new hat effect but i need NPC script. Help me please. Quote Link to comment Share on other sites More sharing options...
0 cook1e Posted April 23 Share Posted April 23 *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. Quote Link to comment Share on other sites More sharing options...
0 Fabre01 Posted April 23 Author Share Posted April 23 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 [email protected]; hateffect [email protected],true; end; OnMy2: hateffect 165,true; end; OnInit: bindatcmd "efc",strnpcinfo(3)+"::OnMy"; bindatcmd "ef",strnpcinfo(3)+"::OnMy2"; } Quote Link to comment Share on other sites More sharing options...
0 mR L Posted April 24 Share Posted April 24 prontera,152,179,4 script teste 810,{ input [email protected]; if ([email protected] < 1) end; for([email protected] = 0; [email protected] < 160; [email protected]) hateffect [email protected],false; hateffect [email protected],true; end; } #Source 1 Quote Link to comment Share on other sites More sharing options...
0 Fabre01 Posted April 24 Author Share Posted April 24 (edited) 14 hours ago, mR L said: prontera,152,179,4 script teste 810,{ input [email protected]; if ([email protected] < 1) end; for([email protected] = 0; [email protected] < 160; [email protected]) hateffect [email protected],false; hateffect [email protected],true; end; } #Source Ty sure, i need it But can i make it permanent? Edited April 24 by Fabre01 Quote Link to comment Share on other sites More sharing options...
0 mR L Posted April 25 Share Posted April 25 (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 April 25 by mR L 1 Quote Link to comment Share on other sites More sharing options...
0 Fabre01 Posted April 25 Author Share Posted April 25 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. Quote Link to comment Share on other sites More sharing options...
I have new hat effect but i need NPC script. Help me please.
Link to comment
Share on other sites