Page 2 of 2
Posted: Tue Sep 20, 2005 2:05 pm
by zanomo
was just about to post a bug report about the .MyCastTime and saw your post..
/echo ${Me.Spell[SPELLNAME].MyCastTime}
on the command line will CTD.
Posted: Tue Sep 20, 2005 2:36 pm
by gimp
zanomo wrote:was just about to post a bug report about the .MyCastTime and saw your post..
/echo ${Me.Spell[SPELLNAME].MyCastTime}
on the command line will CTD.
yup, use .CastTime for now if possible, it works
Posted: Tue Sep 20, 2005 3:12 pm
by zanomo
Yes, Thanks (already done that while debugging my macros and all are working properly now after turning off things such as AA activation, freebuffslots, Me.Dar, etc, and some minor modification in the mq2exchangeitems... thanks

)
Posted: Wed Sep 21, 2005 1:31 pm
by SwiftyMUSE
Here is a patch fix for the MyCastTime CTD... I have tested it and it works with the 9/21 eqgame.exe.
Code: Select all
--- D:\MQ2-0920\MQ2Main\EQClasses.cpp Tue Sep 20 01:17:08 2005
+++ D:\MQ2\MQ2Main\EQClasses.cpp Wed Sep 21 12:14:30 2005
@@ -4210,7 +4210,7 @@
FUNCTION_AT_ADDRESS(int const EQ_Character::GetFocusConserveRegChance(class EQ_Spell const *,class EQ_Equipment * *),EQ_Character__GetFocusConserveRegChance);
#endif
#ifdef EQ_Character__GetFocusCastingTimeModifier
-FUNCTION_AT_ADDRESS(int const EQ_Character::GetFocusCastingTimeModifier(class EQ_Spell const *,class EQ_Equipment * *),EQ_Character__GetFocusCastingTimeModifier);
+FUNCTION_AT_ADDRESS(int const EQ_Character1::GetFocusCastingTimeModifier(class EQ_Spell const *,class EQ_Equipment * *),EQ_Character__GetFocusCastingTimeModifier);
#endif
#ifdef EQ_Character__GetFocusRangeModifier
FUNCTION_AT_ADDRESS(int const EQ_Character::GetFocusRangeModifier(class EQ_Spell const *,class EQ_Equipment * *),EQ_Character__GetFocusRangeModifier);
@@ -4252,7 +4252,7 @@
FUNCTION_AT_ADDRESS(unsigned char EQ_Character::CastingRequirementsMet(int),EQ_Character__CastingRequirementsMet);
#endif
#ifdef EQ_Character__GetAACastingTimeModifier
-FUNCTION_AT_ADDRESS(int const EQ_Character::GetAACastingTimeModifier(class EQ_Spell const *),EQ_Character__GetAACastingTimeModifier);
+FUNCTION_AT_ADDRESS(int const EQ_Character1::GetAACastingTimeModifier(class EQ_Spell const *),EQ_Character__GetAACastingTimeModifier);
#endif
#ifdef EQ_Character__BardCastBard
FUNCTION_AT_ADDRESS(int EQ_Character::BardCastBard(class EQ_Spell const *,int)const ,EQ_Character__BardCastBard);
--- D:\MQ2-0920\MQ2Main\EQClasses.h Tue Sep 20 09:39:45 2005
+++ D:\MQ2\MQ2Main\EQClasses.h Wed Sep 21 12:25:50 2005
@@ -5340,6 +5340,8 @@
EQLIB_OBJECT int EQ_Character1::Max_Endurance(void); // lax 4-25-2004
EQLIB_OBJECT int EQ_Character1::Cur_HP(int);
EQLIB_OBJECT unsigned char EQ_Character1::CastSpell(unsigned char,int,class EQ_Item * *,int,int slot,int,int,int);
+EQLIB_OBJECT int const EQ_Character1::GetAACastingTimeModifier(class EQ_Spell const *);
+EQLIB_OBJECT int const EQ_Character1::GetFocusCastingTimeModifier(class EQ_Spell const *,class EQ_Equipment * *);
};
class EQ_Character
@@ -5429,8 +5431,6 @@
EQLIB_OBJECT int EQ_Character::TakeFallDamage(float);
EQLIB_OBJECT int EQ_Character::TotalSpellAffects(unsigned char,bool,int *);
EQLIB_OBJECT int EQ_Character::Wis(void);
-EQLIB_OBJECT int const EQ_Character::GetAACastingTimeModifier(class EQ_Spell const *);
-EQLIB_OBJECT int const EQ_Character::GetFocusCastingTimeModifier(class EQ_Spell const *,class EQ_Equipment * *);
EQLIB_OBJECT int const EQ_Character::GetFocusConserveRegChance(class EQ_Spell const *,class EQ_Equipment * *);
EQLIB_OBJECT int const EQ_Character::GetFocusRangeModifier(class EQ_Spell const *,class EQ_Equipment * *);
EQLIB_OBJECT long EQ_Character::TotalOnPerson(void);
--- D:\MQ2-0920\MQ2Main\MQ2DataTypes.cpp Tue Sep 20 10:55:29 2005
+++ D:\MQ2\MQ2Main\MQ2DataTypes.cpp Wed Sep 21 12:25:50 2005
@@ -2938,10 +2949,10 @@
Dest.Ptr=szSkills[pSpell->Skill];
Dest.Type=pStringType;
return true;
- case MyCastTime:
- Dest.Float=(FLOAT)(pCharData->GetAACastingTimeModifier((EQ_Spell*)pSpell)+pCharData->GetFocusCastingTimeModifier((EQ_Spell*)pSpell,0)+pSpell->CastTime)/1000.0f;
- Dest.Type=pFloatType;
- return true;
+ case MyCastTime:
+ Dest.Float=(FLOAT)(pCharData1->GetAACastingTimeModifier((EQ_Spell*)pSpell)+pCharData1->GetFocusCastingTimeModifier((EQ_Spell*)pSpell,0)+pSpell->CastTime)/1000.0f;
+ Dest.Type=pFloatType;
+ return true;
case Duration:
Dest.DWord=GetSpellDuration(pSpell,(PSPAWNINFO)pCharSpawn);
Dest.Type=pTicksType;
Posted: Wed Sep 21, 2005 2:44 pm
by zanomo
Thanks!!

Re: crash bug kick to desktop,
Posted: Wed Jan 07, 2026 10:11 pm
by xyilla
Re: crash bug kick to desktop,
Posted: Wed Jan 07, 2026 10:12 pm
by xyilla
Re: crash bug kick to desktop,
Posted: Wed Jan 07, 2026 10:13 pm
by xyilla
Re: crash bug kick to desktop,
Posted: Wed Jan 07, 2026 10:15 pm
by xyilla
Re: crash bug kick to desktop,
Posted: Wed Jan 07, 2026 10:16 pm
by xyilla
Re: crash bug kick to desktop,
Posted: Wed Jan 07, 2026 10:18 pm
by xyilla
Re: crash bug kick to desktop,
Posted: Wed Jan 07, 2026 10:19 pm
by xyilla
Re: crash bug kick to desktop,
Posted: Wed Jan 07, 2026 10:20 pm
by xyilla