Thanks ghanja for that snippet.
I'm still trying to get it to work though, (chuckle)
I created the plugin (statusupdate.pl) and put it in the plugins folder.(restarted server)
On the npc, I had to add a $text and $level along with the call for status. This is what
I've got so far.
Code:
sub EVENT_SAY {
if (($text=~/hail/i) && ($status == 0) && ($ulevel=>10)) {
UpdateStatus($client->AccountID(),1);
}
}
I've tried using plugin::UpdateStatus , and plugin::statusupdate , but so far no go.
I'll keep piddling around with it though.