Jump to content
  • 0

Special Effect (Disable Notification)


Question

4 answers to this question

Recommended Posts

  • 0
Posted
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 :))

  • 0
Posted
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?

  • 1
Posted

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

 

  • 0
Posted
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!

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