Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::General Support

Support::General Support Post all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-11-2017, 02:53 PM
Nerdgasm
Discordant
 
Join Date: Apr 2013
Posts: 426
Default Need help with potion script.

Hey all, I had a script once that healed your health, mana and endurance by 10% when used. The script has pulled a magic act and disappeared, does anyone by chance happen to have one laying around that i could nab for ya?
__________________
I am the All Mighty Mittens!
Reply With Quote
  #2  
Old 08-11-2017, 06:01 PM
The_Beast's Avatar
The_Beast
Discordant
 
Join Date: May 2016
Location: Under a rock
Posts: 290
Default

This is something you can use when making a script :

$client->Heal();
$client->SetMana($client->GetMaxMana());

there is also castspell 999 (to gain mana) and castspell 13 for complete heal
Reply With Quote
  #3  
Old 08-11-2017, 06:35 PM
Nerdgasm
Discordant
 
Join Date: Apr 2013
Posts: 426
Default

I know about those, looking for a more % specific script that can be attached to an item.
__________________
I am the All Mighty Mittens!
Reply With Quote
  #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
  #5  
Old 08-12-2017, 10:43 AM
Nerdgasm
Discordant
 
Join Date: Apr 2013
Posts: 426
Default

Thank you sir, exactly what I was looking for.
__________________
I am the All Mighty Mittens!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 06:41 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3