Cgame::doabaddonthunderdamagehandler

All Helbreath Server Source Discussion here.
Hypnotoad
Member
Posts: 100
Joined: Wed Apr 28, 2004 8:16 pm

Post by Hypnotoad »

Been working on helbreath for a few days got alot done. Heres a small snippet. When i finish enough and test it i'll probably release it here. Don't expect anything anytime soon, because I hardly have any free time anymore.

thanks

Image

Code: Select all

void CGame::DoAbaddonThunderDamageHandler()
{
 int iResult;
 register int i;

	if (m_bIsApocalypseMode != TRUE) return;
	if (iDice(1, 100) != 1) return;
	for (i = 0; i < DEF_MAXCLIENTS; i++) {
  if (m_pClientList[i] != NULL) {
  if (m_pClientList[i]->m_iAdminUserLevel > 0) return;
  	if (memcmp(m_pClientList[i]->m_cMapName, "abaddon", 7) == 0) {
    iResult = iDice(1,20) + 100;
    if ((m_pClientList[i]->m_cMagicEffectStatus[DEF_MAGICTYPE_PROTECT] == 2) ||
    	(m_pClientList[i]->m_cMagicEffectStatus[DEF_MAGICTYPE_PROTECT] == 5)) {
    	iResult /= 2;
    }
    SendNotifyMsg(NULL, i, DEF_NOTIFY_0BE5, NULL, NULL, NULL, NULL);
    m_pClientList[i]->m_iHP -= iResult;
    if (m_pClientList[i]->m_iHP <= 0) {
    	ClientKilledHandler(i, NULL, NULL, iResult);
    }
    else if (iResult > 0) {
    	SendNotifyMsg(NULL, i, DEF_NOTIFY_HP, NULL, NULL, NULL, NULL);
    	SendEventToNearClient_TypeA(i, DEF_OWNERTYPE_PLAYER, MSGID_EVENT_MOTION, DEF_OBJECTDAMAGE, iResult, NULL, NULL);
    	if (m_pClientList[i]->m_bSkillUsingStatus[19] != TRUE) {
      	m_pMapList[m_pClientList[i]->m_cMapIndex]->ClearOwner(0, i, DEF_OWNERTYPE_PLAYER, m_pClientList[i]->m_sX, m_pClientList[i]->m_sY);
      	m_pMapList[m_pClientList[i]->m_cMapIndex]->SetOwner(i, DEF_OWNERTYPE_PLAYER, m_pClientList[i]->m_sX, m_pClientList[i]->m_sY);
    	}
    	if (m_pClientList[i]->m_cMagicEffectStatus[DEF_MAGICTYPE_HOLDOBJECT] != 0) {
      SendNotifyMsg(NULL, i, DEF_NOTIFY_MAGICEFFECTOFF, DEF_MAGICTYPE_HOLDOBJECT, m_pClientList[i]->m_cMagicEffectStatus[DEF_MAGICTYPE_HOLDOBJECT], NULL, NULL);
      bRemoveFromDelayEventList(i, DEF_OWNERTYPE_PLAYER, DEF_MAGICTYPE_HOLDOBJECT);
    	}
    }
  	}
  }
	}
}
<img src='http://www.playah.no-ip.com/images/Hypn ... imated.gif' border='0' alt='user posted image' />
Aryes
Member
Posts: 114
Joined: Tue Aug 31, 2004 10:14 pm
Location: Brazil

Post by Aryes »

Sweet man, good job. ;)
====<span style='color:red'><br>Aryes</span><br>====<br><br>HB United: www.hbuonline.net:<br><br><img src="http://hbtop50.com/button.php?u=hbkhispano" alt="Helbreath Top 50 - Helbreath Silver" border="0" /><br><img src="http://hbtop50.com/button.php?u=dcom" alt="Helbreath Top 50 - Helbreath Silver" border="0" /><br><img src="http://hbtop50.com/button.php?u=tinchocba" alt="Helbreath Top 50 - Helbreath Silver" border="0" /><br><img src="http://hbtop50.com/button.php?u=rafha_bernn" alt="Helbreath Top 50 - Helbreath Silver" border="0" /><br><img src="http://hbtop50.com/button.php?u=HB-Tere" alt="Helbreath Top 50 - Helbreath Silver" border="0" /><br><img src="http://hbtop50.com/button.php?u=Kiruku" alt="Helbreath Top 50 - Helbreath Silver" border="0" />
Drajwer
&lt;3 bd long time
Posts: 841
Joined: Fri Dec 10, 2004 3:24 pm

Post by Drajwer »

gj xD

DEF_NOTIFY_0BE5 ?
<img src='http://img440.imageshack.us/img440/2627/15pt.jpg' border='0' alt='user posted image' /><br><br>HBPolska characters:<br><br>Hellios 150+ Aresden Hero Mage<br>TheBill 120 Aresden plrider<br>Kill_Me 100 Full-Hero plrider<br>Rockeater 110+ Aresden Plate Mage<br><br><a href='http://www.helbreath.org' target='_blank'>http://www.helbreath.org</a> come and play (250 ppl online)
Hypnotoad
Member
Posts: 100
Joined: Wed Apr 28, 2004 8:16 pm

Post by Hypnotoad »

Drajwer wrote: gj xD

DEF_NOTIFY_0BE5 ?
i didnt rename it so you know the netmessage definition value :P
<img src='http://www.playah.no-ip.com/images/Hypn ... imated.gif' border='0' alt='user posted image' />
Ice-T
Loyal fan
Posts: 262
Joined: Sat Oct 18, 2003 8:51 am
Location: nowere

Post by Ice-T »

its kinda easey to guess
<img src='http://www.prism.gatech.edu/~gtg818f/basesig.gif' border='0' alt='user posted image' /><br><img src='http://img228.imageshack.us/img228/439/steam1tf.gif' border='0' alt='user posted image' />
Slayer
&lt;3 bd long time
Posts: 947
Joined: Thu Mar 17, 2005 9:08 pm

Post by Slayer »

Ah, cool to have you back! You made this 2.25 release or is it non-HBX? Anyway, good luck!

Slayer, yea, the sig dude:P
<img src='http://i9.tinypic.com/2vs292h.jpg' border='0' alt='user posted image' />
Hypnotoad
Member
Posts: 100
Joined: Wed Apr 28, 2004 8:16 pm

Post by Hypnotoad »

NeukenInDeKeuken wrote: Ah, cool to have you back! You made this 2.25 release or is it non-HBX? Anyway, good luck!

Slayer, yea, the sig dude:P
:) hey slayer i still have your siggies, and people love them everywhere i use it! And no 2.25 isn't mine, i have no idea what was changed... No changelog or anything just said 2.25.

if u can make more pimp siggies for me, even if its your old work rehashed that'd be great. You have a real skill there

some more...hot out the presses :P Held and apoc are coming along nicely now. Only a few more days if i continue at this rate..

Code: Select all

void CGame::CheckHeldenianResultCalculation(int iClientH)
{
 double dV1, dV2, dV3;

	if (m_pClientList[iClientH] == NULL) return;
	if (m_pClientList[iClientH]->m_cWarType != 2) return;
	if ((m_cHeldenianModeType == 0) || (m_pClientList[iClientH]->m_dwCrusadeGUID == 0)) return;
	if (m_pClientList[iClientH]->m_iWarContribution > DEF_MAXWARCONTRIBUTION) m_pClientList[iClientH]->m_iWarContribution = DEF_MAXWARCONTRIBUTION;
	if (m_pClientList[iClientH]->m_dwCrusadeGUID == m_dwHeldenianGUID) {
  if (m_sLastHeldenianWinner == 0) {
  	m_pClientList[iClientH]->m_iExpStock += m_pClientList[iClientH]->m_iWarContribution/6;
  }
  else if (m_pClientList[iClientH]->m_cSide == m_sLastHeldenianWinner) {
  	if (m_pClientList[iClientH]->m_iLevel <= 80) {
    m_pClientList[iClientH]->m_iWarContribution += m_pClientList[iClientH]->m_iLevel*200;
  	}
  	else if (m_pClientList[iClientH]->m_iLevel > 100) {
    m_pClientList[iClientH]->m_iWarContribution += m_pClientList[iClientH]->m_iLevel*100;    
  	}
  	else {
    m_pClientList[iClientH]->m_iWarContribution += m_pClientList[iClientH]->m_iLevel*30;    
  	}
  	dV2 = (double)m_pClientList[iClientH]->m_iExpStock;
  	dV3 = (double)m_pClientList[iClientH]->m_iWarContribution*1.2;
  	dV1 = dV2 + dV3;
  	m_pClientList[iClientH]->m_iExpStock += dV1;
  }
  else if (m_pClientList[iClientH]->m_cSide != m_sLastHeldenianWinner) {
  	if (m_pClientList[iClientH]->m_iLevel <= 80) {
    m_pClientList[iClientH]->m_iWarContribution += m_pClientList[iClientH]->m_iLevel*200;
  	}
  	else if (m_pClientList[iClientH]->m_iLevel > 100) {
    m_pClientList[iClientH]->m_iWarContribution += m_pClientList[iClientH]->m_iLevel*100;    
  	}
  	else {
    m_pClientList[iClientH]->m_iWarContribution += m_pClientList[iClientH]->m_iLevel*30;    
  	}
  	m_pClientList[iClientH]->m_iExpStock += m_pClientList[iClientH]->m_iWarContribution/5;
  }
  m_pClientList[iClientH]->m_iWarContribution = 0;
  m_pClientList[iClientH]->m_dwCrusadeGUID = 0;
  m_pClientList[iClientH]->m_dwSpeedHackCheckTime = timeGetTime();
  m_pClientList[iClientH]->m_iSpeedHackCheckExp = m_pClientList[iClientH]->m_iExp;
	}
}
<img src='http://www.playah.no-ip.com/images/Hypn ... imated.gif' border='0' alt='user posted image' />
Xakep
Regular
Posts: 79
Joined: Wed Nov 12, 2003 8:57 pm
Location: Internet

Post by Xakep »

to Hypnotoad: What about 2.24c its HBx release or not ?
Xakep
Regular
Posts: 79
Joined: Wed Nov 12, 2003 8:57 pm
Location: Internet

Post by Xakep »

Its possible to reborn HBx Team ?
Hypnotoad
Member
Posts: 100
Joined: Wed Apr 28, 2004 8:16 pm

Post by Hypnotoad »

well in reply to "is hbx reborn please"
i cannot say, jimmy is working with aryes and bigchief is working with magsec?? and klks is on a linux machine (nood) and im in college. Only reason i opened hb was because my internet went down for 2 days.

in reply to "2.24c" that im sure isnt ours, my source stopped at 2.24b.

btw. I need a helbreath server to play, i have the sudden urge. I was looking around and got real sad that people were butchering it, adding new stats and stuff. Im probably going to remove some of the lame stuff we did /redball etc...

The stech people might suck at everything else, security etc, but they really got the game balanced real well. Not specifically attacking you aryes but, when i see charisma removed or stuff like that it drives me nuts. Charisma has its purposes and alot of stuff rely on it, guildmasters are naturally weaker because a powerful guildmaster who can summon crusade/heldenian npcs is an overpowered character. The 3.333 level loss is well worth that power.

If anyone knows a good ol fasioned helbreath server i can hang out in and will probably be there for a while, with good gms which dont interfere too much, dont have mp91 hauberk events everyday, decent exp, decent drops, give me a PM plz. (not looking for a GM position please, just a server to play at for my bro)
<img src='http://www.playah.no-ip.com/images/Hypn ... imated.gif' border='0' alt='user posted image' />
Aryes
Member
Posts: 114
Joined: Tue Aug 31, 2004 10:14 pm
Location: Brazil

Post by Aryes »

True, charisma have its features, but I had to try something new, and I've tried to balance other things where charisma was needed. Not a BIG difference like having max level 1000 or something, just something new. Some people like, some not but, oh well, it's just a game...

Right now, I just need to wait Jimmy to finish his part on the hgserver, so we can put the server up and start fixing bugs, then I'll be back again to finish coding my own game (which have it's sketch done, just need someone who works good with 3d max so I can start working in the source again...), but oh well, back to the topic, is good to see you around again bro, hb community owe you a LOT.
====<span style='color:red'><br>Aryes</span><br>====<br><br>HB United: www.hbuonline.net:<br><br><img src="http://hbtop50.com/button.php?u=hbkhispano" alt="Helbreath Top 50 - Helbreath Silver" border="0" /><br><img src="http://hbtop50.com/button.php?u=dcom" alt="Helbreath Top 50 - Helbreath Silver" border="0" /><br><img src="http://hbtop50.com/button.php?u=tinchocba" alt="Helbreath Top 50 - Helbreath Silver" border="0" /><br><img src="http://hbtop50.com/button.php?u=rafha_bernn" alt="Helbreath Top 50 - Helbreath Silver" border="0" /><br><img src="http://hbtop50.com/button.php?u=HB-Tere" alt="Helbreath Top 50 - Helbreath Silver" border="0" /><br><img src="http://hbtop50.com/button.php?u=Kiruku" alt="Helbreath Top 50 - Helbreath Silver" border="0" />
binarydata
DBfiller
Posts: 3816
Joined: Fri Oct 31, 2003 5:30 am
Location: San Diego CA, USA
Contact:

Post by binarydata »

Hypnotoad wrote: well in reply to "is hbx reborn please"
i cannot say, jimmy is working with aryes and bigchief is working with magsec?? and klks is on a linux machine (nood) and im in college.  Only reason i opened hb was because my internet went down for 2 days.

in reply to "2.24c" that im sure isnt ours, my source stopped at 2.24b. 

btw. I need a helbreath server to play, i have the sudden urge.  I was looking around and got real sad that people were butchering it, adding new stats and stuff.  Im probably going to remove some of the lame stuff we did /redball etc...

The stech people might suck at everything else, security etc,  but they really got the game balanced real well.  Not specifically attacking you aryes but, when i see charisma removed or stuff like that it drives me nuts.  Charisma has its purposes and alot of stuff rely on it, guildmasters are naturally weaker because a powerful guildmaster who can summon crusade/heldenian npcs is an overpowered character.  The 3.333 level loss is well worth that power.

If anyone knows a good ol fasioned helbreath server i can hang out in and will probably be there for a while, with good gms which dont interfere too much, dont have mp91 hauberk events everyday, decent exp, decent drops, give me a PM plz.  (not looking for a GM position please, just a server to play at for my bro)
www.helbreathnemesis.com
they would probly want u to help em :P
real 3.51 right now, no stupid items and shit
dk sets, high exp
<img src='http://img88.exs.cx/img88/2290/7666.jpg' border='0' alt='user posted image' />
bolex17
Loyal fan
Posts: 364
Joined: Wed Nov 19, 2003 6:19 am

Post by bolex17 »

woo go hypnotoad u r teh roxxor! <_<
<img src='http://server3.uploadit.org/files/bolex17-thabest.JPG' border='0' alt='user posted image' /><br><br><span style='color:red'><b><a href='http://hbtop50.berserkvision.com/in.php?id=582' target='_blank'>Click Here To Support Outpost!</a></b></span><br><br><span style='color:red'>Shit List</span><br>popic<br>pronoob
bigchief
Loyal fan
Posts: 289
Joined: Sat Feb 28, 2004 12:45 pm
Location: In Chicks Rooms/Dorms Or Passed Out On The Floor
Contact:

Post by bigchief »

<3 Toad
Just remember if you shake it more then 3 times your playing with it.
binarydata
DBfiller
Posts: 3816
Joined: Fri Oct 31, 2003 5:30 am
Location: San Diego CA, USA
Contact:

Post by binarydata »

bigchief wrote: <3 Toad
he so sex
<img src='http://img88.exs.cx/img88/2290/7666.jpg' border='0' alt='user posted image' />
Post Reply