Register for your free account! | Forgot your password?

You last visited: Today at 01:11

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

Advertisement



[Fix] Gender NPC

Discussion on [Fix] Gender NPC within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2018
Posts: 48
Received Thanks: 37
Arrow [Fix] Gender NPC

Hi epvp! I heard that too much guys need help with Male npc, because even at official server its bugged. Then , enjoy it.
I offer you 2 fixes.




_Common/ObjSerializeOpt.cpp: function CMover::Serialize
Search
Code:
ar << (u_char)m_dwHairMesh << m_dwHairColor << (u_char)m_dwHeadMesh;
Add below:
Code:
ar << m_bySex;
Search
Code:
ar >> (u_char&)m_dwHairMesh >> m_dwHairColor >> (u_char&)m_dwHeadMesh;
Add below:
Code:
ar >> m_bySex;
The first one :

_Common/WorldFile.cpp: function CWorld::LoadObject
Search
Code:
if( pObj->GetType() == OT_MOVER && lstrlen( static_cast<CMover*>(pObj)->GetCharacter()->m_szKey ) )
{
	LPCHARACTER lpChar = static_cast<CMover*>(pObj)->GetCharacter();
	lpChar->m_dwWorldId = GetID();
	lpChar->m_vPos = pObj->GetPos();
Add below:
Code:
	if(((CMover*)pObj)->m_dwIndex == MI_MALE || ((CMover*)pObj)->m_dwIndex == MI_FEMALE)
	{
		((CMover*)pObj)->m_bySex = ((CMover*)pObj)->m_dwIndex - MI_MALE;
		lpChar->m_dwMoverIdx = ((CMover*)pObj)->m_dwIndex;
	}
The second:
The second working, but if you still empty model
I mean, without world editor settings - you got fail
World editor settings - the string with (MaFl_NPCNAME or something like that)


_Common/WorldFile.cpp: function CWorld::LoadObject
Replace:
Code:
if( pObj->GetType() == OT_MOVER && lstrlen( static_cast<CMover*>(pObj)->GetCharacter()->m_szKey ) )
{
	LPCHARACTER lpChar = static_cast<CMover*>(pObj)->GetCharacter();
	lpChar->m_dwWorldId = GetID();
	lpChar->m_vPos = pObj->GetPos();
}
To:
Code:
if(pObj->GetType() == OT_MOVER)
{
	if(lstrlen(static_cast<CMover*>(pObj)->GetCharacter()->m_szKey))
	{
		LPCHARACTER lpChar = static_cast<CMover*>(pObj)->GetCharacter();
		lpChar->m_dwWorldId = GetID();
		lpChar->m_vPos = pObj->GetPos();
		if(((CMover*)pObj)->m_dwIndex == MI_MALE || ((CMover*)pObj)->m_dwIndex == MI_FEMALE)
		{
			((CMover*)pObj)->m_bySex = ((CMover*)pObj)->m_dwIndex - MI_MALE;
			lpChar->m_dwMoverIdx = ((CMover*)pObj)->m_dwIndex;
		}
	}
	else
	{
		if(pObj->m_dwIndex == MI_MALE || pObj->m_dwIndex == MI_FEMALE)
		{
			if(((CMover*)pObj)->m_dwIndex == MI_MALE || ((CMover*)pObj)->m_dwIndex == MI_FEMALE)
				((CMover*)pObj)->m_bySex = ((CMover*)pObj)->m_dwIndex - MI_MALE;
		}
	}
}
Build Neuz, WordServer and DB server
Attached Images
File Type: png NPC Gender.png (323.8 KB, 272 views)
File Type: png NPC Gender1.png (204.0 KB, 241 views)
QuietSmoke is offline  
Thanks
5 Users
Old 04/30/2020, 16:53   #2
 
B1ackSnow's Avatar
 
elite*gold: 0
Join Date: Aug 2015
Posts: 54
Received Thanks: 17
Good job.
Very useful.
B1ackSnow is offline  
Old 04/30/2020, 19:08   #3
 
elite*gold: 0
Join Date: Apr 2016
Posts: 11
Received Thanks: 2
Not working.
gwapingsjericho is offline  
Old 04/30/2020, 19:36   #4
 
elite*gold: 0
Join Date: May 2018
Posts: 48
Received Thanks: 37
Quote:
Originally Posted by gwapingsjericho View Post
Not working.
Everything is working. Tested on 2 servers
Check

Quote:
Originally Posted by gwapingsjericho View Post
Not working.
I added a second fix, try it.
QuietSmoke is offline  
Old 04/30/2020, 20:43   #5
 
elite*gold: 0
Join Date: Apr 2016
Posts: 11
Received Thanks: 2
Quote:
Originally Posted by QuietSmoke View Post
Everything is working. Tested on 2 servers
Check



I added a second fix, try it.
You try with lookchange?
gwapingsjericho is offline  
Old 04/30/2020, 20:46   #6
 
B1ackSnow's Avatar
 
elite*gold: 0
Join Date: Aug 2015
Posts: 54
Received Thanks: 17
Quote:
Originally Posted by gwapingsjericho View Post
Not working.
everything work, man
look again, maybe you did something wrong
B1ackSnow is offline  
Old 04/30/2020, 20:46   #7
 
elite*gold: 0
Join Date: May 2018
Posts: 48
Received Thanks: 37
Quote:
Originally Posted by gwapingsjericho View Post
You try with lookchange?
Yes. I have a fully working __LOOKCHANGE.
QuietSmoke is offline  
Reply


Similar Threads Similar Threads
Gender switch. Wearing opposite gender clothes
01/21/2016 - S4 League - 5 Replies
Hey A while ago I worked on a gender switch hack but paused it. The main idea was to have another dodge animation. But maybe its also useful for those male players, that want a smaller hitbox from the females. If anyone is interested in working on where I stopped tell me then I explain what I found out so far. http://fs5.directupload.net/images/160113/gbbciw3 q.jpg
[04.09.13] GigaByte v2.6 [FIX, FIX, FIX, FIX AND FIX]
09/11/2013 - WarRock Hacks, Bots, Cheats & Exploits - 79 Replies
http://www.elitepvpers.com/forum/warrock-hacks-bot s-cheats-exploits/2843300-11-09-gigabyte-public-v2 -7-a.html



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


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.