Jump to content

Recommended Posts

  • Contributor

M2 Download Center

This is the hidden content, please
( Internal )

This is the hidden content, please
( GitHub )

 

  • Metin2 Dev 194
  • Eyes 3
  • Dislove 2
  • Angry 2
  • Smile Tear 1
  • Think 4
  • Confused 1
  • Lmao 1
  • Good 54
  • muscle 1
  • Love 7
  • Love 107
Link to comment
https://metin2.dev/topic/21992-knockback-patch-skill-175-official-servers/
Share on other sites

  • Contributor
hace 43 minutos, Anix dijo:

Not working bro :-s 


If you already have the code check your DB and in skill_proto add KNOCKBACK in SetFlag  of your skill :)

  • Love 1
  • 3 weeks later...
  • 3 weeks later...
  • 2 months later...
  • 2 weeks later...
  • 1 month later...
  • Premium

No effect for me tho :D 

https://metin2.download/picture/Bqvu3V13uL2sjOO7vgC2IuE4Xhm1XsBO/.gif

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 2
  • Good 1
  • Forum Moderator
22 minutes ago, Anix said:

Sometimes it seems like people can't get knockbacked anymore. Try to attack mobs from your horse to see if they get pushed when you hit them (not when they die). Otherwise the knowkback will only make the people fall. 

 

On 1/17/2020 at 9:55 AM, Cripplez said:

When I use a skill with the knockback flag on a Metin Stone its position changes, do you know how can i make that metin Stones are immune to knockback effect? Thank you

IsStone() and return false; but it seems that it was already fixed in the original code.

 

					if (pkChrVictim->IsRaceFlag(RACE_FLAG_METIN))
						fknockbackLength = 0;

 

Edited by Metin2 Dev
Core X - External 2 Internal

Gurgarath
coming soon
My Services

  • Premium

@Gurgarath somehow, that skill flag has no effect for me. I've done it by changing CRUSH_LONG and removing the stun affect from it.

https://metin2.download/picture/X8i0mG6nvgp1hw4tBgM0UDNG7QioE7cH/.gif

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
6 hours ago, Gurgarath said:

Sometimes it seems like people can't get knockbacked anymore. Try to attack mobs from your horse to see if they get pushed when you hit them (not when they die). Otherwise the knowkback will only make the people fall. 

 

IsStone() and return false; but it seems that it was already fixed in the original code.

 


					if (pkChrVictim->IsRaceFlag(RACE_FLAG_METIN))
						fknockbackLength = 0;

 

I've noticed Rakancito about knockback with stones weeks ago... but he """fixed""" this with a wrong work around and I have not noticed that to him. IsStone() version is correct.

 

           if (IS_SET(m_pkSk->dwFlag, SKILL_FLAG_KNOCKBACK))
            {
                float fknockbackLength = 300; //Distance for KnockBack, defult 300

                if (pkChrVictim->IsStone())
                    fknockbackLength = 0;

 

  • Love 1
  • 3 months later...

i dont understand why all this code for nothing … we need just 3 lines 

Char_skill.cpp
search:
			if (IS_SET(m_pkSk->dwFlag, SKILL_FLAG_CRUSH | SKILL_FLAG_CRUSH_LONG) &&
				!IS_SET(pkChrVictim->GetAIFlag(), AIFLAG_NOMOVE))
			{
				float fCrushSlidingLength = 200;

				if (m_pkChr->IsNPC())
					fCrushSlidingLength = 400;


change like this :
#ifdef NEW_SKILL_KNOCKBACK
			if (IS_SET(m_pkSk->dwFlag, SKILL_FLAG_CRUSH | SKILL_FLAG_CRUSH_LONG | SKILL_FLAG_KNOCKBACK) &&
				!IS_SET(pkChrVictim->GetAIFlag(), AIFLAG_NOMOVE))
#else
			if (IS_SET(m_pkSk->dwFlag, SKILL_FLAG_CRUSH | SKILL_FLAG_CRUSH_LONG) &&
				!IS_SET(pkChrVictim->GetAIFlag(), AIFLAG_NOMOVE))
#endif
			{
				float fCrushSlidingLength = 200;

				if (m_pkChr->IsNPC())
					fCrushSlidingLength = 400;
#ifdef NEW_SKILL_KNOCKBACK
				if (IS_SET(m_pkSk->dwFlag, SKILL_FLAG_KNOCKBACK))
					fCrushSlidingLength *= 3; ///can change like u wanna
#endif

//stop

 

21 hours ago, Hunger said:

There is a gif posted by me above.

thank u 

Edited by Razor88
  • 5 months later...
  • 1 year later...
  • 2 years later...

Good afternoon,

I have two problems, see if anyone can help:

1 - The mast's health does not appear to the player
2 - If I do not try to defend the ship, I am thrown off the map, as if I failed the dungeon, but I do not receive a failure message, or an error in the log, and if I try to enter again, it says that the dungeon has already started, and it never ends, only if I restart the server completely

 

 

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.