Initial upload. PRC8 has been added. Module compiles, PRC's default AI & treasure scripts have been integrated. Started work on top hak for SLA / Ability / Scripting modifications.
31 lines
661 B
Plaintext
31 lines
661 B
Plaintext
void main()
|
|
{
|
|
object oObject;
|
|
|
|
if (GetLocalInt(OBJECT_SELF,"NW_L_AMION") != 1)
|
|
{
|
|
PlayAnimation(ANIMATION_PLACEABLE_ACTIVATE);
|
|
|
|
SetLocalInt(OBJECT_SELF,"NW_L_AMION",1);
|
|
|
|
oObject=GetNearestObjectByTag("fr_tavern_rdoor03");
|
|
AssignCommand(oObject,SetLocked(oObject,FALSE));
|
|
AssignCommand(oObject,ActionOpenDoor(oObject));
|
|
|
|
|
|
}
|
|
// else
|
|
// {
|
|
|
|
// PlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE);
|
|
|
|
// SetLocalInt(OBJECT_SELF,"NW_L_AMION",0);
|
|
|
|
// oObject=GetNearestObjectByTag("fr_tavern_rdoor03");
|
|
// AssignCommand(oObject,ActionCloseDoor(oObject));
|
|
// AssignCommand(oObject,SetLocked(oObject,TRUE));
|
|
|
|
// }
|
|
|
|
}
|