Go Back   EQEmulator Home > EQEmulator Forums > Support > Spell Support

Spell Support Broken Spells? Want them Fixed? Request it here.

Reply
 
Thread Tools Display Modes
  #1  
Old 11-09-2009, 11:34 AM
Kutulu99
Fire Beetle
 
Join Date: Oct 2009
Posts: 3
Default

Bumping this thread in hopes of a pet focus item update. Instead of just incrementing pet level by 1, would it be feasible to allow the initial level of focus to increment by 1, and subsequent focus effects increase pet level by 2, 3, 4, 5, etc.?
Reply With Quote
  #2  
Old 07-08-2010, 06:36 PM
chrsschb's Avatar
chrsschb
Dragon
 
Join Date: Nov 2008
Location: GA
Posts: 904
Default

Quote:
Originally Posted by Kutulu99 View Post
Bumping this thread in hopes of a pet focus item update. Instead of just incrementing pet level by 1, would it be feasible to allow the initial level of focus to increment by 1, and subsequent focus effects increase pet level by 2, 3, 4, 5, etc.?
Further bump for some pet focus love
__________________
Clumsy's World: Resurgence [2019-Present]
Clumsy's World 2.0 [2014-2016]
Clumsy's World [2006-2012]
Reply With Quote
  #3  
Old 07-08-2010, 07:30 PM
Caryatis
Dragon
 
Join Date: May 2009
Location: Milky Way
Posts: 539
Default

since this isnt nearly close to how live works, it doesnt have any chance of being submitted for server code(I imagine) however for custom servers its a very easy change...

original code... pets.cpp... line 251
Code:
if (this->IsClient() && CastToClient()->GetFocusEffect(focusPetPower, spell_id) > 0)
	{
		npc_type->max_hp *= 1.20;
		npc_type->cur_hp = npc_type->max_hp;
		npc_type->AC *= 1.20;
		npc_type->level += 1;
		npc_type->min_dmg = (npc_type->min_dmg * 110 / 100);
		npc_type->max_dmg = (npc_type->max_dmg * 110 / 100);
		npc_type->size *= 1.15;
	}
change to...

Code:
if (this->IsClient() && CastToClient()->GetFocusEffect(focusPetPower, spell_id) == 5)
	{
		npc_type->max_hp *= 1.20;
		npc_type->cur_hp = npc_type->max_hp;
		npc_type->AC *= 1.20;
		npc_type->level += 1;
		npc_type->min_dmg = (npc_type->min_dmg * 110 / 100);
		npc_type->max_dmg = (npc_type->max_dmg * 110 / 100);
		npc_type->size *= 1.15;
	}
for subsequent focuses add a new copy of that and change the attributes as you see fit... for example..

Code:
if (this->IsClient() && CastToClient()->GetFocusEffect(focusPetPower, spell_id) == 10)
	{
		npc_type->max_hp *= 1.30;
		npc_type->cur_hp = npc_type->max_hp;
		npc_type->AC *= 1.30;
		npc_type->level += 2;
		npc_type->min_dmg = (npc_type->min_dmg * 120 / 100);
		npc_type->max_dmg = (npc_type->max_dmg * 120 / 100);
		npc_type->size *= 1.2;
	}
then keep adding those in increments of 5 until you get to the max pet focus, which seems to be like 120 for Enhanced Minion XIV. Could also define some variables and have them increment values automatically based on the pet power base so would only need 1 section of code instead of 20 ish.

Playing with the source is alot easier than it seems, easier than waiting 16 months for somebody to do it for you lol.
Reply With Quote
  #4  
Old 07-08-2010, 10:08 PM
chrsschb's Avatar
chrsschb
Dragon
 
Join Date: Nov 2008
Location: GA
Posts: 904
Default

I don't program and while I would love to learn, I just don't have the time.

Thanks for the post, if anyone has the time to add the variables to adjust it automatically that'd be cool
__________________
Clumsy's World: Resurgence [2019-Present]
Clumsy's World 2.0 [2014-2016]
Clumsy's World [2006-2012]
Reply With Quote
Reply


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 11:04 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