Project 1999

Go Back   Project 1999 > Server Issues > Bugs

Reply
 
Thread Tools Display Modes
  #1  
Old 11-20-2009, 02:14 AM
Dolalin Dolalin is offline
Planar Protector

Dolalin's Avatar

Join Date: Oct 2009
Location: UK
Posts: 2,562
Default

Ok, this source patch should work to fix dual wield but I have no way of testing it.

Currently the source for the DW check is this:

mobai.cpp:1271
Code:
//can only dual weild without a weapon if your a monk
if((GetEquipment(MATERIAL_SECONDARY) != 0 && GetLevel() > 39) || myclass == MONK || myclass == MONKGM) {
That means, only if your pet's actual level is over 39 will it dual wield. Well we have to add a special exception for lower level pets.

The situation we aim to achieve is that:

Pets summoned with 29-39th spells will dual-wield if given weapons (if offhand is not empty). Pets with 44th and 49th spells should dual wield without weapons.

Changing the check to this should achieve that goal:

Code:
if((GetEquipment(MATERIAL_SECONDARY) != 0 && GetLevel() > 39) || (GetOwner() != NULL && GetEquipment(MATERIAL_SECONDARY) != 0 && GetLevel() > 24) || (GetOwner() != NULL && GetLevel() > 37) || myclass == MONK || myclass == MONKGM)
Added two new conditions based on the return of GetOwner() (if returns non-null, I'm a pet), and GetLevel() (self-explanatory).

Only one question: What are the lowest level 29 and 44 pets? I THINK they're 25 and 38 respectively but I could be wrong.
Reply With Quote
  #2  
Old 02-18-2010, 02:31 PM
incorect incorect is offline
Large Rat


Join Date: Feb 2010
Posts: 9
Default

Quote:
Originally Posted by Dolalin [You must be logged in to view images. Log in or Register.]
Ok, this source patch should work to fix dual wield but I have no way of testing it.

Currently the source for the DW check is this:

mobai.cpp:1271
Code:
//can only dual weild without a weapon if your a monk
if((GetEquipment(MATERIAL_SECONDARY) != 0 && GetLevel() > 39) || myclass == MONK || myclass == MONKGM) {
That means, only if your pet's actual level is over 39 will it dual wield. Well we have to add a special exception for lower level pets.

The situation we aim to achieve is that:

Pets summoned with 29-39th spells will dual-wield if given weapons (if offhand is not empty). Pets with 44th and 49th spells should dual wield without weapons.

Changing the check to this should achieve that goal:

Code:
if((GetEquipment(MATERIAL_SECONDARY) != 0 && GetLevel() > 39) || (GetOwner() != NULL && GetEquipment(MATERIAL_SECONDARY) != 0 && GetLevel() > 24) || (GetOwner() != NULL && GetLevel() > 37) || myclass == MONK || myclass == MONKGM)
Added two new conditions based on the return of GetOwner() (if returns non-null, I'm a pet), and GetLevel() (self-explanatory).

Only one question: What are the lowest level 29 and 44 pets? I THINK they're 25 and 38 respectively but I could be wrong.
Nice work on this. However... Can't lvl 44 summons be greater then lvl 39? And to my understanding lvl 44 summons don't dual wield. So there might be another issue going on.

Edit... I am not sure why the > lvl 39 check is there in the first place. CanThisClassDualWield() checks the level of the mob to make sure it should be able to dual wield. I think the > 39 check should probably just be removed.
Reply With Quote
  #3  
Old 02-20-2010, 10:21 PM
Wenai Wenai is offline
VIP / Contributor

Wenai's Avatar

Join Date: Oct 2009
Location: Halifax, NS, Canada
Posts: 1,083
Send a message via MSN to Wenai
Default

Water Pets are now more resistant to Poison.
Air pets are now more resistant to Cold.
Earth pets are now more resistant to Disease.
Fire pets are now more resistant to Fire.

Feedback required for the resist changes. Please remember to take level into consideration (ie. Level 50 mob casting spells on your level 42 pet may still stick spells even with increased resists).

Increased max damage of the level 44 Fire pet.

All these changes will go in next patch.
Reply With Quote
  #4  
Old 02-20-2010, 10:49 PM
Finawin Finawin is offline
Banned


Join Date: Dec 2009
Location: Massachusetts
Posts: 492
Send a message via AIM to Finawin
Default

<3
Reply With Quote
  #5  
Old 02-20-2010, 10:56 PM
Wenai Wenai is offline
VIP / Contributor

Wenai's Avatar

Join Date: Oct 2009
Location: Halifax, NS, Canada
Posts: 1,083
Send a message via MSN to Wenai
Default

Doubled Water pet regen... Next update.
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 04:41 AM.


Everquest is a registered trademark of Daybreak Game Company LLC.
Project 1999 is not associated or affiliated in any way with Daybreak Game Company LLC.
Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.