Eroare sursa la adaugare bonusuri la mount

Înainte de a posta o problemă, caută în acest forum și poate găsești rezolvare.
Închis
Avatar utilizator
alinjuve23
Nivel 2

Nivel 2
Mesaje: 239
Membru din: 23 Apr 2015, 17:10
Aprecieri: 451  
Mulţumiri: 21  
Medalii

*Problemă/Întrebare: POINT_ATT_BONUS_TO_MONSTER - nu are este denumirea functiei anti mob?
Tipologie server(PvM / PvP): --
*Resursă folosită: Svfiles clean+ src full.
*ServerFiles utilizat: --
*Syserr: --
Poză: eroare -- https://imgur.com/Fa2PKNs
*Detalii suplimentare:

questlua_pc.cpp la linia de bonusuri mob;

Cod: Selectaţi tot

	int pc_mount(lua_State* L)
	{
		if (!lua_isnumber(L, 1))
			return 0;

		int length = 60;

		if (lua_isnumber(L, 2))
			length = (int)lua_tonumber(L, 2);

		DWORD mount_vnum = (DWORD)lua_tonumber(L, 1);

		if (length < 0)
			length = 60;

		LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr();

		ch->RemoveAffect(AFFECT_MOUNT);
		ch->RemoveAffect(AFFECT_MOUNT_BONUS);

		// 말이 소환되어 따라다니는 상태라면 말부터 없앰
		if (ch->GetHorse())
			ch->HorseSummon(false);

		if (mount_vnum)
		{
			ch->AddAffect(AFFECT_MOUNT, POINT_MOUNT, mount_vnum, AFF_NONE, length, 0, true);
			switch (mount_vnum)
			{
			case 20110:
			case 20111:
			case 20112:
			case 20113:
			ch->AddAffect(AFFECT_MOUNT, POINT_ATT_BONUS_TO_MONSTER, 5, AFF_NONE, length, 0, true, true);
			break;

			case 20114:
			ch->AddAffect(AFFECT_MOUNT, POINT_ATT_BONUS_TO_MONSTER, 20, AFF_NONE, length, 0, true, true);
			ch->AddAffect(AFFECT_MOUNT, POINT_ATT_GRADE_BONUS, 200, AFF_NONE, length, 0, true, true);			
			break;

			case 20115:
			ch->AddAffect(AFFECT_MOUNT, POINT_ATT_BONUS_TO_MONSTER, 10, AFF_NONE, length, 0, true, true);
			break;

			case 20116:
			ch->AddAffect(AFFECT_MOUNT, POINT_ATT_BONUS_TO_MONSTER, 5, AFF_NONE, length, 0, true, true);
			ch->AddAffect(AFFECT_MOUNT, POINT_MAX_HP, 2000, AFF_NONE, length, 0, true, true);			
			break;

			case 20117:
			ch->AddAffect(AFFECT_MOUNT, POINT_ATT_BONUS_TO_MONSTER, 5, AFF_NONE, length, 0, true, true);
			ch->AddAffect(AFFECT_MOUNT, POINT_CRITICAL_PCT, 10, AFF_NONE, length, 0, true, true);			
			break;
			
			case 20118:
			ch->AddAffect(AFFECT_MOUNT, POINT_ATT_BONUS_TO_MONSTER, 20, AFF_NONE, length, 0, true, true);		
			break;			

			case 20213:
			ch->AddAffect(AFFECT_MOUNT, POINT_ATT_BONUS_TO_MONSTER, 10, AFF_NONE, length, 0, true, true);		
			break;	

			case 20214:
			ch->AddAffect(AFFECT_MOUNT, POINT_ATT_BONUS_TO_MONSTER, 20, AFF_NONE, length, 0, true, true);		
			break;

			case 20215:
			ch->AddAffect(AFFECT_MOUNT, POINT_ATT_BONUS_TO_MONSTER, 20, AFF_NONE, length, 0, true, true);
			ch->AddAffect(AFFECT_MOUNT, POINT_ATT_GRADE_BONUS, 200, AFF_NONE, length, 0, true, true);			
			break;
			
			case 20227:
			ch->AddAffect(AFFECT_MOUNT, POINT_ATT_BONUS_TO_MONSTER, 30, AFF_NONE, length, 0, true, true);
			break;

			case 20226:
			ch->AddAffect(AFFECT_MOUNT, POINT_ATT_BONUS_TO_MONSTER, 30, AFF_NONE, length, 0, true, true);
			break;
			}
		}
		
		return 0;
	}
Avatar utilizator
alinjuve23
Nivel 2

Nivel 2
Mesaje: 239
Membru din: 23 Apr 2015, 17:10
Aprecieri: 451  
Mulţumiri: 21  
Medalii

Am rezolvat, se poate da TC.

Era POINT_ATTBONUS_MONSTER...
Avatar utilizator
Asky
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 1472
Membru din: 08 Oct 2014, 17:32
Regat: Chunjo
Aprecieri: 98  
Mulţumiri: 4811  
Discord: Copiază ID
 Contact:
Medalii

T/C la cererea autorului!
Imagine
Afișează semnătura
Închis
Răspunsuri
4
Vizualizări
442
Răspunsuri
3
Vizualizări
528
Răspunsuri
3
Vizualizări
187
Răspunsuri
3
Vizualizări
77

Înapoi la “Probleme rezolvate”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 22 vizitatori