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).

Enchantable item flag? (+ world level specific quest drops)

Sharkull's picture

I want to make a little tweak to the newbie gear (dropped by the dryad jailer), including a spell book (without requirements) that can be enchanted. The problem is that I can't find the flag / method to make an item enchantable.

Can someone give me a hint? :mrgreen:

Edit: updating subject name...

hehe

Balderstrom's picture

Interesting how much simpler it turned out to be in the end though Wink

Sharkull's picture

Yes, but I learned a lot in the pursuit of an answer... Cool

Now I know enough to expand this concept for another idea I have. Wink

Sharkull wrote:
Yes, but I learned a lot in the pursuit of an answer... Cool

Now I know enough to expand this concept for another idea I have. Wink

This would be helpful on the wiki, I'm sure!

OC

Sharkull's picture

omniscient_colossus wrote:
Sharkull wrote:
Yes, but I learned a lot in the pursuit of an answer... Cool

Now I know enough to expand this concept for another idea I have. Wink

This would be helpful on the wiki, I'm sure!

OC


I'll consider writing something when I've released the mod... Wink

Sharkull's picture

I thought I'd take a few minutes to write down some of what I learned during this investigation... just in case someone might find it useful as a reference. Hopefully I didn't miss anything.

The first reference to trigger the quest reward that I know of is here:
logic.ds2res\world\global\flick\sequences\ds2_world\act1_town\act1_town_warden_talk.flick

[act1_town_warden_talk]
{
	...
		activate reward_a1_pq3_dryad_outpost_begin; // quest reward drop
	...
}

Now, what exactly is "reward_a1_pq3_dryad_outpost_begin"? Well, in the map file this name references a SCID:
world.ds2map\world\maps\ds2_world\regions\a1_01_06_jngtown\index\scid_names.gas

[scid_names]
{
	[0x00001001]
	{
		...
		0x0010148B = "reward_a1_pq3_dryad_outpost_begin";
		...
	}
}

...and still in the map file we learn a bit more about this SCID (0x0010148b):
world.ds2map\world\maps\ds2_world\regions\a1_01_06_jngtown\objects\container.gas

[t:gen_pcontent_a1_pq3_dryad_outpost_begin,n:0x0010148b]
{
	...
		drop_point_scids = 0x0010148B;
	...
		use_point_scids = 0x0010148B;
	}
}

Now we have a template name "gen_pcontent_a1_pq3_dryad_outpost_begin", which can be found here:
logic.ds2res\world\contentdb\templates\interactive\containers\ctn_quest.gas

[t:template,n:gen_pcontent_a1_pq3_dryad_outpost_begin]
{
	...
		macro = a1_pq3_dryad_outpost_begin;
	...
}

The above macro call is to the actual item listing for the reward:
logic.ds2res\world\contentdb\pcontent\macros\act1_macros.gas

[a1_pq3_dryad_outpost_begin]
{
	[all*]
	{
		player_drop_type = all;
		il_main = ...
	}
}

The End.
Smile

Pages