Point in the right direction plz

All Helbreath Server Source Discussion here.
Post Reply
tester
Outpost bitch
Posts: 544
Joined: Wed Jan 07, 2004 8:58 pm

Post by tester »

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
I support a woman's right to choose<br><br>- In the Mouth?<br>- In the Ass ?<br>- In the Vagina?<br>- Between the Tits?
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

BOOL CGame::bCheckResistingMagicSuccess(char cAttackerDir, short sTargetH, char cTargetType, int iHitRatio)

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;
the 100 its resist 100%

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>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tester
Outpost bitch
Posts: 544
Joined: Wed Jan 07, 2004 8:58 pm

Post by tester »

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
I support a woman's right to choose<br><br>- In the Mouth?<br>- In the Ass ?<br>- In the Vagina?<br>- Between the Tits?
Sentinel
Loyal fan
Posts: 462
Joined: Thu Jan 11, 2007 4:16 pm

Post by Sentinel »

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
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....
<!--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-->
Post Reply