Description

Fix the firsts quests lines items as PDA, Documents and container.

Preview
Fix common quests items misions
Post comment Comments
DSurs
DSurs - - 583 comments

Great, I should include this in next update.

Reply Good karma Bad karma+4 votes
IntiMetalero Author
IntiMetalero - - 95 comments

Hello.
xr_effects.script --> line 1255:
local stash_id = coc_treasure_manager.create_random_stash(nil, nil, {"drx_sl_quest_item_1", drx_sl_quest_stash_bonus(actor, npc, p)})

its wrong, the quest stash is "drx_create_random_stash", the fix is:

-- Create quest stash:
function drx_sl_create_quest_stash_1(actor, npc, p)

-- local stash_id = coc_treasure_manager.create_random_stash(nil, nil, {"drx_sl_quest_item_1", drx_sl_quest_stash_bonus(actor, npc, p)})
local stash_id = coc_treasure_manager.drx_create_random_stash()
if (not stash_id) then
printf("DRX SL error: Unable to create quest stash 1 !!")
return
end

local se_box = alife():object( stash_id )
local se_obj = alife():create( "drx_sl_quest_item_1", se_box.position, 0, 0, stash_id )

if (not se_obj) then
printf( "DRX SL error: Unable to create quest item 1 !!" )
return
end

-- Save the stash id:
alun_utils.save_var( db.actor, "drx_sl_quest_stash_1_id", stash_id )
alun_utils.save_var( db.actor, "drx_sl_quest_item_1_id", se_obj.id )

printf( "DRX SL: quest item 1 created %s:%s",stash_id, se_obj.id )

end

Reply Good karma+1 vote
IntiMetalero Author
IntiMetalero - - 95 comments

I take the code lines from the Dead Air files.

Reply Good karma+1 vote
IntiMetalero Author
IntiMetalero - - 95 comments

Or it could be
local stash_id = coc_treasure_manager.drx_create_random_stash(nil, nil, {"drx_sl_quest_item_1", drx_sl_quest_stash_bonus(actor, npc, p)})
With the bonus items. -I don't examine it.

Reply Good karma+1 vote
Wizard2
Wizard2 - - 298 comments

Un Master

Reply Good karma Bad karma+2 votes
Guest
Guest - - 690,996 comments

This comment is currently awaiting admin approval, join now to view.

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: