How To I Change:

All Helbreath Server Source Discussion here.
Post Reply
Tafka12
<3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

How can i change few things like:
1)what spells guards cast.
2)what monsters summons do (if cast summon, now comes only Slimes,Orcs,Skeletons and Helbound and Golems and Cyclops) I want it to be smth like Demon the best, then Minotaurus, WereWolf, Ettin and some others, can anyone tell right places to change these small things.
Thank you in advantage
<img src='http://www.hot.ee/carvanho/taavi.png' border='0' alt='user posted image' /><br><br><img src='http://www.hot.ee/carvanho/Elvine.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/LieroX.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/Football.png' border='0' alt='user posted image' />
maku
Regular
Posts: 42
Joined: Sat Dec 11, 2004 5:10 am

Post by maku »

For 1, no idea.. :P

For 2: Go to game.cpp search:

Code: Select all

case 10:strcpy(cNpcName, "Cyclops"); break;
and change the name of npcs :)
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

okey ty but the "case" i must change case number to mob number?
<img src='http://www.hot.ee/carvanho/taavi.png' border='0' alt='user posted image' /><br><br><img src='http://www.hot.ee/carvanho/Elvine.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/LieroX.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/Football.png' border='0' alt='user posted image' />
snoopy81
Loyal fan
Posts: 338
Joined: Mon Jul 12, 2004 7:13 pm

Post by snoopy81 »

;-----Name-------------Type--HD-----DR----HR-MinBrvy-ExpMin/Max-GoldMin/Max--ADT---ADR--Size---Side-AcLmt--ATime-RstM--Magic-Day--Chat-Search-RegenTime---Attr--AbsM-MaxMana-MR--AtkRge-AreaSize
Npc = Guard-Aresden 21 155 150 330 3 1     1     0 0 3 8 0 1 0 1000 100 -10 10 1 8 10000  2 0 1000 130 5 0 110
Npc = Guard-Elvine 21 155 150 330 3 1     1     0 0 3 8 0 2 0 1000 100 -10 10 1 8 10000  2 0 1000 130 5 0 110
Npc = Guard-Neutral 21 115 150 330 3 1     1     0 0 3 8 0 0 0 1000 100 -10 10 1 8 10000  2 0 1000 130 5 0 110
-10 is the spell category change to 1 and more if you wana them cast as other mob....
Either if you wann change that only search game.cpp for NpcBehaviour_Attack(..) function.
Find :

Code: Select all

  // MagicLevel -10 for guards....
  if ((m_pNpcList[iNpcH]->m_cMagicLevel < 0) && (iDice(1,2) == 1) &&
  	(abs(sX - dX) <= 9) && (abs(sY - dY) <= 7)) {
  	iMagicType = -1;
  	if (m_pMagicConfigList[43]->m_sValue1 <= m_pNpcList[iNpcH]->m_iMana) 
    iMagicType = 43; // Lightning
  	else if (m_pMagicConfigList[37]->m_sValue1 <= m_pNpcList[iNpcH]->m_iMana) 
    iMagicType = 37; // Lightning-Arrow
  	else if (m_pMagicConfigList[0]->m_sValue1 <= m_pNpcList[iNpcH]->m_iMana) 
    iMagicType = 0; // Magic Missile
change magictype for whatever you like!
Remember to give more mana if necessary !
_\_ _<br> / , \__/ . \ Admin of Equilibrium Project<br> II\ \___ . O<br> III \_/ \ _ / <a href='http://www.equiprojet.com' target='_blank'>http://www.equiprojet.com</a><br> II I¯I
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

Thank you. I was away little, got it now <_< :rolleyes:
<img src='http://www.hot.ee/carvanho/taavi.png' border='0' alt='user posted image' /><br><br><img src='http://www.hot.ee/carvanho/Elvine.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/LieroX.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/Football.png' border='0' alt='user posted image' />
Post Reply