View Single Post
  #2  
Old 03-13-2018, 08:31 AM
c0ncrete's Avatar
c0ncrete
Dragon
 
Join Date: Dec 2009
Posts: 719
Default

annnnnd if you put this in your global_npc.pl
Code:
*Mob::Blast = sub {
	my $self = shift;
	$self->SetMana($self->GetMaxMana());
	$self->Emote("shimmers slightly.");
};
you can do this
Code:
$mob->Blast()
when you want the equivalent of this for mana
Code:
$mob->Heal()
which is currently this
Code:
$mob->SetMana($mob->GetMaxMana())
it will work for any object that is derived from the Mob class.
__________________
I muck about @ The Forge.
say(rand 99>49?'try '.('0x'.join '',map{unpack 'H*',chr rand 256}1..2):'incoherent nonsense')while our $Noport=1;
Reply With Quote