Problema effect system

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
yonr1
Nivel 4

Nivel 4
Mesaje: 677
Membru din: 03 Dec 2013, 08:42
Aprecieri: 297  
Mulţumiri: 30  
  Rezolvări prob.: 14
Medalii

*Problemă: am o erroare la compilare sursa game. Nu stiu sal rezolv nu ma pricep la modificari sau alcv.
Tipologie server(PvM / PvP):...
*Resursă folosită: *Link exclusiv J4M* http://just4metin.ro/sursa/effect-syste ... 76890.html
*ServerFiles utilizat:...
*Syserr: 0
Poză: Imagine

Cod: Selectaţi tot

// 1) Search: bool CHARACTER::CanEquipNow(const LPITEM item, const TItemPos& srcCell, const TItemPos& destCell)
// 2) Before the end of function where is last:
	return true;
}
// 3) Make a new line and paste:
#ifdef __EFFECT_SYSTEM__
#ifdef __NEW_ARROW_SYSTEM__
	if (item->GetType() == ITEM_WEAPON && item->GetSubType() != WEAPON_ARROW && item->GetSubType() != WEAPON_UNLIMITED_ARROW)
#else
	if (item->GetType() == ITEM_WEAPON && item->GetSubType() != WEAPON_ARROW)
#endif
	{
		LPITEM pkItem = GetWear(WEAR_EFFECT_WEAPON);
		if (pkItem)
		{
			ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You must unwear the weapon effect before."));
			return false;
		}
	}
	else if (item->GetType() == ITEM_ARMOR && item->GetSubType() == ARMOR_BODY)
	{
		LPITEM pkItem = GetWear(WEAR_EFFECT_ARMOR);
		if (pkItem)
		{
			ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You must unwear the armor effect before."));
			return false;
		}
	}
	else if (item->GetType() == ITEM_COSTUME && item->GetSubType() == USE_EFFECT)
	{
		if (item->GetWearFlag() & WEARABLE_EFFECT_ARMOR)
		{
			LPITEM pkItem = GetWear(WEAR_BODY);
			if (!pkItem)
			{
				ChatPacket(CHAT_TYPE_INFO, LC_TEXT("To can wear a armor effect you must have a armor weared."));
				return false;
			}
		}
		else
		{
			LPITEM pkItem = GetWear(WEAR_WEAPON);
			if (!pkItem)
			{
				ChatPacket(CHAT_TYPE_INFO, LC_TEXT("To can wear a weapon effect you must have a weapon weared."));
				return false;
			}
		}
	}
#endif


// 1) Search: bool CHARACTER::CanUnequipNow(const LPITEM item, const TItemPos& srcCell, const TItemPos& destCell)
// 2) Before the end of function where is last:
	return true;
}
// 3) Make a new line and paste:
#ifdef __EFFECT_SYSTEM__
#ifdef __NEW_ARROW_SYSTEM__
	if (item->GetType() == ITEM_WEAPON && item->GetSubType() != WEAPON_ARROW && item->GetSubType() != WEAPON_UNLIMITED_ARROW)
#else
	if (item->GetType() == ITEM_WEAPON && item->GetSubType() != WEAPON_ARROW)
#endif
	{
		LPITEM pkItem = GetWear(WEAR_EFFECT_WEAPON);
		if (pkItem)
		{
			ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You must unwear the weapon effect before."));
			return false;
		}
	}
	else if (item->GetType() == ITEM_ARMOR && item->GetSubType() == ARMOR_BODY)
	{
		LPITEM pkItem = GetWear(WEAR_EFFECT_ARMOR);
		if (pkItem)
		{
			ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You must unwear the armor effect before."));
			return false;
		}
	}
#endif
Imagine
Afișează semnătura
Avatar utilizator
WinrraR
Nivel 5

Nivel 5
Mesaje: 799
Membru din: 14 Mai 2017, 14:50
Server: Metin2BW
Regat: Chunjo
Aprecieri: 377  
Mulţumiri: 84  
Medalii

la primu char_item iti spune destul de clar ca nu ai lasat o linie noua (libera) si la a 2-a lasa si tu char_item sa vad.
Afișează semnătura
Avatar utilizator
sTrix.
Nivel 5

Nivel 5
Mesaje: 807
Membru din: 15 Feb 2018, 17:52
Regat: Jinno
Aprecieri: 238  
Mulţumiri: 273  
Medalii

pune char_item.cpp(nemodificat de tine) aici
Apasa Imagine daca te-am ajutat.
Imagine
Afișează semnătura
Avatar utilizator
yonr1
Nivel 4

Nivel 4
Mesaje: 677
Membru din: 03 Dec 2013, 08:42
Aprecieri: 297  
Mulţumiri: 30  
  Rezolvări prob.: 14
Medalii

system char_item


char_item sv
Imagine
Afișează semnătura
Avatar utilizator
Skeep3ro
Nivel 1

Nivel 1
Mesaje: 85
Membru din: 04 Noi 2018, 04:44
Server: https://faceit.ro
Aprecieri: 11  
Mulţumiri: 27  
 Contact:
Medalii

Ofer support tehnic pentru servere de Metin2 && CS:GO
Fondator : SOURCEMOD.RO
Afișează semnătura
Avatar utilizator
yonr1
Nivel 4

Nivel 4
Mesaje: 677
Membru din: 03 Dec 2013, 08:42
Aprecieri: 297  
Mulţumiri: 30  
  Rezolvări prob.: 14
Medalii

Skeep3ro scrie:
dupa ce am bagat ce mi-ai dat
stiu ca nu afecteaza zic doar ca nu imi aparea Imagine
Imagine
Afișează semnătura
Închis
Răspunsuri
1
Vizualizări
221
Răspunsuri
15
Vizualizări
650
Răspunsuri
4
Vizualizări
522
Răspunsuri
1
Vizualizări
470

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Semrush [Bot] și 25 vizitatori