forums | blogs | polls | tutorials | downloads | rules | help

Error message

Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in remember_me_form_alter() (line 78 of /var/www/siegetheday.org/sites/all/modules/contrib/remember_me/remember_me.module).

How do you add item to store?

I made a new sword and know need to add it to shops, because I don't want to mess around with random drops or seting outrageous .99 rates to the item to get it

I know that I have to edit shops.gas in \world\maps\ds2_world\info but I don't know how to add it to the list...

Templarian Arch Sorcerer's picture

aim4it wrote:
I made a new sword and know need to add it to shops, because I don't want to mess around with random drops or seting outrageous .99 rates to the item to get it

I know that I have to edit shops.gas in \world\maps\ds2_world\info but I don't know how to add it to the list...

ummmmmmmm..................

Could you please explain your problem in more detail? Wink

I created a new sword, which I would like to always appear in the weapon store at eurlan, but I don't know to add the new sword to the shop.

this is what I currently have in shops.gas:

 
/////////////////////////////////////////////////
// Act I Weapon Store
	[act_1_weapon_store]
	{
		[melee]
		{
			[all*]
			{
				il_main = test_sword1;
				count = 1;
				instant_restock = true;
			}

But I've been to the store 6 times now after loading the save and still haven't seen my sword...

That didn't help my problem, its not a new npc, and i've already added the sword to shops.gas, however my sword still hasn't shown up yet Sad

Templarian Arch Sorcerer's picture

aim4it wrote:
That didn't help my problem, its not a new npc, and i've already added the sword to shops.gas, however my sword still hasn't shown up yet Sad

Am i to assume that DS2 uses a different shop system? (I do not mod DS2) Cool

Templarian Arch Sorcerer wrote:
Am i to assume that DS2 uses a different shop system? (I do not mod DS2) Cool

I don't know if its different I don't have DS1 :P

Sharkull's picture

What's your item's template name (test_sword1?), and how are you testing (via untanked bits and DS2Mod...)? Have you tested your item by any other means (i.e. are you sure it's not your template causing the problem)?

You can look at my_test_world (available in the download section here) for examples of how to add static items to shops. You would need to add a new section to the existing shops.gas file for your item, in each shop vendor you want to sell your item:

[all*]
{
	il_main = #dg_1h_dg:base;
	count = 1;
	instant_restock = true;
}

(the reference to :base indicates a non-magical, non-enchantable item).

No, I found my problem. The problem is that the tanked mod is loaded at startup, however when I used "give test_sword1", it reported back that the item wasn't in the database...

Edit:Fixed my problem, the bits worked fine, bad tank file again... Sad

Sharkull's picture

aim4it wrote:
Edit:Fixed my problem...

Glad to hear it. Laughing out loud