21 lines
501 B
Plaintext
21 lines
501 B
Plaintext
#include "x0_i0_partywide"
|
|
|
|
void main()
|
|
|
|
{
|
|
// Get the PC who is in this conversation.
|
|
object oPC = GetPCSpeaker();
|
|
|
|
// Give 10 experience (to party) to the PC.
|
|
GiveXPToAll(oPC, 10);
|
|
|
|
// Give the speaker some gold
|
|
GiveGoldToAll(oPC, 500);
|
|
|
|
// Remove items from the player's inventory
|
|
object oItemToTake;
|
|
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "karvianele");
|
|
if(GetIsObjectValid(oItemToTake) != 0)
|
|
ActionTakeItem(oItemToTake, GetPCSpeaker());
|
|
}
|