24 lines
498 B
Plaintext
24 lines
498 B
Plaintext
|
|
||
|
#include "x0_i0_partywide"
|
||
|
|
||
|
void main()
|
||
|
|
||
|
{
|
||
|
object oTarget;
|
||
|
|
||
|
// Get the PC who is in this conversation.
|
||
|
object oPC = GetPCSpeaker();
|
||
|
|
||
|
// Give 5 experience (to party) to the PC.
|
||
|
GiveXPToAll(oPC, 5);
|
||
|
|
||
|
// Unlock and open "mhjldr1".
|
||
|
oTarget = GetObjectByTag("mhjldr1");
|
||
|
SetLocked(oTarget, FALSE);
|
||
|
AssignCommand(oTarget, ActionOpenDoor(oTarget));
|
||
|
|
||
|
// Destroy an object (not fully effective until this script ends).
|
||
|
DestroyObject(GetObjectByTag("mhrpn1"));
|
||
|
}
|
||
|
|