Register for your free account! | Forgot your password?

You last visited: Today at 08:13

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Costume

Discussion on Costume within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
1stAntonio's Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 208
Received Thanks: 5
Costume

Hello,i have many costume on mu server but
how to do that i can sell costume and also trade... What i need to change in item_proto?
1stAntonio is offline  
Old 11/08/2015, 23:18   #2


 
Ryme™'s Avatar
 
elite*gold: 0
The Black Market: 1443/0/0
Join Date: Apr 2014
Posts: 1,587
Received Thanks: 294
Change Antiflag to 0
Ryme™ is offline  
Old 11/09/2015, 05:33   #3
 
1stAntonio's Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 208
Received Thanks: 5
Ifni change antiflag to 0 --- costume(m) can wear all
1stAntonio is offline  
Old 11/09/2015, 14:45   #4
 
elite*gold: 26
Join Date: Oct 2011
Posts: 1,262
Received Thanks: 1,062
Antiflags are pretty annoying to work with (for some people) because they don't know how they work.

Antiflags aren't randomly generated numbers they are generated through bit shifting.
Bit shifting can be equated with a multiplication by 2^shift_argument
-->
Code:
bit_argument << shift_argument
1 << 0 // equals 1. because: 1*2^0 = 1
1 << 1 // equals 2. because: 1*2^1 = 2
1 << 2 // equals 4. because: 1*2^2 = 4

Now you prob. ask: "What do I have to do if i want to remove a antiflag?"
Well thats pretty easy to answer!

You subtract the antiflag you want to remove from the current antiflag value.

e.g.:

Let's say we have an item with antiflag 248.
That means the item can't be equipped by ninja,sura and shaman. You also can't trade or drop it but you want to make the item dropable.
So what do you do?

You take the drop antiflag (128) and subtract that value from your current antiflag (248)
--> 248-128 = 120
BINGO! After reloading your database you will be able to drop the modified item again.

tl;dr: If you want to remove an antiflag: current_antiflag - antiflag_you_wanna_remove = new_antiflag
If you want to add an antiflag: current_antiflag + antiflag_you_wanna_add = new_antiflag

All antiflags you need:
Code:
		enum EItemAntiFlag
		{
			ITEM_ANTIFLAG_FEMALE        = (1 << 0),		// ¿©¼º »ç¿ë ºÒ°¡
			ITEM_ANTIFLAG_MALE          = (1 << 1),		// ³²¼º »ç¿ë ºÒ°¡
			ITEM_ANTIFLAG_WARRIOR       = (1 << 2),		// ¹«»ç »ç¿ë ºÒ°¡
			ITEM_ANTIFLAG_ASSASSIN      = (1 << 3),		// ÀÚ°´ »ç¿ë ºÒ°¡
			ITEM_ANTIFLAG_SURA          = (1 << 4),		// ¼ö¶ó »ç¿ë ºÒ°¡ 
			ITEM_ANTIFLAG_SHAMAN        = (1 << 5),		// ¹«´ç »ç¿ë ºÒ°¡
			ITEM_ANTIFLAG_GET           = (1 << 6),		// ÁýÀ» ¼ö ¾øÀ½
			ITEM_ANTIFLAG_DROP          = (1 << 7),		// ¹ö¸± ¼ö ¾øÀ½
			ITEM_ANTIFLAG_SELL          = (1 << 8),		// ÆÈ ¼ö ¾øÀ½
			ITEM_ANTIFLAG_EMPIRE_A      = (1 << 9),		// A Á¦±¹ »ç¿ë ºÒ°¡
			ITEM_ANTIFLAG_EMPIRE_B      = (1 << 10),	// B Á¦±¹ »ç¿ë ºÒ°¡
			ITEM_ANTIFLAG_EMPIRE_R      = (1 << 11),	// C Á¦±¹ »ç¿ë ºÒ°¡
			ITEM_ANTIFLAG_SAVE          = (1 << 12),	// ÀúÀåµÇÁö ¾ÊÀ½
			ITEM_ANTIFLAG_GIVE          = (1 << 13),	// °Å·¡ ºÒ°¡
			ITEM_ANTIFLAG_PKDROP        = (1 << 14),	// PK½Ã ¶³¾îÁöÁö ¾ÊÀ½
			ITEM_ANTIFLAG_STACK         = (1 << 15),	// ÇÕÄ¥ ¼ö ¾øÀ½
			ITEM_ANTIFLAG_MYSHOP        = (1 << 16),	// °³ÀÎ »óÁ¡¿¡ ¿Ã¸± ¼ö ¾øÀ½
		};
If you still got any problems don't hesitate to contact me!

edit: You have to subtract your current_antiflag - 320.

- Crysis
He3o Crysis is offline  
Reply




All times are GMT +1. The time now is 08:14.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.