Description

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

Preview
Fix common quests items misions
Comments
DSurs
DSurs

Great, I should include this in next update.

Reply Good karma Bad karma+4 votes
IntiMetalero Author
IntiMetalero

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

I take the code lines from the Dead Air files.

Reply Good karma+1 vote
IntiMetalero Author
IntiMetalero

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

Un Master

Reply Good karma Bad karma+2 votes
Guest
Guest

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

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.