Jump to content
  • 0

<ITEML> bug that me crash


bluesky

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   2
  • Joined:  04/26/17
  • Last Seen:  

If player talk

<ITEML>  bla bla bla ...  </ITEML>

bla bla bla was not exist item

Then all saw his talk player will crash.

He was directly type the words,  not use  SHIFT + left-click.

 

How can I disable <ITEML> ?

I used 20160203 client

 

Thank you

Edited by bluesky
  • Love 1
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   263
  • Joined:  09/08/13
  • Last Seen:  

Hello! You can block it on the server side.

Open ../src/map/clif.c and in the function clif_process_message after:

	if (sd->sc.cant.chat)
		return false; //no "chatting" while muted.

add:

	if (strstr(out_message, "<ITEM>") != NULL && strchr(out_message, '%') != NULL)
	{
		return false;
	}

Recompile the server. ;-)

  • Upvote 1
  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   2
  • Joined:  04/26/17
  • Last Seen:  

33 minutes ago, Functor said:

Hello! You can block it on the server side.

Open ../src/map/clif.c and in the function clif_process_message after:


	if (sd->sc.cant.chat)
		return false; //no "chatting" while muted.

add:


	if (strstr(out_message, "<ITEM>") != NULL && strchr(out_message, '%') != NULL)
	{
		return false;
	}

Recompile the server. ;-)

 

Thanky you

I will try it.

And I very like your gepard shield:D

It's great.

  • Love 1
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...