37 lines
969 B
Plaintext
37 lines
969 B
Plaintext
|
|
#include "x0_i0_partywide"
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
object oTarget;
|
|
object oSpawn;
|
|
|
|
// Get the PC who is in this conversation.
|
|
object oPC = GetPCSpeaker();
|
|
|
|
FadeToBlack(oPC);
|
|
FadeFromBlack(oPC);
|
|
|
|
// Give 5 XP (to party) to the PC.
|
|
GiveXPToAll(oPC, 5);
|
|
|
|
// Spawn some placeables.
|
|
oTarget = GetWaypointByTag("WP_SPn_MHBkt");
|
|
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "mhbkt", GetLocation(oTarget));
|
|
|
|
oTarget = GetWaypointByTag("WP_SPn_MHBkt2");
|
|
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "mhsck", GetLocation(oTarget));
|
|
|
|
// Close and lock "mhjldr1".
|
|
oTarget = GetObjectByTag("mhjldr1");
|
|
DelayCommand(2.0, SetLocked(oTarget, TRUE));
|
|
DelayCommand(2.0, AssignCommand(oTarget, ActionCloseDoor(oTarget)));
|
|
|
|
// Destroy objects (not fully effective until this script ends).
|
|
DelayCommand(2.1, DestroyObject(GetObjectByTag("mhjlr1")));
|
|
DelayCommand(2.1, DestroyObject(GetObjectByTag("tulmakiz1")));
|
|
}
|
|
|