Moderator: MacroQuest Developers


Code: Select all
//pCharData->CastSpell(10,0,(EQ_Item**)item,0,slot,-1,0,0);
Code: Select all
PCONTENTS contents=*(PCONTENTS*)item;
PITEMINFO Item=(PITEMINFO)contents->Item;
pCharData->CastSpell(10,0,(EQ_Item**)Item,0,slot,-1,0,0);

I have no idea what this means, but it sounds really funny.I need to go dig some trenches in my backyard to finish up my wife's drip system.




Code: Select all
--- D:\MQ2-0919\MQ2Main\MQ2Commands.cpp Sun Sep 18 23:02:46 2005
+++ D:\MQ2\MQ2Main\MQ2Commands.cpp Mon Sep 19 18:42:48 2005
@@ -377,7 +377,8 @@
@@ -1981,14 +1982,14 @@
if (GetCharInfo2()->InventoryArray[i])
if (!_stricmp(szArg2,GetCharInfo2()->InventoryArray[i]->Item->Name)) {
DebugSpew("cast test slot %d = %s address is %x",i,GetCharInfo2()->InventoryArray[i]->Item->Name,&(GetCharInfo2()->InventoryArray[i]));
item = (DWORD)&GetCharInfo2()->InventoryArray[i];
slot = (DWORD)i;
FOUND = TRUE;
break;
}
}
if (FOUND) {
- pCharData->CastSpell(10,0,(EQ_Item**)item,0,slot,-1,0,0);
+ pCharData1->CastSpell(10,0,(EQ_Item**)item,0,slot,-1,0,0);
return;
}
}
Code: Select all
--- D:\MQ2-0919\MQ2Main\EQClasses.cpp Sun Sep 18 04:39:08 2005
+++ D:\MQ2\MQ2Main\EQClasses.cpp Mon Sep 19 18:22:15 2005
@@ -4240,7 +4240,7 @@
FUNCTION_AT_ADDRESS(void EQ_Character::SetEffectId(unsigned char,unsigned int),EQ_Character__SetEffectId);
#endif
#ifdef EQ_Character__CastSpell
-FUNCTION_AT_ADDRESS(unsigned char EQ_Character::CastSpell(unsigned char,int,class EQ_Item * *,int,int slot,int,int,int),EQ_Character__CastSpell);
+FUNCTION_AT_ADDRESS(unsigned char EQ_Character1::CastSpell(unsigned char,int,class EQ_Item * *,int,int slot,int,int,int),EQ_Character__CastSpell);
#endif
#ifdef EQ_Character__GetBardInstrumentMod
FUNCTION_AT_ADDRESS(int EQ_Character::GetBardInstrumentMod(int),EQ_Character__GetBardInstrumentMod);
Code: Select all
--- D:\MQ2-0919\MQ2Main\EQClasses.h Mon Sep 19 15:50:11 2005
+++ D:\MQ2\MQ2Main\EQClasses.h Mon Sep 19 18:22:16 2005
@@ -5339,6 +5339,7 @@
EQLIB_OBJECT int EQ_Character1::Max_Mana(void);
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);
};
class EQ_Character
@@ -5443,7 +5444,7 @@
EQLIB_OBJECT unsigned char EQ_Character::CanSecondaryAttack(class EQPlayer *);
EQLIB_OBJECT unsigned char EQ_Character::CanWorship(int,int,unsigned char);
EQLIB_OBJECT unsigned char EQ_Character::CastingRequirementsMet(int);
-EQLIB_OBJECT unsigned char EQ_Character::CastSpell(unsigned char,int,class EQ_Item * *,int,int slot,int,int,int);
+//EQLIB_OBJECT unsigned char EQ_Character::CastSpell(unsigned char,int,class EQ_Item * *,int,int slot,int,int,int);
EQLIB_OBJECT unsigned char EQ_Character::CheckClass(int,int);
EQLIB_OBJECT unsigned char EQ_Character::CityCanStart(int,int,int,int);
EQLIB_OBJECT unsigned char EQ_Character::ClassMin(int,int,unsigned char);

