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.
26 lines
1003 B
Plaintext
26 lines
1003 B
Plaintext
void main()
|
|
{
|
|
int i;
|
|
//object oThisArea = GetArea(OBJECT_SELF);
|
|
object oPC = GetNearestCreature (CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC, OBJECT_SELF, 1);
|
|
//object oOgre;
|
|
object oPortcullis1 = GetNearestObjectByTag("nk_am2_ogreport1", OBJECT_SELF, 1);
|
|
object oPortcullis2 = GetNearestObjectByTag("nk_am2_ogreport2", OBJECT_SELF, 1);
|
|
//SetLocked(oPortcullis1, 0);
|
|
//SetLocked(oPortcullis2, 0);
|
|
AssignCommand(oPortcullis1, ActionCloseDoor(oPortcullis1));
|
|
AssignCommand(oPortcullis2, ActionCloseDoor(oPortcullis2));
|
|
SetLocked(oPortcullis1, 1);
|
|
SetLocked(oPortcullis2, 1);
|
|
DelayCommand(20.0, ActionCloseDoor(OBJECT_SELF));
|
|
DelayCommand(30.0, SignalEvent(OBJECT_SELF, EventUserDefined(1001)));
|
|
|
|
//for (i = 1; i <= 4; i++)
|
|
// {
|
|
//oOgre = GetNearestCreature(CREATURE_TYPE_REPUTATION, REPUTATION_TYPE_ENEMY, oPC, i, CREATURE_TYPE_RACIAL_TYPE, RACIAL_TYPE_GIANT);
|
|
//AssignCommand (oOgre, ActionAttack(oPC));
|
|
//}
|
|
}
|
|
|
|
|