Jump to content

Usage Of Shop Ex


Recommended Posts

  • Honorable Member

Create /share/locale/xx/shop_table_ex.txt

example table:

Group ShopNPC
{
	#--#    NPC    Group
	1	9001	Shop1
	2	9002	Shop2
}

Group Shop1
{
	Vnum    9001
	Name    A1
	CoinType    SecondaryCoin
	Group Items
	{
		#--#	Vnum	Count	Price
		1	20009	1	20
		2	469	1	20
		3	39	1	20
	}
}

Group Shop2
{
	Vnum    9002
	Name    A2
	CoinType    Gold
	Group Items
	{
		#--#	Vnum	Count	Price
		1	299	1	25000
	}
}

Find in shopEx.cpp:(x2)

ITEM_SECONDARY_COIN

change whatever you want (need item vnum)

Add locale_game.txt:

MONETARY_UNIT_JUN	SecondCoin

Result:

18553633866649820e7f3ee498fac67be24d1ad8

  • Good 1
  • Love 7

 

Link to comment
Share on other sites

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.