Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 20:49

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

Advertisement



Need help on crafting system

Discussion on Need help on crafting system within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
jeromerz's Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 244
Received Thanks: 12
Need help on crafting system

The DPSrvr.cpp code goes like this:


I want to add an item id check on this system to prevent duplication's.

Example:
If the user put's a guardian weapon on the first slot the user is not allowed to put a guard weapon again on the 2nd and 3rd slot.


I tried this code base on the model change function:
Code:
	DWORD dwItem1, dwItem2, dwItem3;
	ar >> dwItem1 >> dwItem2 >> dwItem3;
	if( pUser )
	{
		CItemElem *    pItemElem = pUser->m_Inventory.GetAtId( dwItem1 );
		CItemElem *    pItemElem1 = pUser->m_Inventory.GetAtId( dwItem2 );
		CItemElem *    pItemElem2 = pUser->m_Inventory.GetAtId( dwItem3 );

		if(pItemElem->GetProp()->dwID == pItemElem1->GetProp()->dwID == pItemElem2->GetProp()->dwID )
		{
			pUser->AddText("You can not use the same item!");
			return;
		}
	}
But it's not working. >.<

I've been exploring around the source code but no luck i hope you can help me. thanks
jeromerz is offline  
Reply


Similar Threads Similar Threads
Fornax Online Cap140-FGW System-CRAFTING System-BAlANCED-Free SILKS
07/23/2016 - SRO PServer Advertising - 88 Replies
http://i.epvpimg.com/K7YYg.png The server is full of creative ideas which make playing sro much more fun, EU and CH characters had been balanced, so if you like being chinese char, feel free to make one, they are equally strong as eu characters! And although there are many pvp and job wars and fortresses, the basis of the server is pve: making parties will bring you drops, gold, coins; and by going trades and FGW's, you can get every good item ingame! The server isn't pay-to-win, donating...
Crafting system
03/21/2014 - Metin2 Private Server - 0 Replies
kann mir bitte einer helfen das crafting system einzubauen MfG



All times are GMT +1. The time now is 20:49.


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.