Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 21:02

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

Advertisement



INVENTORY BUYING ITEMS

Discussion on INVENTORY BUYING ITEMS within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2014
Posts: 7
Received Thanks: 0
INVENTORY BUYING ITEMS

Hey,

I need your help in order to get inventory buy items directly. I've started code it but it doesn't work at all. So I was wondering if there was any source with that kind of system "_INVENTORY_BUY_ITEM".

Thanks in advance, it's more than 2 weeks that i'm working on.
Umlook is offline  
Old 08/22/2016, 14:42   #2
 
elite*gold: 0
Join Date: Mar 2008
Posts: 665
Received Thanks: 230
In less than two weeks, you can learn basis of C++ and do it.
alfredico is offline  
Old 08/22/2016, 14:46   #3
 
Kaev <3's Avatar
 
elite*gold: 110
Join Date: Mar 2008
Posts: 856
Received Thanks: 391
Quote:
Originally Posted by Umlook View Post
Hey,

I need your help in order to get inventory buy items directly. I've started code it but it doesn't work at all. So I was wondering if there was any source with that kind of system "_INVENTORY_BUY_ITEM".

Thanks in advance, it's more than 2 weeks that i'm working on.
Instead of saying "it doesn't work at all" you could show us your code and we could analyze what's going wrong.
Kaev <3 is offline  
Old 08/22/2016, 16:09   #4
 
elite*gold: 115
Join Date: Jan 2012
Posts: 1,156
Received Thanks: 894
Code:
void CDPSrvr::OnGetRemantis(CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE, u_long)
{
	CUser* pUser = g_UserMng.GetUser(dpidCache, dpidUser);
	u_long idPlayer;
	if (IsValidObj(pUser))
	{
		ar >> idPlayer;
		if (idPlayer != pUser->m_idPlayer)
			return;

		if (pUser->m_Inventory.GetEmptyCount() > 0 || pUser->m_Inventory.GetAtItemId(II_CHR_FOO_COO_REMANTIS) )
		{
			if (pUser->GetGold() >= 100000)
			{
				CItemElem item;
				item.m_nItemNum = 1;
				item.m_dwItemId = II_CHR_FOO_COO_REMANTIS;
				if (pUser->CreateItem(&item))
				{
					pUser->AddGold(-100000);
					pUser->AddText("Remantis successfully purchased!");
				}
				else{
					pUser->AddText("Failed to purchase Remantis!");
				}
			}
			else{
				pUser->AddText("Not enough penya.");
				return;
			}
		}
		else{
			pUser->AddText("Your Inventory is full.");
			return;
		}
	}
}
same method with perin converter good luck!
Rhyder` is offline  
Reply


Similar Threads Similar Threads
[Buying] Buying steam account with csgo (must have decent items in inventory).
04/03/2015 - Counter-Strike Trading - 0 Replies
Title. Don't care about rank, play hours, creation time and other stuff. All i need is some decent items in it (atleast ~3 euros in inventory would be good), no vac, ow or trade bans. Paying up to 40 euros and also going first!!
[Selling] Buying steam account with csgo (must have decent items in inventory).
04/03/2015 - Steam Trading - 0 Replies
Title. Don't care about rank, play hours, creation time and other stuff. All i need is some decent items in it (atleast ~3 euros in inventory would be good), no vac, ow or trade bans. Paying up to 40 euros and also going first!!
[HELP] Buying, Inventory
12/02/2014 - EO PServer Hosting - 3 Replies
can someone help me with this? http://i.epvpimg.com/wxWPe.jpg 1. How to make logs put from number 2 to number 1? I can edit the inv interface but cant move the logs to that in DB. 2. How to make a query for mySQL to buy items using the number 1 (bonus_points)? I've tried using sql is cq action that have sort of like this 9999900 9999901 0 502 1020011 9999901 9999902 0 1001 0 bonus_points += 1 9999902 9999903 0 126 0 Congratulations!You~recie ved~1~Bonus~Points!!...



All times are GMT +1. The time now is 21:02.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.