arokken Posted April 18, 2017 Posted April 18, 2017 Hello guys, i have a script with specialeffect. i wanna ask, how to disable notification "Your effect has changed" everytime player got effect. Thanks Quote
1 Cyro Posted April 18, 2017 Posted April 18, 2017 src/map/atcommand.c find this and change as your need /*========================================== *@effect *------------------------------------------*/ ACMD_FUNC(effect) { int type = 0, flag = 0; nullpo_retr(-1, sd); if (!message || !*message || sscanf(message, "%11d", &type) < 1) { clif_displaymessage(fd, msg_txt(sd,1152)); // Please enter an effect number (usage: @effect <effect number>). return -1; } clif_specialeffect(&sd->bl, type, (send_target)flag); clif_displaymessage(fd, msg_txt(sd,229)); // Your effect has changed. return 0; } Quote
0 crazyarashi Posted April 18, 2017 Posted April 18, 2017 9 minutes ago, arokken said: Hello guys, i have a script with specialeffect. i wanna ask, how to disable notification "Your effect has changed" everytime player got effect. Thanks Can you provide your script so we can help you :)) Quote
0 arokken Posted April 18, 2017 Author Posted April 18, 2017 3 minutes ago, crazyarashi said: Can you provide your script so we can help you :)) this part on my script atcommand "@effect 1"; like use GM Commands @effect 1, everytime i use this command i got notif "Your effect has changed". can i disable notification? Quote
0 arokken Posted April 18, 2017 Author Posted April 18, 2017 32 minutes ago, Cyro said: src/map/atcommand.c find this and change as your need /*========================================== *@effect *------------------------------------------*/ ACMD_FUNC(effect) { int type = 0, flag = 0; nullpo_retr(-1, sd); if (!message || !*message || sscanf(message, "%11d", &type) < 1) { clif_displaymessage(fd, msg_txt(sd,1152)); // Please enter an effect number (usage: @effect <effect number>). return -1; } clif_specialeffect(&sd->bl, type, (send_target)flag); clif_displaymessage(fd, msg_txt(sd,229)); // Your effect has changed. return 0; } thanks Cyro! Quote
Question
arokken
Hello guys,
i have a script with specialeffect.
i wanna ask, how to disable notification "Your effect has changed" everytime player got effect.
Thanks
4 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.