19 lines
463 B
Plaintext
19 lines
463 B
Plaintext
#include "x0_i0_partywide"
|
|
|
|
|
|
void main()
|
|
{
|
|
// Get the PC who is in this conversation.
|
|
object oPC = GetPCSpeaker();
|
|
|
|
// Give 50 gold (to party) to the PC.
|
|
GiveGoldToAll(oPC, 2000);
|
|
GiveXPToAll(oPC, 5);
|
|
|
|
// Remove items from the player's inventory
|
|
object oItemToTake;
|
|
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "redcloakofpro");
|
|
if(GetIsObjectValid(oItemToTake) != 0)
|
|
ActionTakeItem(oItemToTake, GetPCSpeaker());
|
|
}
|