[CODE] Hechizo|Spell: Strike of the Ghost

#1
Sources
Ailyn, and KenZoB. "Strike Of The Ghosts." Code. Comunidad Warehouse Helbreath. Sponsor Roazir, 6 Nov. 2014. Web. 29 May 2017. <http://warehousehb.2morpg.com/t99-magic ... -the-ghost>.
`
1 - Primero:
  • Ve a "Client Sources"
  • Encontrar "bAddNewEffect" (sin las comillas)
  • Encontrar case 196:
  • Arriba, agregue el código siguiente:

Code: Select all

case 149:
 case 198: // Strike-Of-The-Ghosts
 m_pEffectList[i]->m_mX     = sX*32;
 m_pEffectList[i]->m_mY     = sY*32;
 m_pEffectList[i]->m_iErr   = 0;
 m_pEffectList[i]->m_cMaxFrame   = 8;
 m_pEffectList[i]->m_dwFrameTime = 25;
 sAbsX = abs(320 - (sX - m_sViewPointX));
 sAbsY = abs(240 - (sY - m_sViewPointY));
 if (sAbsX > sAbsY) sDist = sAbsX;
 else sDist = sAbsY;
 sDist = sDist / 32;
 break;
 case 245: // Ghosts 1
 m_pEffectList[i]->m_mX    = sX;
 m_pEffectList[i]->m_mY    = sY;
 m_pEffectList[i]->m_cMaxFrame   = 17;
 m_pEffectList[i]->m_dwFrameTime = 30;
 sAbsX = abs(320 - (sX - m_sViewPointX));
 sAbsY = abs(240 - (sY - m_sViewPointY));
 if (sAbsX > sAbsY) sDist = sAbsX;
 else sDist = sAbsY;
 sDist = sDist / 32;
 lPan = -(((m_sViewPointX / 32) + 10) - sX)*1000;
 PlaySound('E', 4, sDist, lPan);
 m_pEffectList[i]->m_iV1 = sDist;
 break;
`
2 - Siguiente:
  • Ve a"DrawEffects" (sin las comillas)
  • Encontrar case 196:
  • A continuación, arriba agregue el siguiente código:

Code: Select all

case 149:
 cTempFrame = m_pEffectList[i]->m_cFrame;
 if (cTempFrame < 0) break;
 dX  = (m_pEffectList[i]->m_dX*32)  - m_sViewPointX;
 dY  = (m_pEffectList[i]->m_dY*32)  - m_sViewPointY;
 iDvalue = (cTempFrame - 5)*(-5);
 m_pEffectSpr[158]->PutTransSprite70(dX, dY , cTempFrame, dwTime);
 m_pEffectSpr[154]->PutTransSprite70(dX, dY , cTempFrame, dwTime);
 break;
                case 245: // Strike-Of-The-Ghosts
 case 198:
 cTempFrame = m_pEffectList[i]->m_cFrame;
 if (cTempFrame < 0) break;
 dX  = (m_pEffectList[i]->m_mX)  - m_sViewPointX;
 dY  = (m_pEffectList[i]->m_mY)  - m_sViewPointY;
 
 m_pEffectSpr[158]->PutTransSprite70(dX, dY , cTempFrame, dwTime);
 m_pEffectSpr[154]->PutTransSprite70(dX, dY , cTempFrame, dwTime);

 break;
`
3 - Último:
  • Encontrar case 196:
  • Ve a "bEffectFrameCounter" (sin las comillas)
  • Arriba, agregue el código siguiente:

Code: Select all

//case 149:
 case 198: // VAMP - Strike-Of-The-Ghosts
 m_Misc.GetPoint(m_pEffectList[i]->m_mX
 , m_pEffectList[i]->m_mY
 , m_pEffectList[i]->m_dX*32
 , m_pEffectList[i]->m_dY*32
 , &m_pEffectList[i]->m_mX
 , &m_pEffectList[i]->m_mY
 , &m_pEffectList[i]->m_iErr
 , 40);

 bAddNewEffect(245, m_pEffectList[i]->m_mX + (rand() % 30) - 15, m_pEffectList[i]->m_mY + (rand() % 30) - 15, NULL, NULL, 0, 1);

 if (m_pEffectList[i]->m_cFrame >= m_pEffectList[i]->m_cMaxFrame)
 { delete m_pEffectList[i];
 m_pEffectList[i] = NULL;
 }else
 { sAbsX = abs(((m_sViewPointX / 32) + 10) - m_pEffectList[i]->m_dX);
 sAbsY = abs(((m_sViewPointY / 32) + 7)  - m_pEffectList[i]->m_dY);
 if (sAbsX > sAbsY) sDist = sAbsX -10;
 else sDist = sAbsY -10;
 lPan = -(((m_sViewPointX / 32) + 10) - m_pEffectList[i]->m_dX);
 PlaySound('E', 1, sDist, lPan);
 }
 
 break;
`
4 - Finalmente
  • En el mismo, busque case 167:
  • Y justo debajo añadir:

Code: Select all

case 245: // VAMP - Ghosts 1
case 149: // <--- este en caso de que no este
magic = 98 Strike-of-the-Ghosts 30 0 0 320 4 4 7 12 32 17 8 18 0 0 0 200 10 -1 1 1
Item = 3043 S.O.T.G.Manual 3 0 18 98 0 0 0 0 0 0 0 6 91 -100 1 -1 0 0 0 0 0 -1 42 1
You do not have the required permissions to view the files attached to this post.
There is no greater education than one that is self-driven.

Who is online

Users browsing this forum: No registered users and 1 guest