EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=590)
-   -   Dual Wield Graphic Display Before Dual Wield~ (https://www.eqemulator.org/forums/showthread.php?t=29809)

Shin Noir 10-16-2009 05:29 AM

Dual Wield Graphic Display Before Dual Wield~
 
Ok, unless I'm corrected. When you trade an item to a pet/npc, it runs this check:
loottables.cpp line 484:
Code:

                else if (item2->Slots & (1 << SLOT_SECONDARY) && (equipment[MATERIAL_SECONDARY]==0)
                        && (GetOwner() != NULL || (GetLevel() >= 13 && MakeRandomInt(0,99) < NPC_DW_CHANCE) || (item2->Damage==0)) &&
                        (item2->ItemType == ItemType1HS || item2->ItemType == ItemType1HB || item2->ItemType == ItemTypeShield ||
                        item2->ItemType == ItemTypePierce))
                {
                        if (item2->Proc.Effect!=0)
                                CastToMob()->AddProcToWeapon(item2->Proc.Effect, true);
                       
                        eslot = MATERIAL_SECONDARY;
                }

Which essentially says, if Get Level >= 13 (dual wield level?) and by random chance NPC_DW_CHANCE and a hand full of other situations stated, it's possible to make mobs dual wield visually at level 13. Right?

However, mobai.cpp which is where it figures out dual wield chance etc line 1271:
Code:

                                        //can only dual weild without a weapon if your a monk
                                        if((GetEquipment(MATERIAL_SECONDARY) != 0 && GetLevel() > 39) || myclass == MONK || myclass == MONKGM) {

Shows that you have to be > 39 or monk.
My question is, why display the graphic of the offhand if the mob/pet isn't going to do so?

Unless I misunderstood this code, that's what currently is happening.


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

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.