24 lines
397 B
Plaintext
24 lines
397 B
Plaintext
|
|
||
|
#include "nw_i0_tool"
|
||
|
#include "x0_i0_partywide"
|
||
|
|
||
|
void main()
|
||
|
|
||
|
{
|
||
|
|
||
|
object oItemToTake;
|
||
|
|
||
|
object oPC = GetPCSpeaker();
|
||
|
|
||
|
// Give 5 experience (to party) to the PC.
|
||
|
GiveXPToAll(oPC, 5);
|
||
|
|
||
|
// Remove items from the player's inventory
|
||
|
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "lprdmlt");
|
||
|
if(GetIsObjectValid(oItemToTake) != 0)
|
||
|
DestroyObject(oItemToTake);
|
||
|
|
||
|
CreateItemOnObject("golamulet", oPC);
|
||
|
|
||
|
}
|