Jump to content

Recommended Posts

Hello, 

i wanna share a little improvment to the Bravery Cloak

.gif

Its speed up Mobs Pulled from Bravery Cloak

Version 1: 

Spoiler
#SERVER SRC -> char_battle.cpp

FIND:
###########################################################################################

if (number(1, 100) <= 50) // Temporarily attracts enemies with a 50% chance
				if (DISTANCE_APPROX(ch->GetX() - m_ch->GetX(), ch->GetY() - m_ch->GetY()) < 5000)
					if (ch->CanBeginFight())
						ch->BeginFight(m_ch);
  
###########################################################################################
REPLACE:
###########################################################################################
if (DISTANCE_APPROX(ch->GetX() - m_ch->GetX(), ch->GetY() - m_ch->GetY()) < 5000) { // 5000 = pull radius
				if (ch->CanBeginFight())
				{
					ch->BeginFight(m_ch);
					ch->PointChange(POINT_MOV_SPEED, 200); //change to your move speed
					ch->UpdatePacket();
				}
			}
 ########################################################################################### 
  remove:
  if (number(1, 100) <= 50) -> we want all mob to pull and buff movespeed
 ###########################################################################################
 bugs: if player dont kill mob -> mob stay with movespeed until restart / death -> unlaggy version

 

Version 2 (More Laggy but Save)

Spoiler
#SERVER SRC -> char_battle.cpp

FIND:
###########################################################################################

if (number(1, 100) <= 50) // Temporarily attracts enemies with a 50% chance
				if (DISTANCE_APPROX(ch->GetX() - m_ch->GetX(), ch->GetY() - m_ch->GetY()) < 5000)
					if (ch->CanBeginFight())
						ch->BeginFight(m_ch);
  
###########################################################################################
REPLACE:
###########################################################################################
if (DISTANCE_APPROX(ch->GetX() - m_ch->GetX(), ch->GetY() - m_ch->GetY()) < 5000) { // 5000 = pull radius
				if (ch->CanBeginFight())
				{
					ch->BeginFight(m_ch);
					ch->AddAffect(AFFECT_MOV_SPEED, POINT_MOV_SPEED, 200, AFF_MOV_SPEED_POTION, 4, 0, true); // 200 = Movespeed / 4= duration
				}
			}
 ########################################################################################### 
 remove:
 if (number(1, 100) <= 50) -> we want all mob to pull and buff movespeed
  
###########################################################################################
BUGS: delay pull ~ 1 sec

 

Hope its not public since now. Im new to Metin2 hope you like it.
Kind Regards

  • Metin2 Dev 4
  • kekw 1
  • Smile Tear 1
  • Scream 1
  • Good 1
  • Love 1
Link to comment
https://metin2.dev/topic/32122-cbravery-cloak-increase-mob-speed/
Share on other sites

  • 2 weeks later...
  • Active Member

    else
    {
        iMaxHP = m_pkMobData->m_table.dwMaxHP;
        iMaxSP = 0;
        iMaxStamina = 0;

        SetPoint(POINT_ATT_SPEED, m_pkMobData->m_table.sAttackSpeed);
    #ifdef ENABLE_MOB_MOVEMENT_SPEED_300
        SetPoint(POINT_MOV_SPEED, m_pkMobData->m_table.sMovingSpeed+300);
    #else
        SetPoint(POINT_MOV_SPEED, m_pkMobData->m_table.sMovingSpeed);
    #endif
        SetPoint(POINT_CASTING_SPEED, m_pkMobData->m_table.sAttackSpeed);
    }

easy, the mobs have everytime mov speed

Edited by Kidro
  • kekw 1
  • Lmao 1

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.