Register for your free account! | Forgot your password?

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

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

Advertisement



Items added in the npc not showing up.

Discussion on Items added in the npc not showing up. within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2010
Posts: 141
Received Thanks: 8
Items added in the npc not showing up.

Hello, I have two else if.. for red chips and for penya. This is for the red chips:

Code:
else if (script.Token == "AddRCShop")
			{
				script.GetToken();
				int nSlot = script.GetNumber(); script.GetToken();
				DWORD dwId = script.GetNumber(); script.GetToken();

				DWORD dwReferValue1;
				if (script.Token == ",") {
					dwReferValue1 = script.GetNumber();
					if (dwReferValue1 > INT_MAX) {
						dwReferValue1 = INT_MAX;
					}

					ItemProp* pItemProp = prj.GetItemProp(dwId);
					if (pItemProp) {
						pItemProp->dwReferValue1 = dwReferValue1;
						pItemProp->dwCost = 4;
						pItemProp->dwShopAble = 1;
					}
				}

				script.GetToken();

				LPVENDOR_ITEM pVendorItem = new VENDOR_ITEM;
				pVendorItem->m_dwItemId = dwId;
				lpCharacter->m_venderItemAry2[nSlot].Add(pVendorItem);
			}
This is for the penya:

Code:
else if (script.Token == "AddShopItem")
			{
				script.GetToken(); // ( 
				int nSlot = script.GetNumber(); script.GetToken(); //  
				DWORD dwId = script.GetNumber(); script.GetToken();

				DWORD dwItemCost;
				if (script.Token == ",")
				{
					dwItemCost = script.GetNumber();
					ItemProp* pItemProp = prj.GetItemProp(dwId);
					if (pItemProp) {
						pItemProp->dwCost = dwItemCost;
						pItemProp->dwShopAble = 1;
					}
				}

				script.GetToken(); //

				LPVENDOR_ITEM pVendorItem = new VENDOR_ITEM;
				pVendorItem->m_dwItemId = dwId;
				lpCharacter->m_venderItemAry3[nSlot].Add(pVendorItem);
			}
I do not understand why the one for the penya doesn't make the item show up but the RC items shows up. Been figuring out for hours now, any thoughts and ideas would be really appreciated.

This is the inside of the MaFL_Tamer btw.


This one for the MaFL_Is:

I am so confused what I did wrong :|

Anyways if you want to ask for my Waforu NPC:

Bump! I still need help.

--
Fixed, thread may be closed now.
pakinglalat is offline  
Old 05/13/2019, 14:14   #2
 
elite*gold: 0
Join Date: Jan 2017
Posts: 301
Received Thanks: 28
Does it has a normal price higher then 4?
KingKeesie is offline  
Reply


Similar Threads Similar Threads
Transfer Awakening Applet Not Showing Up In The NPC
08/07/2016 - Flyff Private Server - 2 Replies
First off, I have successfully added the released system from this thread, then I have added this thing posted by N8Schatten. Then I have added that applet to Jeff: MaFl_Jeff { setting
[Updated]Mcmy's Public Cheat V.1.3 [Fastall added,Serverhacks added ... and more!!!]
03/14/2011 - WarRock Hacks, Bots, Cheats & Exploits - 24 Replies
http://img858.imageshack.us/img858/4240/mcmyspubli cv13.png Download: DuckLoad.com · Easy Streaming Virustotal: VirusTotal - Free Online Virus, Malware and URL Scanner Kickt auf "Thanks" bitte!



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


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.