Jump to content

Help with antiflag values


Go to solution Solved by Realshadow,

Recommended Posts

76023	߬gѦ۱ܭ(ٰܱࠫ)	ITEM_USE	USE_CHANGE_ATTRIBUTE	1	NONE	LOG | ITEM_STACKABLE	NONE	NONE	1000	0	0	0	0	LIMIT_NONE	0	LIMIT_NONE	0	APPLY_NONE	0	APPLY_NONE	0	APPLY_NONE	0	0	0	0	0	0	0	0	0	0																
76024	߬gС۱ܭ(ٰܱࠫ)	ITEM_USE	USE_ADD_ATTRIBUTE	1	NONE	LOG | ITEM_STACKABLE	NONE	NONE	1000	0	0	0	0	LIMIT_NONE	0	LIMIT_NONE	0	APPLY_NONE	0	APPLY_NONE	0	APPLY_NONE	0	0	0	0	0	0	0	0	0	0																

Where can I add the following?

ANTI_SAFEBOX | ANTI_MYSHOP | ANTI_GIVE | ANTI_DROP | ANTI_SELL

Tried with in the LOG | ITEM_STACKABLE part like -> LOG | ANTI_SAFEBOX | ANTI_MYSHOP | ANTI_GIVE | ANTI_DROP | ANTI_SELL | ITEM_STACKABLE -> NONE 

Didn't worked server is on but they are sitll sellable etc.

Link to comment
https://metin2.dev/topic/33505-help-with-antiflag-values/
Share on other sites

Hey, 
this should be instead of the "None". (in Front of the Item_Stackable)
Because ITEM_STACKABLE are the FLAG and the column in Front of that, are the ANTI_FLAG.
 

76023	gѦ۱ܭ(ٰܱࠫ)	ITEM_USE	USE_CHANGE_ATTRIBUTE	1	ANTI_SAFEBOX | ANTI_MYSHOP | ANTI_GIVE | ANTI_DROP | ANTI_SELL	LOG | ITEM_STACKABLE	NONE	NONE	1000	0	0	0	0	LIMIT_NONE	0	LIMIT_NONE	0	APPLY_NONE	0	APPLY_NONE	0	APPLY_NONE	0	0	0	0	0	0	0	0	0	0




 

Edited by Realshadow
  • Flame 1
Link to comment
https://metin2.dev/topic/33505-help-with-antiflag-values/#findComment-169635
Share on other sites

14 minutes ago, Realshadow said:

Hey, 
this should be instead of the "None". (in Front of the Item_Stackable)
Because ITEM_STACKABLE are the FLAG and the column in Front of that, are the ANTI_FLAG.
 

76023	gѦ۱ܭ(ٰܱࠫ)	ITEM_USE	USE_CHANGE_ATTRIBUTE	1	ANTI_SAFEBOX | ANTI_MYSHOP | ANTI_GIVE | ANTI_DROP | ANTI_SELL	LOG | ITEM_STACKABLE	NONE	NONE	1000	0	0	0	0	LIMIT_NONE	0	LIMIT_NONE	0	APPLY_NONE	0	APPLY_NONE	0	APPLY_NONE	0	0	0	0	0	0	0	0	0	0




 

Hello,

 

I added these ->ANTI_DESTROY | ANTI_GIVE | ANTI_SELL | ANTI_DROP | ANTI_MYSHOP | ANTI_SAFEBOX->

 

and compared with other items that can't be destroyed or sold on offline shops 

Mine still can be sold on shop, destroyed but anti sell works even tho i added all of them. Any idea what is the issue?

Edited by ShyperiaN
forgot to add some info
Link to comment
https://metin2.dev/topic/33505-help-with-antiflag-values/#findComment-169636
Share on other sites

12 minutes ago, ShyperiaN said:

Hello,

 

I added them and compared with other items that can't be destroyed or sold on offline shops 

Mine still can be sold on shop, destroyed but anti sell works even tho i added all of them. Any idea what is the issue?

Ehm, sorry maybe I dont get your question.

You still can sell just the "new Items" or all the other items, with these flags aswell?

Link to comment
https://metin2.dev/topic/33505-help-with-antiflag-values/#findComment-169637
Share on other sites

1 minute ago, Realshadow said:

Ehm, sorry maybe I dont get your question.

You still can sell just the "new Items" or all the other items, with these flags aswell?

New items that are edited with these anti-flags can be sold

Other items that have the same anti-flags -> can't be sold

 

Do we have a limit or something for each item?

Link to comment
https://metin2.dev/topic/33505-help-with-antiflag-values/#findComment-169638
Share on other sites

4 hours ago, Realshadow said:

No, there should be no Limit.
Just to be safe, you compiled on server and on clients, right?
Could you send me a line with the ANTI_SOLD where it works, and the new one again?

 

76023	߬gѦ۱ܭ(ٰܱࠫ)	ITEM_USE	USE_CHANGE_ATTRIBUTE	1	ANTI_DESTROY | ANTI_SELL | ANTI_MYSHOP | ANTI_SAFEBOX | ANTI_GIVE	LOG | ITEM_STACKABLE	NONE	NONE	1000	0	0	0	0	LIMIT_NONE	0	LIMIT_NONE	0	APPLY_NONE	0	APPLY_NONE	0	APPLY_NONE	0	0	0	0	0	0	0	0	0	0																
76024	߬gС۱ܭ(ٰܱࠫ)	ITEM_USE	USE_ADD_ATTRIBUTE	1	ANTI_DESTROY | ANTI_SELL | ANTI_MYSHOP | ANTI_SAFEBOX | ANTI_GIVE	LOG | ITEM_STACKABLE	NONE	NONE	1000	0	0	0	0	LIMIT_NONE	0	LIMIT_NONE	0	APPLY_NONE	0	APPLY_NONE	0	APPLY_NONE	0	0	0	0	0	0	0	0	0	0

The ones that doesnt work

 

71021	٫ޅG Ġڹܭ	ITEM_USE	USE_TUNING	1	ANTI_MYSHOP | ANTI_STACK | ANTI_SELL | ANTI_DROP	LOG	NONE	NONE	0	0	0	0	0	LIMIT_NONE	0	LIMIT_NONE	0	APPLY_NONE	0	APPLY_NONE	0	APPLY_NONE	0	3	0	0	0	0	0	0	0	0																

The one works perfectly fine

Link to comment
https://metin2.dev/topic/33505-help-with-antiflag-values/#findComment-169644
Share on other sites

  • Active Member

Antiflags should be write in order like in the enum EItemAntiFlag in item_length.cpp, so for example if ITEM_ANTIFLAG_SAFEBOX is after ITEM_ANTIFLAG_GIVE you should change your order in item_proto.

  • Love 2
Link to comment
https://metin2.dev/topic/33505-help-with-antiflag-values/#findComment-169646
Share on other sites

2 hours ago, jking said:

Antiflags should be write in order like in the enum EItemAntiFlag in item_length.cpp, so for example if ITEM_ANTIFLAG_SAFEBOX is after ITEM_ANTIFLAG_GIVE you should change your order in item_proto.

Since I dont have the src, i don't know the correct order of them can you show me?

3 hours ago, Realshadow said:

Okay, but you replaced the item_proto on the server and on Client, right?

yes

Link to comment
https://metin2.dev/topic/33505-help-with-antiflag-values/#findComment-169647
Share on other sites

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.