Client V3.51 & V3.82 C++ Sources

All Helbreath Client Source Discussion here.
Post Reply
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

Drazz wrote:
locobans wrote:
Drajwer wrote: and the sprites bug... tower shield is on char but is not drawed (tower, merien shield) and some of colored items (normal legs is visible on ground but black legs arent). Strange...
LMAO! now that I know...I had a BLACK wand...and wasn't showing on floor...ground...black colour related? :unsure:
Look for

Code: Select all

	else 
    	{	switch (sItemSprite) {
      case 1:
      case 2:
      case 3:
      case 15: m_pSprite[DEF_SPRID_ITEMGROUND_PIVOTPOINT + sItemSprite]->PutSpriteRGB(ix, iy, sItemSpriteFrame, m_wWR[cItemColor] -m_wR[0], m_wWG[cItemColor] -m_wG[0], m_wWB[cItemColor] -m_wB[0], dwTime); break;
      //default: m_pSprite[DEF_SPRID_ITEMGROUND_PIVOTPOINT + sItemSprite]->PutSpriteRGB(ix, iy, sItemSpriteFrame, m_wR[cItemColor] -m_wR[0], m_wG[cItemColor] -m_wG[0], m_wB[cItemColor] -m_wB[0], dwTime); break;
And Remove '//' before default: :D

PD: Maybe better remove switch?
Thank you.
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

if u can conferim its 300 stats then i think i knwo where it cxhanged from skimming thro i dont have time to check but ill chck poost latter on to see
<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>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diuuude
Outpost bitch
Posts: 592
Joined: Wed Dec 28, 2005 11:57 pm

Post by diuuude »

pffff....

DrawDialogBox_LevelUpSettings
DlgBoxClick_LevelUpSettings



Did you try anything before asking stupid questions ?
<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 !
€M4NU€L
Outpost bitch
Posts: 517
Joined: Sat Nov 19, 2005 9:07 pm
Location: I watch gay porn
Contact:

Post by €M4NU€L »

diuuude wrote: pffff....

DrawDialogBox_LevelUpSettings
DlgBoxClick_LevelUpSettings



Did you try anything before asking stupid questions ?
I see that you are in bad mod today ...
<span style='color:blue'>Helbreath Thermal</span> <span style='color:green'>BETA</span> <span style='color:red'>Soon</span>:<br><br>www.youporngay.com<br><br><img src='http://img264.imageshack.us/img264/1041 ... piopk7.jpg' border='0' alt='user posted image' /><br><img src='http://img257.imageshack.us/img257/3762 ... eakxj1.jpg' border='0' alt='user posted image' /><br><img src='http://arthur.crepin.free.fr/images/use ... mpsons.png' border='0' alt='user posted image' /><br><img src='http://img329.imageshack.us/img329/5797/pesgamerrr3.gif' border='0' alt='user posted image' /><br><br><u><b>BLACK GAY LIST:</b></u><br><br><span style='color:red'>€M4NU€L</span>:<br>I look like a girl and he's always complaining someone.
€M4NU€L
Outpost bitch
Posts: 517
Joined: Sat Nov 19, 2005 9:07 pm
Location: I watch gay porn
Contact:

Post by €M4NU€L »

Drazz wrote:
locobans wrote:
Drajwer wrote: and the sprites bug... tower shield is on char but is not drawed (tower, merien shield) and some of colored items (normal legs is visible on ground but black legs arent). Strange...
LMAO! now that I know...I had a BLACK wand...and wasn't showing on floor...ground...black colour related? :unsure:
Look for

Code: Select all

	else 
    	{	switch (sItemSprite) {
      case 1:
      case 2:
      case 3:
      case 15: m_pSprite[DEF_SPRID_ITEMGROUND_PIVOTPOINT + sItemSprite]->PutSpriteRGB(ix, iy, sItemSpriteFrame, m_wWR[cItemColor] -m_wR[0], m_wWG[cItemColor] -m_wG[0], m_wWB[cItemColor] -m_wB[0], dwTime); break;
      //default: m_pSprite[DEF_SPRID_ITEMGROUND_PIVOTPOINT + sItemSprite]->PutSpriteRGB(ix, iy, sItemSpriteFrame, m_wR[cItemColor] -m_wR[0], m_wG[cItemColor] -m_wG[0], m_wB[cItemColor] -m_wB[0], dwTime); break;
And Remove '//' before default: :D

PD: Maybe better remove switch?
so we delete the '//' before default and switch ??

Code: Select all

    	{	switch (sItemSprite) {
<span style='color:blue'>Helbreath Thermal</span> <span style='color:green'>BETA</span> <span style='color:red'>Soon</span>:<br><br>www.youporngay.com<br><br><img src='http://img264.imageshack.us/img264/1041 ... piopk7.jpg' border='0' alt='user posted image' /><br><img src='http://img257.imageshack.us/img257/3762 ... eakxj1.jpg' border='0' alt='user posted image' /><br><img src='http://arthur.crepin.free.fr/images/use ... mpsons.png' border='0' alt='user posted image' /><br><img src='http://img329.imageshack.us/img329/5797/pesgamerrr3.gif' border='0' alt='user posted image' /><br><br><u><b>BLACK GAY LIST:</b></u><br><br><span style='color:red'>€M4NU€L</span>:<br>I look like a girl and he's always complaining someone.
Jensen
Loyal fan
Posts: 300
Joined: Tue Aug 02, 2005 7:40 am
Location: Illinois, USA
Contact:

Post by Jensen »

Drazz wrote:
locobans wrote:
Drajwer wrote: and the sprites bug... tower shield is on char but is not drawed (tower, merien shield) and some of colored items (normal legs is visible on ground but black legs arent). Strange...
LMAO! now that I know...I had a BLACK wand...and wasn't showing on floor...ground...black colour related? :unsure:
Look for

Code: Select all

	else 
    	{	switch (sItemSprite) {
      case 1:
      case 2:
      case 3:
      case 15: m_pSprite[DEF_SPRID_ITEMGROUND_PIVOTPOINT + sItemSprite]->PutSpriteRGB(ix, iy, sItemSpriteFrame, m_wWR[cItemColor] -m_wR[0], m_wWG[cItemColor] -m_wG[0], m_wWB[cItemColor] -m_wB[0], dwTime); break;
      //default: m_pSprite[DEF_SPRID_ITEMGROUND_PIVOTPOINT + sItemSprite]->PutSpriteRGB(ix, iy, sItemSpriteFrame, m_wR[cItemColor] -m_wR[0], m_wG[cItemColor] -m_wG[0], m_wB[cItemColor] -m_wB[0], dwTime); break;
And Remove '//' before default: :D

PD: Maybe better remove switch?
he was suggesting this

Code: Select all

else
    { m_pSprite[DEF_SPRID_ITEMGROUND_PIVOTPOINT + sItemSprite]->PutSpriteRGB(ix, iy, sItemSpriteFrame, m_wR[cItemColor] -m_wR[0], m_wG[cItemColor] -m_wG[0], m_wB[cItemColor] -m_wB[0], dwTime);
theres a little different code for some reason for 1,2,3, and 15 though so im leaving the switch in personally
-><-
€M4NU€L
Outpost bitch
Posts: 517
Joined: Sat Nov 19, 2005 9:07 pm
Location: I watch gay porn
Contact:

Post by €M4NU€L »

Well ... all items that have different colour of their default colour won't show on the Floor :lol:
<span style='color:blue'>Helbreath Thermal</span> <span style='color:green'>BETA</span> <span style='color:red'>Soon</span>:<br><br>www.youporngay.com<br><br><img src='http://img264.imageshack.us/img264/1041 ... piopk7.jpg' border='0' alt='user posted image' /><br><img src='http://img257.imageshack.us/img257/3762 ... eakxj1.jpg' border='0' alt='user posted image' /><br><img src='http://arthur.crepin.free.fr/images/use ... mpsons.png' border='0' alt='user posted image' /><br><img src='http://img329.imageshack.us/img329/5797/pesgamerrr3.gif' border='0' alt='user posted image' /><br><br><u><b>BLACK GAY LIST:</b></u><br><br><span style='color:red'>€M4NU€L</span>:<br>I look like a girl and he's always complaining someone.
Shetar
Member
Posts: 148
Joined: Sun Nov 30, 2003 12:57 am

Post by Shetar »

Yoo, I see you guys are bugfixing, good to hear! Any known heavily bugged features? I might be able to help :)
Helbreath II Project Manager & All round Developer. <br><i>(Don't worry, we're not dead)</i>
snoopy81
Loyal fan
Posts: 338
Joined: Mon Jul 12, 2004 7:13 pm

Post by snoopy81 »

Uploaded v1.0.1.0

Last minute fix:
- Colored items (black) on ground.
(AS explaned above. I could never find this bug because this code had been rewritten for my server)

Known missing feature added:
- 3x3 for Wyverns, abaddon, Gate.
(Gates were not functionning with Siementec 3.51 client, so I designed a workaround server sided. As a result, I can't check it with this client)

Search, and add conditions...
BOOL CMapData::bGetIsLocateable(short sX, short sY)

Code: Select all

  if (m_pData[dX+1][dY+1].m_sOwnerType == 66) return FALSE;
  if (m_pData[dX+1]  [dY].m_sOwnerType == 66) return FALSE;
  if (m_pData[dX+1][dY-1].m_sOwnerType == 66) return FALSE;
  if (m_pData  [dX][dY+1].m_sOwnerType == 66) return FALSE;
  if (m_pData  [dX]  [dY].m_sOwnerType == 66) return FALSE;
  if (m_pData  [dX][dY-1].m_sOwnerType == 66) return FALSE;
  if (m_pData[dX-1][dY+1].m_sOwnerType == 66) return FALSE;
  if (m_pData[dX-1]  [dY].m_sOwnerType == 66) return FALSE;
  if (m_pData[dX-1][dY-1].m_sOwnerType == 66) return FALSE;

  if (m_pData[dX+1][dY+1].m_sOwnerType == 73) return FALSE;
  if (m_pData[dX+1]  [dY].m_sOwnerType == 73) return FALSE;
  if (m_pData[dX+1][dY-1].m_sOwnerType == 73) return FALSE;
  if (m_pData  [dX][dY+1].m_sOwnerType == 73) return FALSE;
  if (m_pData  [dX]  [dY].m_sOwnerType == 73) return FALSE;
  if (m_pData  [dX][dY-1].m_sOwnerType == 73) return FALSE;
  if (m_pData[dX-1][dY+1].m_sOwnerType == 73) return FALSE;
  if (m_pData[dX-1]  [dY].m_sOwnerType == 73) return FALSE;
  if (m_pData[dX-1][dY-1].m_sOwnerType == 73) return FALSE;

  if (m_pData[dX+1][dY+1].m_sOwnerType == 81) return FALSE;
  if (m_pData[dX+1]  [dY].m_sOwnerType == 81) return FALSE;
  if (m_pData[dX+1][dY-1].m_sOwnerType == 81) return FALSE;
  if (m_pData  [dX][dY+1].m_sOwnerType == 81) return FALSE;
  if (m_pData  [dX]  [dY].m_sOwnerType == 81) return FALSE;
  if (m_pData  [dX][dY-1].m_sOwnerType == 81) return FALSE;
  if (m_pData[dX-1][dY+1].m_sOwnerType == 81) return FALSE;
  if (m_pData[dX-1]  [dY].m_sOwnerType == 81) return FALSE;
  if (m_pData[dX-1][dY-1].m_sOwnerType == 81) return FALSE;

  if (m_pData[dX+1][dY+1].m_sOwnerType == 91) return FALSE;
  if (m_pData[dX+1]  [dY].m_sOwnerType == 91) return FALSE;
  if (m_pData[dX+1][dY-1].m_sOwnerType == 91) return FALSE;
  if (m_pData  [dX][dY+1].m_sOwnerType == 91) return FALSE;
  if (m_pData  [dX]  [dY].m_sOwnerType == 91) return FALSE;
  if (m_pData  [dX][dY-1].m_sOwnerType == 91) return FALSE;
  if (m_pData[dX-1][dY+1].m_sOwnerType == 91) return FALSE;
  if (m_pData[dX-1]  [dY].m_sOwnerType == 91) return FALSE;
  if (m_pData[dX-1][dY-1].m_sOwnerType == 91) return FALSE;

Search for: absY = abs(m_sPlayerY - m_sMCY); (4 times)
Below:

Code: Select all

if ((absX <= 1) && (absY <= 1))
    	{	wType = _iGetAttackType();
      m_cCommand = DEF_OBJECTATTACK;
      m_sCommX = m_sMCX;
      m_sCommY = m_sMCY;
    	}else...
Add else if ... at the 4 places.

Code: Select all

if ((absX <= 1) && (absY <= 1))
    	{	wType = _iGetAttackType();
      m_cCommand = DEF_OBJECTATTACK;
      m_sCommX = m_sMCX;
      m_sCommY = m_sMCY;
    	}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...
_\_ _<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
RageIlluminati
Outpost bitch
Posts: 559
Joined: Wed Mar 30, 2005 6:45 am

Post by RageIlluminati »

gates function with 3.51 client fine... I have them working right with 3.51 client.. but I use original 3.51 server files as well...
<img src='http://helbreath.pri.ee/userbars/hbest-gamemaster2.jpg' border='0' alt='user posted image' /> <img src='http://helbreath.pri.ee/userbars/hbsoccer-owner.jpg' border='0' alt='user posted image' /> <img src='http://helbreath.pri.ee/userbars/scorpa-rider.jpg' border='0' alt='user posted image' /> <img src='http://helbreath.pri.ee/userbars/logout-master.jpg' border='0' alt='user posted image' /> <br>.<br>................................Ego sum Rage, flagellum Dei!<br><br>The problem with America is stupidity. I'm not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself? (bash.org)
€M4NU€L
Outpost bitch
Posts: 517
Joined: Sat Nov 19, 2005 9:07 pm
Location: I watch gay porn
Contact:

Post by €M4NU€L »

snoopy81 wrote: Uploaded v1.0.1.0

Last minute fix:
- Colored items (black) on ground.
(AS explaned above. I could never find this bug because this code had been rewritten for my server)

Known missing feature added:
- 3x3 for Wyverns, abaddon, Gate.
(Gates were not functionning with Siementec 3.51 client, so I designed a workaround server sided. As a result, I can't check it with this client)

Search, and add conditions...
BOOL CMapData::bGetIsLocateable(short sX, short sY)

Code: Select all

  if (m_pData[dX+1][dY+1].m_sOwnerType == 66) return FALSE;
  if (m_pData[dX+1]  [dY].m_sOwnerType == 66) return FALSE;
  if (m_pData[dX+1][dY-1].m_sOwnerType == 66) return FALSE;
  if (m_pData  [dX][dY+1].m_sOwnerType == 66) return FALSE;
  if (m_pData  [dX]  [dY].m_sOwnerType == 66) return FALSE;
  if (m_pData  [dX][dY-1].m_sOwnerType == 66) return FALSE;
  if (m_pData[dX-1][dY+1].m_sOwnerType == 66) return FALSE;
  if (m_pData[dX-1]  [dY].m_sOwnerType == 66) return FALSE;
  if (m_pData[dX-1][dY-1].m_sOwnerType == 66) return FALSE;

  if (m_pData[dX+1][dY+1].m_sOwnerType == 73) return FALSE;
  if (m_pData[dX+1]  [dY].m_sOwnerType == 73) return FALSE;
  if (m_pData[dX+1][dY-1].m_sOwnerType == 73) return FALSE;
  if (m_pData  [dX][dY+1].m_sOwnerType == 73) return FALSE;
  if (m_pData  [dX]  [dY].m_sOwnerType == 73) return FALSE;
  if (m_pData  [dX][dY-1].m_sOwnerType == 73) return FALSE;
  if (m_pData[dX-1][dY+1].m_sOwnerType == 73) return FALSE;
  if (m_pData[dX-1]  [dY].m_sOwnerType == 73) return FALSE;
  if (m_pData[dX-1][dY-1].m_sOwnerType == 73) return FALSE;

  if (m_pData[dX+1][dY+1].m_sOwnerType == 81) return FALSE;
  if (m_pData[dX+1]  [dY].m_sOwnerType == 81) return FALSE;
  if (m_pData[dX+1][dY-1].m_sOwnerType == 81) return FALSE;
  if (m_pData  [dX][dY+1].m_sOwnerType == 81) return FALSE;
  if (m_pData  [dX]  [dY].m_sOwnerType == 81) return FALSE;
  if (m_pData  [dX][dY-1].m_sOwnerType == 81) return FALSE;
  if (m_pData[dX-1][dY+1].m_sOwnerType == 81) return FALSE;
  if (m_pData[dX-1]  [dY].m_sOwnerType == 81) return FALSE;
  if (m_pData[dX-1][dY-1].m_sOwnerType == 81) return FALSE;

  if (m_pData[dX+1][dY+1].m_sOwnerType == 91) return FALSE;
  if (m_pData[dX+1]  [dY].m_sOwnerType == 91) return FALSE;
  if (m_pData[dX+1][dY-1].m_sOwnerType == 91) return FALSE;
  if (m_pData  [dX][dY+1].m_sOwnerType == 91) return FALSE;
  if (m_pData  [dX]  [dY].m_sOwnerType == 91) return FALSE;
  if (m_pData  [dX][dY-1].m_sOwnerType == 91) return FALSE;
  if (m_pData[dX-1][dY+1].m_sOwnerType == 91) return FALSE;
  if (m_pData[dX-1]  [dY].m_sOwnerType == 91) return FALSE;
  if (m_pData[dX-1][dY-1].m_sOwnerType == 91) return FALSE;

Search for: absY = abs(m_sPlayerY - m_sMCY); (4 times)
Below:

Code: Select all

if ((absX <= 1) && (absY <= 1))
    	{	wType = _iGetAttackType();
      m_cCommand = DEF_OBJECTATTACK;
      m_sCommX = m_sMCX;
      m_sCommY = m_sMCY;
    	}else...
Add else if ... at the 4 places.

Code: Select all

if ((absX <= 1) && (absY <= 1))
    	{	wType = _iGetAttackType();
      m_cCommand = DEF_OBJECTATTACK;
      m_sCommX = m_sMCX;
      m_sCommY = m_sMCY;
    	}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...
Snoopy ... there are all colours that doesn't show on ground not only black :lol:
<span style='color:blue'>Helbreath Thermal</span> <span style='color:green'>BETA</span> <span style='color:red'>Soon</span>:<br><br>www.youporngay.com<br><br><img src='http://img264.imageshack.us/img264/1041 ... piopk7.jpg' border='0' alt='user posted image' /><br><img src='http://img257.imageshack.us/img257/3762 ... eakxj1.jpg' border='0' alt='user posted image' /><br><img src='http://arthur.crepin.free.fr/images/use ... mpsons.png' border='0' alt='user posted image' /><br><img src='http://img329.imageshack.us/img329/5797/pesgamerrr3.gif' border='0' alt='user posted image' /><br><br><u><b>BLACK GAY LIST:</b></u><br><br><span style='color:red'>€M4NU€L</span>:<br>I look like a girl and he's always complaining someone.
Drajwer
&lt;3 bd long time
Posts: 841
Joined: Fri Dec 10, 2004 3:24 pm

Post by Drajwer »

thanks for fixing colored items. now Shields M are still missing on character :(.
<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)
snoopy81
Loyal fan
Posts: 338
Joined: Mon Jul 12, 2004 7:13 pm

Post by snoopy81 »

now Shields M are still missing on character
I tought I fixed that long ago...
On character? F5 Diag or moving/running/hitting ..... ?
_\_ _<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
Drajwer
&lt;3 bd long time
Posts: 841
Joined: Fri Dec 10, 2004 3:24 pm

Post by Drajwer »

on f5 character info its visible but on character (every event like running attacking etc.). i think some bows also arent drawed on char.
<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)
Cleroth
Loyal fan
Posts: 416
Joined: Wed Jun 16, 2004 7:08 pm

Post by Cleroth »

snoopy81 wrote: Uploaded v1.0.1.0

Last minute fix:
- Colored items (black) on ground.
(AS explaned above. I could never find this bug because this code had been rewritten for my server)

Known missing feature added:
- 3x3 for Wyverns, abaddon, Gate.
(Gates were not functionning with Siementec 3.51 client, so I designed a workaround server sided. As a result, I can't check it with this client)

Search, and add conditions...
BOOL CMapData::bGetIsLocateable(short sX, short sY)

Code: Select all

  if (m_pData[dX+1][dY+1].m_sOwnerType == 66) return FALSE;
  if (m_pData[dX+1]  [dY].m_sOwnerType == 66) return FALSE;
  if (m_pData[dX+1][dY-1].m_sOwnerType == 66) return FALSE;
  if (m_pData  [dX][dY+1].m_sOwnerType == 66) return FALSE;
  if (m_pData  [dX]  [dY].m_sOwnerType == 66) return FALSE;
  if (m_pData  [dX][dY-1].m_sOwnerType == 66) return FALSE;
  if (m_pData[dX-1][dY+1].m_sOwnerType == 66) return FALSE;
  if (m_pData[dX-1]  [dY].m_sOwnerType == 66) return FALSE;
  if (m_pData[dX-1][dY-1].m_sOwnerType == 66) return FALSE;

  if (m_pData[dX+1][dY+1].m_sOwnerType == 73) return FALSE;
  if (m_pData[dX+1]  [dY].m_sOwnerType == 73) return FALSE;
  if (m_pData[dX+1][dY-1].m_sOwnerType == 73) return FALSE;
  if (m_pData  [dX][dY+1].m_sOwnerType == 73) return FALSE;
  if (m_pData  [dX]  [dY].m_sOwnerType == 73) return FALSE;
  if (m_pData  [dX][dY-1].m_sOwnerType == 73) return FALSE;
  if (m_pData[dX-1][dY+1].m_sOwnerType == 73) return FALSE;
  if (m_pData[dX-1]  [dY].m_sOwnerType == 73) return FALSE;
  if (m_pData[dX-1][dY-1].m_sOwnerType == 73) return FALSE;

  if (m_pData[dX+1][dY+1].m_sOwnerType == 81) return FALSE;
  if (m_pData[dX+1]  [dY].m_sOwnerType == 81) return FALSE;
  if (m_pData[dX+1][dY-1].m_sOwnerType == 81) return FALSE;
  if (m_pData  [dX][dY+1].m_sOwnerType == 81) return FALSE;
  if (m_pData  [dX]  [dY].m_sOwnerType == 81) return FALSE;
  if (m_pData  [dX][dY-1].m_sOwnerType == 81) return FALSE;
  if (m_pData[dX-1][dY+1].m_sOwnerType == 81) return FALSE;
  if (m_pData[dX-1]  [dY].m_sOwnerType == 81) return FALSE;
  if (m_pData[dX-1][dY-1].m_sOwnerType == 81) return FALSE;

  if (m_pData[dX+1][dY+1].m_sOwnerType == 91) return FALSE;
  if (m_pData[dX+1]  [dY].m_sOwnerType == 91) return FALSE;
  if (m_pData[dX+1][dY-1].m_sOwnerType == 91) return FALSE;
  if (m_pData  [dX][dY+1].m_sOwnerType == 91) return FALSE;
  if (m_pData  [dX]  [dY].m_sOwnerType == 91) return FALSE;
  if (m_pData  [dX][dY-1].m_sOwnerType == 91) return FALSE;
  if (m_pData[dX-1][dY+1].m_sOwnerType == 91) return FALSE;
  if (m_pData[dX-1]  [dY].m_sOwnerType == 91) return FALSE;
  if (m_pData[dX-1][dY-1].m_sOwnerType == 91) return FALSE;

Search for: absY = abs(m_sPlayerY - m_sMCY); (4 times)
Below:

Code: Select all

if ((absX <= 1) && (absY <= 1))
    	{	wType = _iGetAttackType();
      m_cCommand = DEF_OBJECTATTACK;
      m_sCommX = m_sMCX;
      m_sCommY = m_sMCY;
    	}else...
Add else if ... at the 4 places.

Code: Select all

if ((absX <= 1) && (absY <= 1))
    	{	wType = _iGetAttackType();
      m_cCommand = DEF_OBJECTATTACK;
      m_sCommX = m_sMCX;
      m_sCommY = m_sMCY;
    	}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...
fvsjidahcasuiodhruewqoisancaskld!!!!!!! :o
I'm hiring you! :D
<img src='http://ic1.deviantart.com/fs11/i/2006/1 ... leroth.gif' border='0' alt='user posted image' />
Post Reply