45 lines
1.1 KiB
Plaintext
45 lines
1.1 KiB
Plaintext
#include "x0_i0_partywide"
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
object oTarget;
|
|
int nInt;
|
|
object oItemToTake;
|
|
|
|
object oPC = GetPCSpeaker();
|
|
|
|
// Give 10 experience (to party) to the PC.
|
|
GiveXPToAll(oPC, 10);
|
|
|
|
// Remove items from the player's inventory
|
|
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "grylphkey");
|
|
if(GetIsObjectValid(oItemToTake) != 0)
|
|
ActionTakeItem(oItemToTake, GetPCSpeaker());
|
|
|
|
oTarget = GetObjectByTag("Traviss");
|
|
AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("WP_Traviss")));
|
|
|
|
oTarget = GetObjectByTag("Traviss");
|
|
nInt = GetObjectType(oTarget);
|
|
oTarget = GetObjectByTag("Traviss");
|
|
DestroyObject(oTarget, 3.0);
|
|
|
|
oTarget = GetObjectByTag("Omphal");
|
|
AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("WP_Traviss")));
|
|
oTarget = GetObjectByTag("Omphal");
|
|
|
|
nInt = GetObjectType(oTarget);
|
|
oTarget = GetObjectByTag("Omphal");
|
|
DestroyObject(oTarget, 3.0);
|
|
|
|
oTarget = GetObjectByTag("Larkog");
|
|
AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("WP_Traviss")));
|
|
oTarget = GetObjectByTag("Larkog");
|
|
nInt = GetObjectType(oTarget);
|
|
oTarget = GetObjectByTag("Larkog");
|
|
DestroyObject(oTarget, 3.0);
|
|
|
|
}
|