Mercurial > mm7
comparison mm7_6.cpp @ 1120:17a01695926b
trying to get dark sacrifice to work
author | zipi |
---|---|
date | Wed, 29 May 2013 23:19:01 +0100 |
parents | aa706cde7fda |
children | 72eb21a62633 |
comparison
equal
deleted
inserted
replaced
1119:aa706cde7fda | 1120:17a01695926b |
---|---|
6186 while ( pNPCData <= &pParty->pHirelings[1] ); | 6186 while ( pNPCData <= &pParty->pHirelings[1] ); |
6187 i = 0; | 6187 i = 0; |
6188 if ( (signed int)pNPCStats->uNumNewNPCs > 0) | 6188 if ( (signed int)pNPCStats->uNumNewNPCs > 0) |
6189 { | 6189 { |
6190 pNPCData = pNPCStats->pNewNPCData; | 6190 pNPCData = pNPCStats->pNewNPCData; |
6191 __debugbreak(); // data offset | 6191 //__debugbreak(); // data offset |
6192 AwardType *_v734 = &achieved_awards[_v733]; | 6192 AwardType *_v734 = &achieved_awards[_v733]; |
6193 do | 6193 do |
6194 { | 6194 { |
6195 if ( pNPCData->uFlags & 0x80 | 6195 if ( pNPCData->uFlags & 0x80 |
6196 && (!pParty->pHirelings[0].pName || strcmp(pNPCData->pName, pParty->pHirelings[0].pName)) | 6196 && (!pParty->pHirelings[0].pName || strcmp(pNPCData->pName, pParty->pHirelings[0].pName)) |
6214 pAudioPlayer->PlaySound(SOUND_PlayerCantCastSpell, 0, 0, -1, 0, 0, 0, 0); | 6214 pAudioPlayer->PlaySound(SOUND_PlayerCantCastSpell, 0, 0, -1, 0, 0, 0, 0); |
6215 pCastSpell->spellnum = 0; | 6215 pCastSpell->spellnum = 0; |
6216 continue; | 6216 continue; |
6217 } | 6217 } |
6218 v610 = 76 * v609; | 6218 v610 = 76 * v609; |
6219 *((int *)&pParty->pPlayers[3].pInstalledBeacons[4].uBeaconTime + 19 * v609) = 0; | 6219 //*((int *)&pParty->pPlayers[3].pInstalledBeacons[4].uBeaconTime + 19 * v609) = 0; |
6220 pParty->pHirelings[v609-1].evt_B = 0; | |
6220 v611 = pIconsFrameTable->FindIcon("spell96"); | 6221 v611 = pIconsFrameTable->FindIcon("spell96"); |
6221 //*(int *)((char *)&pParty->pPlayers[3].pInstalledBeacons[4].uBeaconTime + v610 + 4) = pIconsFrameTable->GetIconAnimLength(v611); | 6222 //*(int *)((char *)&pParty->pPlayers[3].pInstalledBeacons[4].uBeaconTime + v610 + 4) = pIconsFrameTable->GetIconAnimLength(v611); |
6222 pParty->pHirelings[v609-1].evt_B = pIconsFrameTable->GetIconAnimLength(v611); | 6223 pParty->pHirelings[v609-1].evt_C = pIconsFrameTable->GetIconAnimLength(v611); |
6223 //*(int *)((char *)&pParty->pPlayers[3].pInstalledBeacons[3].field_18 + v610) = 1; | 6224 //*(int *)((char *)&pParty->pPlayers[3].pInstalledBeacons[3].field_18 + v610) = 1; |
6224 pParty->pHirelings[v609-1].field_24 = 1; | 6225 pParty->pHirelings[v609-1].evt_A = 1; |
6225 | 6226 |
6226 v612 = pParty->pPlayers; | 6227 v612 = pParty->pPlayers; |
6227 do | 6228 do |
6228 { | 6229 { |
6229 v612->sHealth = v612->GetMaxHealth(); | 6230 v612->sHealth = v612->GetMaxHealth(); |