View Single Post
  #4  
Old 08-12-2017, 04:23 AM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

Try this maybe?
Code:
sub EVENT_ITEM_CLICK {
    if ($itemid == #) {
        $client->SetHP(($client->GetHP() + int($client->GetMaxHP() * .1)));
        $client->SetMana(($client->GetMana() + int($client->GetMaxMana() * .1)));
        $client->SetEndurance(($client->GetEndurance() + int($client->GetMaxEndurance() * .1)));
    }
}
Reply With Quote