Player Damage to monster

02/10/2020 16:57 NoobAldrix#1
i was wondering if someone know how i gonna make the player damage in monster to 1 only . example is behemoth got 10k hp so the player need to hit 10k times even the player got million damage when he hit the monster its only 1 . so i check my propmover to find where i gonna edit but i always end in field so i was wondering if someone know it really gonna help me :D
02/10/2020 18:39 Naltalah#2
It takes 1 damage if you spawn it via Event.lua

Flyff doesn't have a different already built-in method of forcing 1 damage, you would have to do it yourself.
02/10/2020 20:49 NoobAldrix#3
Quote:
Originally Posted by Naltalah View Post
It takes 1 damage if you spawn it via Event.lua

Flyff doesn't have a different already built-in method of forcing 1 damage, you would have to do it yourself.
so do i need to rewrite my source to be able to do that ?
02/10/2020 21:01 Naltalah#4
Code:
#ifdef __EVENTLUA_SPAWN
			if( m_pDefender->IsNPC() && prj.m_EventLua.IsEventSpawnMonster( m_pDefender->GetIndex() ) && !m_pAttacker->IsMode( ONEKILL_MODE ) )
			{
				nDamage = 1;
				continue;
			}
#endif // __EVENTLUA_SPAWN
CAttackArbiter :: OnDamageMsgW

I leave the rest of what to do to your imagination.
02/10/2020 21:04 NoobAldrix#5
Quote:
Originally Posted by Naltalah View Post
Code:
#ifdef __EVENTLUA_SPAWN
			if( m_pDefender->IsNPC() && prj.m_EventLua.IsEventSpawnMonster( m_pDefender->GetIndex() ) && !m_pAttacker->IsMode( ONEKILL_MODE ) )
			{
				nDamage = 1;
				continue;
			}
#endif // __EVENTLUA_SPAWN
CAttackArbiter :: OnDamageMsgW

I leave the rest of what to do to your imagination.
thanks for info bro . thumbs up :p