NPC Shops & 'Invisible Items'

Results 1 to 6 of 6
  1. #1
    Member eleae is offline
    MemberRank
    May 2010 Join Date
    EnglandLocation
    69Posts

    NPC Shops & 'Invisible Items'

    Okay so after a long time of trying to work out what my errors were telling me, i found nothing.
    The errors that were showing, were very similar to these two threads:

    http://forum.ragezone.com/f483/world...sh-o-o-699841/
    http://forum.ragezone.com/f483/world...-crash-695925/

    However, i chose to start over, and slowly find out the real issue causing the errors.
    I started by adding some items into the general Lui.
    this worked fine, and no errors were showing.
    Of course, i added my edited character.inc into the data subs needed, (including the client, etc.) and still no errors anywhere.
    I then proceeded into the game, to check out the shop. no dcing, nothing.
    Now i face the issue of.. the items not showing up -.-

    Basicly, all the other items in shops are fine. But when i add any, they dont appear. Invisible you might say.
    I'm pretty sure this isnt an issue IVE done, but i could of course be wrong. This is the code i am using for the general Lui:

    Code:
    MaFl_Lui
    {
    	setting
    	{
    		AddMenu( MMI_DIALOG );
    		AddMenu( MMI_TRADE  );
    		AddVendorItem( 0, IK3_BCHARM, -1, 20, 20, 50 );
    		AddVendorItem( 0, IK3_RCHARM, -1, 20, 20, 50 );
    		AddVendorItem( 0, IK3_ARROW, -1, 5, 5, 50 );
    		AddVendorItem( 0, IK3_COOKING, -1, 19, 20, 50 );
    		AddVendorItem( 0, IK3_REFRESHER, -1, 19, 20, 50 );
    		AddVendorItem( 0, IK3_DRINK, -1, 19, 20, 50 );
    		AddVendorItem( 0, IK3_SCROLL, -1, 19, 20, 50 );
    		AddVendorItem( 0, IK3_TEXT_GM, -1, 19, 20, 50 );
    		AddVendorItem( 0, IK3_POTION, -1, 100, 101, 50 );
    		AddVendorItem( 0, IK3_POTION_BUFF_INT, -1, 100, 101, 50 );
    		AddVendorItem( 0, IK3_TEXT_DISGUISE, -1, 19, 20, 50 );
    		AddVendorItem( 0, IK3_TEXT_DISGUISE, -1, 19, 20, 50 );
    		AddVendorItem( 1, IK3_POTION_BUFF_STR, -1, 19, 20, 50 );
    		AddVendorItem( 1, IK3_POTION_BUFF_STA, -1, 19, 20, 50 );
    		AddVendorItem( 1, IK3_POTION_BUFF_DEX, -1, 19, 20, 50 );
    		AddVendorItem( 1, IK3_POTION_BUFF_INT, -1, 19, 20, 50 );
    		AddVendorItem( 1, IK3_POTION, -1, 19, 20, 50 );
    		AddVendorItem( 2, IK3_SCROLL, -1, 17, 18, 50 );
    		AddVendorItem( 1, IK3_POTION_BUFF_DEFENSE, -1, 19, 20, 50 );
    		AddVendorItem( 0, IK3_BALLOON, -1, 19, 20, 50);	
    		m_nStructure= SRT_GENERAL;
    		SetImage
    		(
    		IDS_CHARACTER_INC_000038
    		);
    		m_szDialog= "MaFl_Lui.txt";
    	}
    
    	SetName
    	(
    	IDS_CHARACTER_INC_000039
    	);
    
    	AddVendorSlot( 0,
    	IDS_CHARACTER_INC_000041
    	);
    
    	AddVendorSlot( 1,
    	IDS_CHARACTER_INC_000042
    	);
    
    	AddVendorSlot( 2,
    	IDS_CHARACTER_INC_000043
    	);
    }
    I would really like some help on this, i took a lot of time looking through every thread in the flyff help section on this, and i have found literally nothing that has been resolved close to this case.
    I will be very generous with the 'THANK' button if anyone is able to help me out a bit ]:

    Thanks.


  2. #2
    Account Upgraded | Title Enabled! HolySinX is offline
    MemberRank
    Sep 2008 Join Date
    LocalhostLocation
    787Posts

    Re: NPC Shops & 'Invisible Items'

    I also faced this problem like ages ago, when I attempted to add custom items to shops, but I failed miserably. Unfortunately, I have no clue what's causing this..

  3. #3
    Apprentice abc0 is offline
    MemberRank
    Nov 2009 Join Date
    6Posts

    Re: NPC Shops & 'Invisible Items'

    Quote Originally Posted by eleae View Post
    Okay so after a long time of trying to work out what my errors were telling me, i found nothing.
    The errors that were showing, were very similar to these two threads:

    http://forum.ragezone.com/f483/world...sh-o-o-699841/
    http://forum.ragezone.com/f483/world...-crash-695925/

    However, i chose to start over, and slowly find out the real issue causing the errors.
    I started by adding some items into the general Lui.
    this worked fine, and no errors were showing.
    Of course, i added my edited character.inc into the data subs needed, (including the client, etc.) and still no errors anywhere.
    I then proceeded into the game, to check out the shop. no dcing, nothing.
    Now i face the issue of.. the items not showing up -.-

    Basicly, all the other items in shops are fine. But when i add any, they dont appear. Invisible you might say.
    I'm pretty sure this isnt an issue IVE done, but i could of course be wrong. This is the code i am using for the general Lui:

    Code:
    MaFl_Lui
    {
    	setting
    	{
    		AddMenu( MMI_DIALOG );
    		AddMenu( MMI_TRADE  );
    		AddVendorItem( 0, IK3_BCHARM, -1, 20, 20, 50 );
    		AddVendorItem( 0, IK3_RCHARM, -1, 20, 20, 50 );
    		AddVendorItem( 0, IK3_ARROW, -1, 5, 5, 50 );
    		AddVendorItem( 0, IK3_COOKING, -1, 19, 20, 50 );
    		AddVendorItem( 0, IK3_REFRESHER, -1, 19, 20, 50 );
    		AddVendorItem( 0, IK3_DRINK, -1, 19, 20, 50 );
    		AddVendorItem( 0, IK3_SCROLL, -1, 19, 20, 50 );
    		AddVendorItem( 0, IK3_TEXT_GM, -1, 19, 20, 50 );
    		AddVendorItem( 0, IK3_POTION, -1, 100, 101, 50 );
    		AddVendorItem( 0, IK3_POTION_BUFF_INT, -1, 100, 101, 50 );
    		AddVendorItem( 0, IK3_TEXT_DISGUISE, -1, 19, 20, 50 );
    		AddVendorItem( 0, IK3_TEXT_DISGUISE, -1, 19, 20, 50 );
    		AddVendorItem( 1, IK3_POTION_BUFF_STR, -1, 19, 20, 50 );
    		AddVendorItem( 1, IK3_POTION_BUFF_STA, -1, 19, 20, 50 );
    		AddVendorItem( 1, IK3_POTION_BUFF_DEX, -1, 19, 20, 50 );
    		AddVendorItem( 1, IK3_POTION_BUFF_INT, -1, 19, 20, 50 );
    		AddVendorItem( 1, IK3_POTION, -1, 19, 20, 50 );
    		AddVendorItem( 2, IK3_SCROLL, -1, 17, 18, 50 );
    		AddVendorItem( 1, IK3_POTION_BUFF_DEFENSE, -1, 19, 20, 50 );
    		AddVendorItem( 0, IK3_BALLOON, -1, 19, 20, 50);	
    		m_nStructure= SRT_GENERAL;
    		SetImage
    		(
    		IDS_CHARACTER_INC_000038
    		);
    		m_szDialog= "MaFl_Lui.txt";
    	}
    
    	SetName
    	(
    	IDS_CHARACTER_INC_000039
    	);
    
    	AddVendorSlot( 0,
    	IDS_CHARACTER_INC_000041
    	);
    
    	AddVendorSlot( 1,
    	IDS_CHARACTER_INC_000042
    	);
    
    	AddVendorSlot( 2,
    	IDS_CHARACTER_INC_000043
    	);
    }
    I would really like some help on this, i took a lot of time looking through every thread in the flyff help section on this, and i have found literally nothing that has been resolved close to this case.
    I will be very generous with the 'THANK' button if anyone is able to help me out a bit ]:

    Thanks.


    I Also Have The Same Problem Atm, Now I'm still messing around with it alittle, so if i manage to find something i'll let you know. :]

    Edit: Ok i think i figured it out!
    I will be making a Video Tutorial soon and will post a link here!
    Last edited by abc0; 26-10-10 at 02:08 AM.

  4. #4
    Eternal Games Owner ZuminaSpanky is offline
    MemberRank
    Nov 2009 Join Date
    346Posts

    Re: NPC Shops & 'Invisible Items'

    Already said this on msn but wanted to let anyone else know in case if they see this thread.

    To add items you need two pieces to the puzzle: character.inc and propitem.txt

    As always it needs excel, the main columns you need to look at to just put items INTO the shop: x, y, and z.

    X and Y deal with range and order of items in the shop (I don't remember which is which), Z puts the items INTO the shop.

    So for me. I will use isruel as an example:
    Code:
    MaFl_Isruel
    {
    	setting
    	{
    		AddMenu( MMI_DIALOG );
    		AddMenu( MMI_TRADE  );
    		AddVendorItem( 0, IK3_EGG, -1, 1, 2, 100);
    		SetImage
    		(
    		IDS_CHARACTER_INC_000071
    		);
    		m_szDialog= "MaFl_Isruel.txt";
    	}
    
    	SetName
    	(
    	IDS_CHARACTER_INC_000072
    	);
    
    	AddVendorSlot( 0,
    	IDS_CHARACTER_INC_000073
    	);
    • 0 Indicates the vendor slot
    • IK3_EGG is the classification of the item, in this case, egg items
    • -1 Indicates that all classes can buy this item (I believe, don't remember exactly)
    • 1,2 Indicates the RANGE of the items. The range of items is determined in X or Y (Can't remember which column deals with range, which column deals with order)


    Remember to have the res files be in sync with the server files. The price for the items are pretty much obvious (M column).

    Have fun. You won't have invisible items if you follow this correctly.
    Last edited by ZuminaSpanky; 26-10-10 at 02:54 AM.

  5. #5
    Member nabby59 is offline
    MemberRank
    Jul 2010 Join Date
    60Posts

    Re: NPC Shops & 'Invisible Items'

    The X column is the level of the item, the Y column is the rarity. For the item to show up in the shop the rarity value of the item needs to be within the range you define. (Can't recall either how the game orders the items I think its Level then rarity but in all honesty i have no idea)

    Z is just a true/false type of field to say whether the item is shopable.
    Last edited by nabby59; 26-10-10 at 05:17 AM.

  6. #6
    Member eleae is offline
    MemberRank
    May 2010 Join Date
    EnglandLocation
    69Posts

    Re: NPC Shops & 'Invisible Items'

    Thanks peoples <:
    working on it atm lol.



Advertisement