20 lines
549 B
Plaintext
20 lines
549 B
Plaintext
#include "colors_inc"
|
|
|
|
void LockAndClose(object oTarget)
|
|
{
|
|
SetLocked(oTarget, TRUE);
|
|
AssignCommand(oTarget, ActionCloseDoor(oTarget));
|
|
}
|
|
|
|
void main()
|
|
{
|
|
object oPC = OBJECT_SELF;
|
|
object oTarget = GetLocalObject(oPC, "LOCKPICK_TEMP_UNLOCKING_OBJECT");
|
|
|
|
FloatingTextStringOnCreature(ColorTokenPurple() + "Lockpicking complete! The object is now unlocked." + ColorTokenEnd(), oPC, FALSE);
|
|
SetLocked(oTarget, FALSE);
|
|
DelayCommand(120.0, LockAndClose(oTarget));
|
|
|
|
DeleteLocalObject(oPC, "LOCKPICK_TEMP_UNLOCKING_OBJECT");
|
|
}
|