Will SetPlaceableState work to lock it? Where would it fit into this script? Thanks for your time.
#include "utility_h"
#include "plt_arlathan_bldmster_plot"
#include "placeable_h"
#include "wrappers_h"
void main()
{
object oPlayer = GetMainControlled();
DisplayFloatyMessage(oPlayer, "spawn_chest", FLOATY_MESSAGE, 16777215, 20.0);
object oChest = UT_GetNearestObjectByTag(oPlayer, "ancient_elven_chest");
if (!IsObjectValid(oChest) && ( WR_GetPlotFlag( PLT_ARLATHAN_BLDMSTER_PLOT, JOURNAL_QUEST_ACCEPTED ) == TRUE ) )
{
object oArea = GetObjectByTag("ntb330ar_lair_of_the_undead");
location lChestLocation = Location(oArea, Vector(-26.1509, 294.53, -5.01709), 179.018395);
CreateObject(OBJECT_TYPE_PLACEABLE, R"ancient_elven_chest.utp", lChestLocation);
}
}
Modifié par Aislinn Trista, 30 avril 2010 - 12:54 .





Retour en haut







