Jump to content

Sending m_afAffectFlag to client [Source]


Go to solution Solved by MshL,

Recommended Posts

Hello, I am making new particle effect displayed for specific flag in database, it looks like this :

if(GetGMLevel() == GM_HEAD)
				m_afAffectFlag.Set(AFF_HEADMASTER);

Also added new Effect to my client in root

	chrmgr.RegisterEffect(chrmgr.EFFECT_AFFECT+41, "Bip01", "effect/hm.mse")

and it works perfectly fine, BUT...

when i want to add additional script for this flag like this(in client source ) :

if (m_kAffectFlagContainer.IsSet(AFFECT_HEADMASTER))
		return true;

it doesn't return true!!

AFF_HEADMASTER and AFFECT_HEADMASTER are both set to 42, 

what more I have to do to make it work??

Link to comment
https://metin2.dev/topic/20229-sending-m_afaffectflag-to-client-source/
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

7 hours ago, MshL said:

Hello, I am making new particle effect displayed for specific flag in database, it looks like this :


if(GetGMLevel() == GM_HEAD)
				m_afAffectFlag.Set(AFF_HEADMASTER);

Also added new Effect to my client in root


	chrmgr.RegisterEffect(chrmgr.EFFECT_AFFECT+41, "Bip01", "effect/hm.mse")

and it works perfectly fine, BUT...

when i want to add additional script for this flag like this(in client source ) :


if (m_kAffectFlagContainer.IsSet(AFFECT_HEADMASTER))
		return true;

it doesn't return true!!

AFF_HEADMASTER and AFFECT_HEADMASTER are both set to 42, 

what more I have to do to make it work??

 

 

check in the enum from client if the id is same fom server

21 minutes ago, MshL said:

Even if I set the ID manualy to int 42, the effect is showing but stil isin't returning true... ;/

send a pm with your skype i think you are a little bit confuse ...dont work like you do 

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.