View Single Post
  #3  
Old 06-22-2016, 09:40 AM
DanCanDo's Avatar
DanCanDo
Discordant
 
Join Date: May 2016
Location: Above Hell
Posts: 400
Default

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.
Reply With Quote