Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 03-01-2017, 11:06 PM
ghanja's Avatar
ghanja
Dragon
 
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
Default

Quote:
Originally Posted by Nerdgasm View Post
Heya, so I had a few questions...

1. Is there a way I can make spells do damage based off of your own HP? Example; Spell A does 190% of your HP, and how would I go about doing that?
Yes. Either via source code or LUA/Perl spell script.


Quote:
Originally Posted by Nerdgasm View Post
1a. Second part to that, can I make that damage be multiplied by strength/stamina, etc? If so... how?
Yes. Depends on which method you choose above. But since this is in the Quests Q/A, I'll assume you mean how via the quest script system.

Think spell script. Then:

Code:
if ($client->IsClient()) {
   quest::say ("That is not a valid target jackass!");  
} else {
  $client->GetTarget()->Damage($client, xDmg, xSpellID);
}
Rudimentary, I know, sorry heading to bed. But, it will point you in the right direction.

Quote:
Originally Posted by Nerdgasm View Post
Had some ideas for the scripts based off a potion script I have that restores 10% of your total hp, but I'm not sure where to go from there... Lol.
[/QUOTE]

Well that's slightly different then. You'd append a script to an item, with potion graphic, etc.

But toy around with:

Code:
$client->GetMaxHP()
or

Code:
$client->HealDamage($client->GetMaxHP * 0.10);
I -suppose- it's HealDamage, it's been awhile since I've healed a certain percentage via script (it's normally items/spells).
Reply With Quote
 


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 07:32 AM.


 

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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3