[REQ] Ice-Golem Effect

Submit your code requests, and if you are good at coding come help others with their requests.
Post Reply
SlammeR
Loyal fan
Posts: 219
Joined: Fri Nov 04, 2005 1:52 am
Location: Brazil

Post by SlammeR »

as you guys know the Ice-Golem Attacks like a normal monster without the frozen effect on 2.24b... on original servers if you are AMPED they cant hurt you, i want this effect working on 2.24b... i allready searched on 2.20 real source but could not get it...

~Thanks ^^
OWNED!<br><img src='http://img50.imageshack.us/img50/1386/p ... 3vsqn2.gif' border='0' alt='user posted image' /><br><br><img src="http://hbtop50.com/button.php?u=hbuonline" alt="Helbreath Top 50 - Keepin' it real." border="0" /><br><a href='http://www.hbuonline.net' target='_blank'>Helbreath United</a>
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

Too hard for me :blink: But you can make it yourself somehow too? your pretty good in C++
<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' />
SlammeR
Loyal fan
Posts: 219
Joined: Fri Nov 04, 2005 1:52 am
Location: Brazil

Post by SlammeR »

Tafka12 wrote: Too hard for me :blink: But you can make it yourself somehow too? your pretty good in C++
nah i could not figure one way to solve this problem, and im a pretty noob in c++ =O waiting for help...
OWNED!<br><img src='http://img50.imageshack.us/img50/1386/p ... 3vsqn2.gif' border='0' alt='user posted image' /><br><br><img src="http://hbtop50.com/button.php?u=hbuonline" alt="Helbreath Top 50 - Keepin' it real." border="0" /><br><a href='http://www.hbuonline.net' target='_blank'>Helbreath United</a>
xmukox
Member
Posts: 175
Joined: Sun Sep 11, 2005 9:53 am

Post by xmukox »

i find only that:

Code: Select all

 case 9: // Tigerworm
    if ((m_pMagicConfigList[74]->m_sValue1 <= m_pNpcList[iNpcH]->m_iMana) && (iDice(1,3) == 2)) 
    	iMagicType = 74; // Lightning-Strike
    break;
  	
  	case 10: // Frost, Nizie
    break;

  	case 11: // Ice-Golem
    break;

  	case 12: // Wyvern
    if ((m_pMagicConfigList[91]->m_sValue1 <= m_pNpcList[iNpcH]->m_iMana) && (iDice(1,3) == 2)) 
    	iMagicType = 91; // Blizzard
    else if (m_pMagicConfigList[63]->m_sValue1 <= m_pNpcList[iNpcH]->m_iMana) 
    	iMagicType = 63; // Mass-Chill-Wind
    break;

  	case 13: // Abaddon
    if ((m_pMagicConfigList[96]->m_sValue1 <= m_pNpcList[iNpcH]->m_iMana) && (iDice(1,3) == 2)) 
    	iMagicType = 96; // Earth Shock Wave
    else if (m_pMagicConfigList[81]->m_sValue1 <= m_pNpcList[iNpcH]->m_iMana) 
    	iMagicType = 81; // Metoer Strike
    break;

  	}


meby if you add effect magic with that case ^^

ps: it from HG 2.24D from technohell.net...
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

thats what magic's they cast.
<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' />
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

Should also add something...if

if target's DEF MAGIC PROTECT = 2 goto noeffect

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>
SlammeR
Loyal fan
Posts: 219
Joined: Fri Nov 04, 2005 1:52 am
Location: Brazil

Post by SlammeR »

locobans wrote:Should also add something...if

if target's DEF MAGIC PROTECT = 2 goto noeffect
look what we have on 2.20 sources

void CGame::NpcBehavior_Attack(int iNpcH)

Code: Select all

  	// ÀÏ¹Ý NPCÀÎ °æ¿ì
  	if (m_pNpcList[iNpcH]->m_cMagicLevel == 11) {// v2.20 2002-12-20 Ice-GolemÀÇ °ø°Ý ÇüÅÂ
    SendEventToNearClient_TypeA(iNpcH, DEF_OWNERTYPE_NPC, MSGID_EVENT_MOTION, DEF_OBJECTATTACK, m_pNpcList[iNpcH]->m_sX, m_pNpcList[iNpcH]->m_sY, 1); 
    m_pNpcList[iNpcH]->m_iMagicHitRatio = 1000;
    NpcMagicHandler(iNpcH, m_pNpcList[iNpcH]->m_sX, m_pNpcList[iNpcH]->m_sY, 75);
  	} else 
  	{
    SendEventToNearClient_TypeA(iNpcH, DEF_OWNERTYPE_NPC, MSGID_EVENT_MOTION, DEF_OBJECTATTACK, m_pNpcList[iNpcH]->m_sX + _tmp_cTmpDirX[cDir], m_pNpcList[iNpcH]->m_sY + _tmp_cTmpDirY[cDir], 1); // 1 : Ä®µîÀÇ ±ÙÁ¢¹«±â·Î °ø°ÝÇÏ´Â ÀÇ¹Ì 
    iCalculateAttackEffect(m_pNpcList[iNpcH]->m_iTargetIndex, m_pNpcList[iNpcH]->m_cTargetType, iNpcH, DEF_OWNERTYPE_NPC, dX, dY, 1); // °ø°Ý¿¡ ´ëÇÑ È¿°ú¸¦ °è»êÇÑ´Ù. 
  	}
  }
NpcMagicHandler:

Code: Select all

  // 2002-12-20 NpcMagicHander¿¡ DEF_MAGICTYPE_ICE Ãß°¡ (Ice-Golem ¿ë)
  case DEF_MAGICTYPE_ICE:

  	for (iy = dY - m_pMagicConfigList[sType]->m_sValue3; iy <= dY + m_pMagicConfigList[sType]->m_sValue3; iy++)
  	for (ix = dX - m_pMagicConfigList[sType]->m_sValue2; ix <= dX + m_pMagicConfigList[sType]->m_sValue2; ix++) {

    m_pMapList[m_pNpcList[iNpcH]->m_cMapIndex]->GetOwner(&sOwnerH, &cOwnerType, ix, iy);
    if ((bCheckResistingMagicSuccess(m_pNpcList[iNpcH]->m_cDir, sOwnerH, cOwnerType, iResult) == FALSE) 
    	&& (bCheckResistingIceSuccess(m_pNpcList[iNpcH]->m_cDir, sOwnerH, cOwnerType, iResult) == FALSE) ) {
    	// ´ë¹ÌÁö¿Í ÇÔ²²
    	//Effect_Damage_Spot(iClientH, DEF_OWNERTYPE_PLAYER, sOwnerH, cOwnerType, m_pMagicConfigList[sType]->m_sValue4, m_pMagicConfigList[sType]->m_sValue5, m_pMagicConfigList[sType]->m_sValue6 + iWhetherBonus, TRUE, iMagicAttr);
    	
    	
    	// ¾ó¾î¼­ µ¿ÀÛÀÌ ´Ê¾îÁö´Â È¿°ú
    	switch (cOwnerType) {
    	case DEF_OWNERTYPE_PLAYER:
      if (m_pClientList[sOwnerH] == NULL) continue; // goto NMH_NOEFFECT;
      // v2.19 2002-11-17 »ç³¶²ÛÀº ¾óÁö ¾Ê°Ô ¼öÁ¤ 
      if (m_pClientList[sOwnerH]->m_bIsHunter == TRUE) continue; // goto NMH_NOEFFECT;
      // v2.19 2002-11-17 Á߸³Àº ¾óÁö ¾Ê°Ô ¼öÁ¤ 
      if (m_pClientList[sOwnerH]->m_cSide == DEF_NETURAL) continue; // goto NMH_NOEFFECT;

      // Ÿ°ÙÀÌ »ì¾ÆÀÖ°í ¾óÀ½ ÀúÇ׿¡ ½ÇÆÐÇß´Ù¸é ¾ó¾îºÙ´Â´Ù.
      if (m_pClientList[sOwnerH]->m_iHP > 0) {
      	Effect_Damage_Spot_DamageMove(iNpcH, DEF_OWNERTYPE_NPC, sOwnerH, cOwnerType, dX, dY, m_pMagicConfigList[sType]->m_sValue7, m_pMagicConfigList[sType]->m_sValue8, m_pMagicConfigList[sType]->m_sValue9 + iWhetherBonus, TRUE, iMagicAttr);
      	if (m_pClientList[sOwnerH]->m_cMagicEffectStatus[ DEF_MAGICTYPE_ICE ] == 0) {
        m_pClientList[sOwnerH]->m_cMagicEffectStatus[ DEF_MAGICTYPE_ICE ] = 1;
        SetIceFlag(sOwnerH, cOwnerType, TRUE);
        // È¿°ú°¡ ÇØÁ¦µÉ ¶§ ¹ß»ýÇÒ µô·¹ÀÌ À̺¥Æ®¸¦ µî·ÏÇÑ´Ù.
        bRegisterDelayEvent(DEF_DELAYEVENTTYPE_MAGICRELEASE, DEF_MAGICTYPE_ICE, dwTime + (m_pMagicConfigList[sType]->m_sValue10*1000), 
                         sOwnerH, cOwnerType, NULL, NULL, NULL, 1, NULL, NULL);
        // ´ë»óÀÌ Ç÷¹À̾îÀÎ °æ¿ì ¾Ë·ÁÁØ´Ù.
        SendNotifyMsg(NULL, sOwnerH, DEF_NOTIFY_MAGICEFFECTON, DEF_MAGICTYPE_ICE, 1, NULL, NULL);
      	}
      }
      break;
when i add this to 2.24b the monster attacks you but cant hurt you without/with amp... any idea? i think im doing some mistake on adding the code...
OWNED!<br><img src='http://img50.imageshack.us/img50/1386/p ... 3vsqn2.gif' border='0' alt='user posted image' /><br><br><img src="http://hbtop50.com/button.php?u=hbuonline" alt="Helbreath Top 50 - Keepin' it real." border="0" /><br><a href='http://www.hbuonline.net' target='_blank'>Helbreath United</a>
SlammeR
Loyal fan
Posts: 219
Joined: Fri Nov 04, 2005 1:52 am
Location: Brazil

Post by SlammeR »

no one got it? :(
OWNED!<br><img src='http://img50.imageshack.us/img50/1386/p ... 3vsqn2.gif' border='0' alt='user posted image' /><br><br><img src="http://hbtop50.com/button.php?u=hbuonline" alt="Helbreath Top 50 - Keepin' it real." border="0" /><br><a href='http://www.hbuonline.net' target='_blank'>Helbreath United</a>
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

no idea
but check
or add
that
if AMP = False or smth
then allow attack? :o
Add it maybe? i dunoo
<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' />
laizkloom
Regular
Posts: 78
Joined: Sun Feb 27, 2005 8:41 am

Post by laizkloom »

Btw amp is 5 so it should be
DEF MAGIC PROTECT = 5
But i might be wrong so don't be mad on me:P
Post Reply