LUA commands ModifyHP and ModifyPower

EQ2Emulator Development forum.

Moderator: Team Members

Post Reply
User avatar
Scatman
Retired
Posts: 1688
Joined: Wed Apr 16, 2008 5:44 am
EQ2Emu Server: Scatman's Word
Characters: Scatman
Location: New Jersey

LUA commands ModifyHP and ModifyPower

Post by Scatman » Tue Jan 27, 2009 8:48 pm

LE, were ModifyHP and ModifyPower meant to increase the max HP and power respectively of the spawn? As of right now, using ModifyHP on a spawn will add the value passed in as a parameter to ModifyHP, to the spawn's max health. I always thought it was supposed to modify the current hp of the spawn's health, and not to exceed the max. If these functions are working as intended, then I'd like to modify the names of these two to ModifyTotalHP and ModifyTotalPower and I will write two different functions to modify the current hp/power of the spawn.

LethalEncounter
Team: Zombie
Posts: 2717
Joined: Wed Jul 25, 2007 10:10 pm

Re: LUA commands ModifyHP and ModifyPower

Post by LethalEncounter » Fri Feb 06, 2009 7:15 pm

Wow, don't know how I missed this post :P This might not apply anymore as you might have changed it already, but:

Those functions were created to allow you to set the total power/hp for a spawn as you noticed. However, somehow they weren't deleted whenever the newer functions were added.

User avatar
Scatman
Retired
Posts: 1688
Joined: Wed Apr 16, 2008 5:44 am
EQ2Emu Server: Scatman's Word
Characters: Scatman
Location: New Jersey

Re: LUA commands ModifyHP and ModifyPower

Post by Scatman » Fri Feb 06, 2009 7:26 pm

Np :) I've modified ModifyHP and ModifyPower to add to the spawn's current hp or power respectively and not to exceed their max and just made two commands ModifyMaxHP and ModifyMaxPower and copied/pasted the code into those new functions.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests