17 lines
435 B
Plaintext
17 lines
435 B
Plaintext
|
void main()
|
||
|
{
|
||
|
object oSelf = OBJECT_SELF;
|
||
|
|
||
|
// Get the PC who is in this conversation.
|
||
|
object oPC = GetPCSpeaker();
|
||
|
|
||
|
effect eDeath = EffectDeath(FALSE, FALSE);
|
||
|
|
||
|
// Give 50 experience to the PC.
|
||
|
GiveXPToCreature(oPC, 50);
|
||
|
CreateItemOnObject("itm_deckofcards", oPC);
|
||
|
|
||
|
// Destroy an object (not fully effective until this script ends).
|
||
|
ApplyEffectToObject(DURATION_TYPE_INSTANT, eDeath, oSelf, 0.0f);
|
||
|
}
|