Quote:
Originally Posted by Durge
Ok I'll try that, and the problem is when i hail the npc (Ram) just a blank line appears on my chat window.
|
If it still appears as a blank line, I would suggest removing everything inside of the if statement, and replacing it with a single output to test that your NPC functions.
example:
Code:
if($text=~/Hail/i) { $client->Message(315, "$NPCName whispers to you, 'Ugh... do I work?'"); }
If it works with the single line statement, in this post, and not with all of the other checks... that simply means you have an error inside of the IF bracket. Remove everything, then add one line at a time. (Remember to change your level, to the desired level that you want to check to make sure that it works.)
Usually, you will get a blank line if none of the IF brackets are triggered.