generated from Jaysyn/ModuleTemplate
22 lines
703 B
Plaintext
22 lines
703 B
Plaintext
/////////////////////////////////////
|
|
// Dragon's Edge
|
|
// by Charly Carlos
|
|
/////////////////////////////////////
|
|
// Ondeath/Onopen script for containers. Spawns random general
|
|
// treasures and spawns items for crafting if player has enough crafting skills.
|
|
// Modified from the orginal NWN:SoU version of the script and added with with
|
|
// Crafting script for NWN:HotU.
|
|
/////////////////////////////////////
|
|
#include "x0_i0_treasure"
|
|
#include "x2_inc_compon"
|
|
void main()
|
|
{
|
|
craft_drop_placeable();
|
|
CTG_CreateTreasure(TREASURE_TYPE_MED, GetLastOpener(), OBJECT_SELF);
|
|
if (GetLocalInt(OBJECT_SELF, "nStealing")== 1)
|
|
{
|
|
AdjustAlignment(GetLastOpener(), ALIGNMENT_CHAOTIC, 1);
|
|
}
|
|
}
|
|
|