22 lines
465 B
Plaintext
22 lines
465 B
Plaintext
|
|
||
|
#include "x0_i0_partywide"
|
||
|
|
||
|
void main()
|
||
|
|
||
|
{
|
||
|
// Get the creature who triggered this event.
|
||
|
object oPC = GetPCSpeaker();
|
||
|
|
||
|
// Give 5 XP (to party) to the PC.
|
||
|
GiveXPToAll(oPC, 5);
|
||
|
|
||
|
SetLocalString(oPC, "cbsbnt1", "1");
|
||
|
|
||
|
// Give the speaker the items
|
||
|
CreateItemOnObject("crbtdggr1", GetPCSpeaker(), 1);
|
||
|
|
||
|
// Destroy an object (not fully effective until this script ends).
|
||
|
DelayCommand(4.0, DestroyObject(GetObjectByTag("cbsbnt1")));
|
||
|
|
||
|
}
|