[Req] Weapon Ranges

Discussion about Helbreath Server Files.
diuuude
Outpost bitch
Posts: 592
Joined: Wed Dec 28, 2005 11:57 pm

Post by diuuude »

LythQ wrote: That code alone doesn't fix anything, was just a test to allow me to hit from further with StormBringer. If you're referring to the code where you can change the critical range it can be found on the Client's game.cpp after this block:

Code: Select all

      }else if ( (absX <= 2) && (absY <= 2) // strike on Big mobs & gate from a range
      	&& ((sObjectType == 66)||(sObjectType == 73)||(sObjectType == 81)||(sObjectType == 91)))
      {	wType = _iGetAttackType();
      	m_cCommand = DEF_OBJECTATTACK;
      	m_sCommX = m_sMCX;
      	m_sCommY = m_sMCY;
      }else //
      {	switch (_iGetWeaponSkillType()) {
You then go to the desired type of weapon that you want to change. The one I changed on mine was the StormBringer's, but you can change any type of weapon, let's say for example, Long Swords, you go to:

Code: Select all

      	case 8: // LS
        if (   (absX <= 3) && (absY <= 3) && (m_iSuperAttackLeft > 0) && (m_bSuperAttackMode == TRUE)
        	&& (_iGetAttackType() != 30)) // crit without StormBlade by Snoopy
        {	wType = _iGetAttackType();
        	m_cCommand = DEF_OBJECTATTACK;
        	m_sCommX = m_sMCX;
        	m_sCommY = m_sMCY;
And where you have:

Code: Select all

(absX <= 3) && (absY <= 3)
Change the values to the critical distance you want. The exploit consists in you changing the distance here and doing nothing on the HG, still it allows you to crit from further.
well... crits and attack range only client side ? i hope you are just joking, or i'll hex my client so i'll be able to attack with BHammer for 12 squares away from my target... Even mages won't be able to hit me !
<a href='http://www.technohell.net' target='_blank'><b><span style='color:red'>>>> Helbreath Ressources Website Here <<<</span></b></a><br>C++ Sources, Tools, Server Files, Help on Forum, C++ Snippets, Toplist... Updated often, come visit us !
Dax
&lt;3 bd long time
Posts: 785
Joined: Mon Apr 18, 2005 3:19 pm

Post by Dax »

diuuude wrote: well... crits and attack range only client side ? i hope you are just joking, or i'll hex my client so i'll be able to attack with BHammer for 12 squares away from my target... Even mages won't be able to hit me !
I think he said crits only.
Reppin' 127.0.0.1!!!<br><br><img src='http://img502.imageshack.us/img502/1348/sig4daxbn2.jpg' border='0' alt='user posted image' /><br><br>I contend that we are both atheists. I just believe in one fewer god than you do. <br>When you understand why you dismiss all the other possible gods, you will <br>understand why I dismiss yours.<br>~ <b>Stephen Roberts</b>
LythQ
just visiting
Posts: 9
Joined: Tue Dec 19, 2006 12:36 pm
Location: Portugal
Contact:

Post by LythQ »

Yeah, crits only, the normal attacks are protected in the HG here:

Code: Select all

        //100% Ranged Hit Bug Fix;D
	if ((wType != 2) && (wType < 20)) {
  if (var_AC == FALSE) {
  	sItemIndex = m_pClientList[iClientH]->m_sItemEquipmentStatus[ DEF_EQUIPPOS_TWOHAND ];
  	if (sItemIndex != -1) {
    if (m_pClientList[iClientH]->m_pItemList[sItemIndex] == NULL) return 0;
    if (m_pClientList[iClientH]->m_pItemList[sItemIndex]->m_sIDnum == 845) {
    	if ((sAbsX > 4) || (sAbsY > 4)) wType = 0;
    }
    else {
    	if ((sAbsX > 1) || (sAbsY > 1)) wType = 0;
    }
  	}
  	else {
    if ((sAbsX > 1) || (sAbsY > 1)) wType = 0;
  	}
  }
However that only fixes hit "bug", you can still do crit I guess ^^

Btw, it's not a joke ... try it yourself.
<span style='color:green'>Gief <span style='color:purple'>epix</span> codes plz.</span>
Dax
&lt;3 bd long time
Posts: 785
Joined: Mon Apr 18, 2005 3:19 pm

Post by Dax »

LythQ wrote: Btw, it's not a joke ... try it yourself.
We believe you. Good job finding it. ;)
Reppin' 127.0.0.1!!!<br><br><img src='http://img502.imageshack.us/img502/1348/sig4daxbn2.jpg' border='0' alt='user posted image' /><br><br>I contend that we are both atheists. I just believe in one fewer god than you do. <br>When you understand why you dismiss all the other possible gods, you will <br>understand why I dismiss yours.<br>~ <b>Stephen Roberts</b>
Post Reply