Hello,
Ive been adding a new spell now, and it acts a bit like pfm, but i can only find this for pfm
if (m_pClientList[sTargetH]->m_cMagicEffectStatus[DEF_MAGICTYPE_PROTECT] == 2)
iDamage = iDamage / 2;
Where the iDamage is divided by 2, meaning this is the magic void for the higher spells like meteor strike and blizzard, I can't seem to find the lower spells handler like Fire Ball or Energy Strike where if
if (m_pClientList[sTargetH]->m_cMagicEffectStatus[DEF_MAGICTYPE_PROTECT] == 2)
iDamage = 0;
????
Where does pfm handle those?
Cheers Tester
Point in the right direction plz
BOOL CGame::bCheckResistingMagicSuccess(char cAttackerDir, short sTargetH, char cTargetType, int iHitRatio)
the 100 its resist 100%
Code: Select all
case DEF_OWNERTYPE_NPC:
if (m_pNpcList[sTargetH] == NULL) return FALSE;
cTargetDir = m_pNpcList[sTargetH]->m_cDir;
iTargetMagicResistRatio = [QUOTE]m_pNpcList[sTargetH]->m_cResistMagic;[/QUOTE]
cProtect = m_pNpcList[sTargetH]->m_cMagicEffectStatus[DEF_MAGICTYPE_PROTECT];
break;
Code: Select all
case 14:
// ResistMagic
if (_bGetIsStringIsNumber(token) == FALSE) {
PutLogList("(!!!) CRITICAL ERROR! NPC configuration file error - Wrong Data format.");
delete pContents;
delete pStrTok;
return FALSE;
}
m_pNpcConfigList[iNpcConfigListIndex]->m_cResistMagic = atoi(token);
cReadModeB = 15;
break;
Code: Select all
Npc = Hellclaw 49 1000 450 1000 100 80000 15 14 1 10 0 600 [QUOTE]100[/QUOTE] 7 10 0 7 60000 3 50 0 0 5 0
Npc = Tigerworm 50 2000 550 1200 100 120000 18 17 1 10 0 600 [QUOTE]100[/QUOTE] 9 10 0 7 60000 3 70 16000 250 6 0
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Did you ever talk to Dax? Try diuuude. I've found him to be a great source for adding NPC in and spells as well. Locobans would be proud of the new sprite I've got for his Bless spell....tester wrote: Alright that turned out worse then i expected
I found this as well, but cant use it hmm guess ill have to adjust my code
thx anyways juggalo2
Cheers Tester
<!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->charlie says:<br>i may own outpost but im not a nerd<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br><!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->(locobans @ Mar 12 2007, 10:48 PM) <br>"Remember while peeing, If you shake it more than twice you playing with it..." <br><!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd-->