• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook pagefor updates, or we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.)

Vendor update

Status
Not open for further replies.
Newbie Spellweaver
Joined
Feb 22, 2021
Messages
14
Reaction score
0
Hello guys good day!

i need help about VENDOR UPDATE System is there anyone got the same problem
adding vendor update system ? i some can someone help me .

The problem when the Penya Shop display price is 1 Penya only
but when you try to buy it you see the true price of the items .

Picture :



Red Chips shop is Fix
Picture :

Im using K18 Ketchup files.
I hope someone can help me Thankyou so much !

K18 Files : [VS19] V18 Files (Retail Content & V19 Formats) - Thanks for release Ketchup im also learning . more powers !
 
Newbie Spellweaver
Joined
Feb 22, 2021
Messages
14
Reaction score
0
I already added too. because if no __ADDSHOPITEM you cant view the NPC it will get a neuz crash :(
 
Inactive
Joined
Jan 20, 2009
Messages
1,014
Reaction score
1,830
Then double check all your edits as your clearly missing something.

Or compare it against another source that has the same defines.
 
Newbie Spellweaver
Joined
Feb 22, 2021
Messages
14
Reaction score
0
Show your resource edits then as this system works and is used by just about all servers without any issues.

ill use your Resource in K18 without any edits except addings items in spec_items.txt, Character.inc still default as your file .
 
Inactive
Joined
Jan 20, 2009
Messages
1,014
Reaction score
1,830
ill use your Resource in K18 without any edits except addings items in spec_items.txt, Character.inc still default as your file .

The only edits to be made with this system is in the Character.inc.

AddShopItem (TAB, ITEM, COST);

An example of a working NPC:
```
Code:
MaFl_Peach
{
	setting
	{
		AddMenu( MMI_DIALOG );
		AddMenu( MMI_SMELT_EXTRACTION );
		AddMenu( MMI_SMELT_MIXJEWEL );
		AddMenu( MMI_SMELT_JEWEL );
		AddMenu( MMI_LVREQDOWN_CANCEL );
		AddMenu( MMI_BLESSING_CANCEL );
		AddMenu( MMI_TRADE );
		AddShopItem( 0, II_SYS_SYS_SCR_AWAKE, 100000 );
		AddShopItem( 0, II_SYS_SYS_SCR_PETAWAKE, 100000 );
		SetImage
		(
			IDS_CHARACTER_INC_000741
		);
		m_szDialog= "MaFl_Peach.txt";
	}

	SetName
	(
		IDS_CHARACTER_INC_000742
	);

	AddVendorSlot( 0,
	IDS_CHARACTER_INC_000743
	);
}
 
Newbie Spellweaver
Joined
Feb 22, 2021
Messages
14
Reaction score
0
The only edits to be made with this system is in the Character.inc.

AddShopItem (TAB, ITEM, COST);

An example of a working NPC:
```
Code:
MaFl_Peach
{
    setting
    {
        AddMenu( MMI_DIALOG );
        AddMenu( MMI_SMELT_EXTRACTION );
        AddMenu( MMI_SMELT_MIXJEWEL );
        AddMenu( MMI_SMELT_JEWEL );
        AddMenu( MMI_LVREQDOWN_CANCEL );
        AddMenu( MMI_BLESSING_CANCEL );
        AddMenu( MMI_TRADE );
        AddShopItem( 0, II_SYS_SYS_SCR_AWAKE, 100000 );
        AddShopItem( 0, II_SYS_SYS_SCR_PETAWAKE, 100000 );
        SetImage
        (
            IDS_CHARACTER_INC_000741
        );
        m_szDialog= "MaFl_Peach.txt";
    }

    SetName
    (
        IDS_CHARACTER_INC_000742
    );

    AddVendorSlot( 0,
    IDS_CHARACTER_INC_000743
    );
}

Same as i do .

Code:
MaFl_Peach
{
    setting
    {
        AddMenu( MMI_DIALOG );
        AddMenu( MMI_SMELT_EXTRACTION );
        AddMenu( MMI_SMELT_MIXJEWEL );
        AddMenu( MMI_SMELT_JEWEL );
        AddMenu( MMI_LVREQDOWN_CANCEL );
        AddMenu( MMI_BLESSING_CANCEL );
        AddMenu( MMI_TRADE );


        AddShopItem( 0, II_SYS_SYS_SCR_SMELPROT, 1000000);
        AddShopItem( 0, II_SYS_SYS_SCR_SMELTING, 1500000 );
        AddShopItem( 0, II_SYS_SYS_SCR_SMELPROT3, 1000000 );
        AddShopItem( 0, II_SYS_SYS_SCR_SMELPROT4, 2300000);
        AddShopItem( 0, II_SYS_SYS_SCR_PIEPROT, 1800000 );
        SetImage
        (
            IDS_CHARACTER_INC_000741
        );
        m_szDialog= "MaFl_Peach.txt";
    }

    SetName
    (
        IDS_CHARACTER_INC_000742
    );

    AddVendorSlot( 0,
    IDS_CHARACTER_INC_000743
    );
}
 
Newbie Spellweaver
Joined
Feb 22, 2021
Messages
14
Reaction score
0
Yes i know how to merge.

Already Fix it . got fucked with my copy paste skill hahahahaha

with this dwCost = m_pItemElem->GetChipCost(); i put a double code hahahaha.

code


Ingame .


Sorry for disturbing you ketchup also super really thankyou for your effort to reply in my thread! God bless you keep it up! we need you in this community .



#closed
 
Last edited:
Status
Not open for further replies.
Back
Top