EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Percent Heals (https://www.eqemulator.org/forums/showthread.php?t=37342)

Nerdgasm 09-30-2013 10:12 PM

Percent Heals
 
I derped.

Code:

sub EVENT_SPELL_EFFECT_BUFF_TIC_CLIENT {

 if($client->GetHP() < $client->GetMaxHP())
 {
  my $heal = int($client->GetMaxHP()*0.03);
  $client->SetHP($client->GetHP() + $heal);
  $client->Message(15,"You have been healed for $heal.");
 }
}

I totally had it as;

Code:

EVENT_SPELL_EFFECT_BUFF_TIC_CLIENT {

 if($client->GetHP() < $client->GetMaxHP())
 {
  my $heal = int($client->GetMaxHP()*0.03);
  $client->SetHP($client->GetHP() + $heal);
  $client->Message(15,"You have been healed for $heal.");
 }
}

Derp derp derp derp


All times are GMT -4. The time now is 01:36 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.