Fabre01 Posted April 23, 2022 Group: Members Topic Count: 7 Topics Per Day: 0.01 Content Count: 21 Reputation: 0 Joined: 12/12/21 Last Seen: December 28, 2023 Share Posted April 23, 2022 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, 2022 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 172 Reputation: 68 Joined: 10/25/20 Last Seen: 12 hours ago Share Posted April 23, 2022 *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, 2022 Group: Members Topic Count: 7 Topics Per Day: 0.01 Content Count: 21 Reputation: 0 Joined: 12/12/21 Last Seen: December 28, 2023 Author Share Posted April 23, 2022 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"; } Quote Link to comment Share on other sites More sharing options...
0 mR L Posted April 24, 2022 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 177 Reputation: 26 Joined: 12/24/14 Last Seen: December 25, 2024 Share Posted April 24, 2022 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 1 Quote Link to comment Share on other sites More sharing options...
0 Fabre01 Posted April 24, 2022 Group: Members Topic Count: 7 Topics Per Day: 0.01 Content Count: 21 Reputation: 0 Joined: 12/12/21 Last Seen: December 28, 2023 Author Share Posted April 24, 2022 (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 April 24, 2022 by Fabre01 Quote Link to comment Share on other sites More sharing options...
0 mR L Posted April 25, 2022 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 177 Reputation: 26 Joined: 12/24/14 Last Seen: December 25, 2024 Share Posted April 25, 2022 (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, 2022 by mR L 1 Quote Link to comment Share on other sites More sharing options...
0 Fabre01 Posted April 25, 2022 Group: Members Topic Count: 7 Topics Per Day: 0.01 Content Count: 21 Reputation: 0 Joined: 12/12/21 Last Seen: December 28, 2023 Author Share Posted April 25, 2022 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...
Question
Fabre01
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.