Register for your free account! | Forgot your password?

You last visited: Today at 15:00

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

Advertisement



[Mini-Release] Target save

Discussion on [Mini-Release] Target save within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2016
Posts: 28
Received Thanks: 13
[Mini-Release] Target save

-
Velitta is offline  
Thanks
7 Users
Old 11/12/2018, 09:16   #2
 
elite*gold: 294
Join Date: Jun 2009
Posts: 407
Received Thanks: 587
this is what i have OwO did i add correct
Code:
void CDPClient::OnMoverDeath( OBJID objid, CAr & ar )
{
	DWORD dwMsg;
	OBJID objidAttacker;
	ar >> objidAttacker >> dwMsg;

	CMover* pMover = prj.GetMover(objid);
	if (IsValidObj(pMover))
	{
		const int nHitPoint = pMover->GetHitPoint();
		pMover->IncHitPoint(-nHitPoint);

		CWorld* pMoverWorld = pMover->GetWorld();
		if (g_pPlayer == pMover)
		{
			if (pMoverWorld)
				pMoverWorld->SetObjFocus(nullptr);
			SAFE_DELETE(g_WndMng.m_pWndDuelConfirm);
			SAFE_DELETE(g_WndMng.m_pWndPenaltyPK);
			g_WndMng.m_pWndWorld->SetLastTarget(NULL_ID);
			g_WndMng.m_pWndWorld->m_bAutoAttack = false;
			g_WndMng.m_pWndWorld->m_objidTracking = NULL_ID;
		}

		if (pMover->IsActiveMover())
		{
			bool bBossDie = false;
			bool guildovo = false;
			bool arena = false;

			if (pMoverWorld)
			{		
				if (pMoverWorld->GetID() == WI_DUNGEON_MUSCLE || pMoverWorld->GetID() == WI_DUNGEON_KRRR || pMoverWorld->GetID() == WI_DUNGEON_BEAR)
					bBossDie = true;
				else if ((pMoverWorld->GetID() >= WI_WORLD_GUILDWAR1TO1_0 && pMoverWorld->GetID() <= WI_WORLD_GUILDWAR1TO1_L) && pMover->m_nGuildCombatState != 0)
					guildovo = true;
				else if (pMoverWorld->IsArena())
					arena = true;
			}

			if (!guildovo)
			{
//playsnd
#ifdef __JEFF_11_4
				if (arena)
					g_WndMng.PutString(prj.GetText(TID_GAME_DEATH_ARENA), nullptr, prj.GetTextColor(TID_GAME_DEATH_ARENA));
				else
					g_WndMng.PutString(prj.GetText(TID_GAME_DEATH), nullptr, prj.GetTextColor(TID_GAME_DEATH));
#else
				g_WndMng.PutString(prj.GetText(TID_GAME_DEATH), NULL, prj.GetTextColor(TID_GAME_DEATH));
#endif
			}
			g_DamageNumMng.AddNumber(pMover->GetPos(), nHitPoint, 0);

			if (pMover->m_nGuildCombatState == 1 || g_eLocal.GetState(EVE_SCHOOL))
				SendHdr(PACKETTYPE_REVIVAL_TO_LODESTAR);
			else if (g_WndMng.m_pWndRevival)
			{
				g_WndMng.m_pWndRevival = new CWndRevival;
				g_WndMng.m_pWndRevival->Initialize(&g_WndMng, 0);

				if (bBossDie)
					g_WndMng.m_pWndRevival->EnableButton(WIDC_REVIVAL_TO_LODELIGHT, false);
			}
		}
#if __VER >= 8 //__CSC_VER8_5
		if (pMover->IsPlayer() && pMover->m_pAngelFlag)
		{
			if (pMover->m_pAngel)
				SAFE_DELETE(pMover->m_pAngel);
			pMover->m_pAngel = nullptr;
			pMover->m_pAngelFlag = false;
		}
#endif
#if __VER >= 11 // __CSC_VER11_2
		if (static_cast<CObj*>(pMover) == g_WndMng.m_pWndWorld->m_pNextTargetObj)
		{
			if (g_WndMng.m_pWndWorld->m_pNextTargetObj == g_WndMng.m_pWndWorld->m_pRenderTargetObj)
			{
				g_WndMng.m_pWndWorld->m_pNextTargetObj = nullptr;
				g_WndMng.m_pWndWorld->m_pRenderTargetObj = g_WorldMng()->GetObjFocus();
			}
			else
				g_WndMng.m_pWndWorld->m_pNextTargetObj = nullptr;
		}
#endif 

		CMover* pAttacker = prj.GetMover(objidAttacker);
		if (pAttacker)
		{
			if (g_pPlayer == pAttacker)
			{
				CWorld* playerWorld = g_pPlayer->GetWorld();
				if (playerWorld)
				{
					CObj* focusObj = playerWorld->GetObjFocus();
					if (static_cast<CMover*>(focusObj) == pMover)
					{
#if __VER >= 11 // __CSC_VER11_2
						if (g_WndMng.m_pWndWorld->m_pNextTargetObj)
						{
							g_WndMng.m_pWndWorld->SetNextTarget();
							g_WndMng.m_pWndWorld->m_bAutoAttack = true;
						}
						else
#endif
						{
							playerWorld->SetObjFocus(nullptr);
							g_WndMng.m_pWndWorld->m_bAutoAttack = false;
						}
					}
				}
			}

			if (pAttacker->IsPlayer())
				pMover->m_idMurderer = pAttacker->m_idPlayer;

			if (pAttacker->IsActiveMover())
				g_DamageNumMng.AddNumber(pMover->GetPos(), nHitPoint, 1);

			if (pAttacker->m_pActMover->GetObjHit() == objid)
				pAttacker->m_pActMover->SetObjHit(NULL_ID);
			if (pAttacker->GetDestId() == objid)
				pAttacker->ClearDestObj();
		}

		if (g_WndMng.m_pWndWorld->m_objidTracking == pMover->GetId())
			g_WndMng.m_pWndWorld->m_objidTracking = NULL_ID;
		pMover->SendActMsg(OBJMSG_DIE, dwMsg, reinterpret_cast<int>(pAttacker));		
	}
}
Avalion is offline  
Thanks
2 Users
Old 09/20/2024, 21:39   #3
 
elite*gold: 0
Join Date: Sep 2024
Posts: 2
Received Thanks: 0
Quote:
Originally Posted by Velitta View Post
-
Can someone repost this please?
The one posted above doesn't work well on V15 it seems.
Justme1113 is offline  
Reply


Similar Threads Similar Threads
Target self / Target enemy ? >.>
03/21/2011 - General Gaming Discussion - 2 Replies
Well, i just looked through all the existing rose-hack-threads (not that any of them would work...), when i saw those "Levelbots" with a "Target self" and a "Target Enemy" Skill :o Well, my question is: Where can i find this Skill? O_o I´m playing AruaRose, but i neither got it from beginning nor being able to buy it anywhere :o Well, it would be nice if u could tell me... :> Edit: Oh, and if one of the Maker of those "Rose online Privatserver"-Threads should read this, would you...
WoW Hide My Target - Hide your target!
10/24/2010 - WoW Exploits, Hacks, Tools & Macros - 46 Replies
Voerst: Hier geht es um einen kleinen Hack, um euer Target zu verstecken. Andere werden euer aktuelles Target nicht mehr sehen. Dieser kleine Hack ist aus Langeweile entstanden, wenn ihr ihn also unnütz findet, steht es euch frei diesen Thread ohne jeglichen noch sinnloseren Kommentar zu verlassen, danke! Wie funktioniert der Hack? Code der verändert wrid in WoW: 00518E07 - 5 Bytes (0x90, 0x90, 0x90, 0x90, 0x90) 00524311 - 5 Bytes (0x90, 0x90, 0x90, 0x90, 0x90) 00528306 - 5 Bytes...
[Help] Invalid Target/Cannot find Target(ZSZC)
05/29/2010 - SRO Private Server - 4 Replies
Some write they have Problems with ZSZC SRO-DB, by mobs for example "Ishade/Penon/Ujigi(lvl50-56)", in the Textbox right side down a message: "Invalid Target" or " Cannot Find Target", All have this Problem, a good message, i have the solution! You need Use SRO-DB Bot V0.8 and NOT V0.9a! +++Use this and you will have Fun by Botting+++



All times are GMT +1. The time now is 15:01.


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.