Code: Select all
--- MQ2-20060923a.orig/MQ2Main/ISXEQ/ISXEQCommands.cpp 2006-08-25 23:55:50.000000000 -0400
+++ MQ2-20060923a/MQ2Main/ISXEQ/ISXEQCommands.cpp 2006-09-23 07:40:26.000000000 -0400
@@ -549,18 +549,20 @@
DWORD slot = 0;
DWORD SpawnFooter = NULL;
SpawnFooter = (DWORD)pLocalPlayer;
[color=red]+ PITEMINFO pItem=0;[/color]
for (int i=0;i<30;i++) {
if (GetCharInfo2()->InventoryArray[i])
if (!_stricmp(argv[2],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];
[color=red]+ pItem=GetCharInfo2()->InventoryArray[i]->Item;[/color]
slot = (DWORD)i;
FOUND = TRUE;
break;
}
}
if (FOUND) {
[color=red]- pCharData1->CastSpell(10,0,(EQ_Item**)item,0,slot,-1,-1,0,0);
+ pCharData1->CastSpell(10,pItem->Clicky.SpellID,(EQ_Item**)item,0,slot,-1,-1,0,0,1);[/color]
[/color] return 0;
}
}
diff -rubB --exclude-from excludes MQ2-20060923a.orig/MQ2Main/ISXEQ/ISXEQServices.cpp MQ2-20060923a/MQ2Main/ISXEQ/ISXEQServices.cpp
--- MQ2-20060923a.orig/MQ2Main/ISXEQ/ISXEQServices.cpp 2006-06-26 21:09:24.000000000 -0400
+++ MQ2-20060923a/MQ2Main/ISXEQ/ISXEQServices.cpp 2006-09-23 07:36:26.000000000 -0400
@@ -175,11 +175,12 @@
// "Spawn" service
EQLIB_API VOID PluginsAddSpawn(PSPAWNINFO pNewSpawn)
{
[color=red]+ DWORD BodyType=GetBodyType(pNewSpawn);[/color]
PluginDebug("PluginsAddSpawn(%s,%d,%d)",pNewSpawn->Name,pNewSpawn->Race,pNewSpawn->BodyType);
SpawnByName[pNewSpawn->Name]=pNewSpawn;
if (gGameState>GAMESTATE_CHARSELECT)
SetNameSpriteState(pNewSpawn,1);
[color=red]- if (GetBodyTypeDesc(pNewSpawn->BodyType)[0]=='*')
+ if (GetBodyTypeDesc(BodyType)[0]=='*')[/color]
{
WriteChatf("Spawn '%s' has unknown bodytype %d",pNewSpawn->Name,pNewSpawn->BodyType);
}


