Jump to content
  • 0

about defpattern


Technoken

Question


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

I notice that on the disguise event script. Whenever a prefix of a spoken word contains the string that matches the monster name it is always considered as correct.

For example a poring is disguised. When a player type poring1fasfha23ff it will be considered as correct. As long as the prefix of the word contains the word poring.

Since i'm not familiar with regular expression, I do not know how can I modify the defpattern and make it only accept the exact word spoken. Or is it even possible?

I'm still reading about reg exp on the web and wanted to learn about it. But if anyone here knows how can I make this work, maybe you can share it? It would be greatly appreciated. Thank you!

 

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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