Jump to content
Dragon Metin2

DUVIDA DE COMO POR PARA CAIR ADD QUEBRADO EM TRAJE E SKINS, NAVICAT ?

Recommended Posts

Olá pessoal, tudo bem ?

Como faço para por no sistema de Metin2, para quando eu DROPAR uma skin de arma, traje e cabelo, 

para ela cair bônus aleatório de 1 a 3, e ao mesmo tempo adds quebrados, como 15% e 5% ?

 

 

obrigado

Share this post


Link to post
Share on other sites
Paste2
Create Paste
Followup Paste
QR
#define __COSTUME_ATTR_SYSTEM__

// navicat/item_attr tablosuna

costume_body
costume_hair
costume_weapon

bunları ekleyin

//db/clientmanagerboot

// aratın

"SELECT apply, apply+0, prob, lv1, lv2, lv3, lv4, lv5, weapon, body, wrist, foots, neck, head, shield, ear "

// ekleyin

#ifdef __COSTUME_ATTR_SYSTEM__
			", costume_body, costume_hair"
			", costume_weapon"
#endif

item_attribute.cpp

// aratın

			case ARMOR_EAR:
				return ATTRIBUTE_SET_EAR;
		}
	}

// altına ekleyin

	else if (GetType() == ITEM_COSTUME)
	{
		switch (GetSubType())
		{
			case COSTUME_BODY:
#ifdef __COSTUME_ATTR_SYSTEM__
				return ATTRIBUTE_SET_COSTUME_BODY;
#else
				return ATTRIBUTE_SET_BODY;
#endif

			case COSTUME_HAIR:
#ifdef __COSTUME_ATTR_SYSTEM__
				return ATTRIBUTE_SET_COSTUME_HAIR;
#else
				return ATTRIBUTE_SET_HEAD;
#endif

			case COSTUME_WEAPON:
#ifdef __COSTUME_ATTR_SYSTEM__
				return ATTRIBUTE_SET_COSTUME_WEAPON;
#else
				return ATTRIBUTE_SET_WEAPON;
#endif

		}
	}

este e o código completo, verifique se você errou em algum lugar e corrija. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...