[REQ] summon gives EK

Submit your code requests, and if you are good at coding come help others with their requests.
bone-you
Spamtastic
Posts: 1310
Joined: Wed Mar 16, 2005 3:12 am

Post by bone-you »

Not very specific instructions on how to add it huh..

anyway..

CGame.NpcKilledHandler


under NKH_GOTOPOINT1:;

Code: Select all

  if ((m_pNpcList[iNpcH]->m_bIsSummoned != TRUE) && (cAttackerType == DEF_OWNERTYPE_PLAYER) && 
  	(m_pClientList[sAttackerH] != NULL))
  {
  	m_pClientList[sAttackerH]->m_iEnemyKillCount++;
  	if (m_pClientList[sAttackerH]->m_iEnemyKillCount >  10000) m_pClientList[sAttackerH]->m_iEnemyKillCount = 10000;
  }
Simple code and easy to add. I'd say stick it in an else above it but that'd get confusing for you nubs so this is super super easy. Copy paste freaks will enjoy it >.> Gives 1 EK per kill. use += 234892; instead of ++ for more eks.

note.. this only works with Summon Creature stuff and anything else that uses the issummoned field.. might be crusade objects too (towers and such). If so, just disable those ids.
<img src='http://www.helbreathx.net/sig/sig.jpeg' border='0' alt='user posted image' /><br><a href='http://mafia.cheats4us.org/index.php?x=231030' target='_blank'>#1 on Mafia :D</a><br><!--QuoteBegin-Slipknight+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Slipknight)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->100mb Internet, burstable too 10GB oc192<br>his speed can go up too 10gbs<br>...<br>Yes my car can have a top speed of 1000mph<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br>^^ I wonder where the retard went to.
Post Reply