Battledale_PRC8/_module/nss/jw_wiztakesbook.nss

21 lines
626 B
Plaintext
Raw Permalink Normal View History

//::///////////////////////////////////////////////
//:: FileName jw_wiztakesbook
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Script Wizard
//:: Created On: 06/09/2002 21:42:06
//:://////////////////////////////////////////////
void main()
{
// Give the speaker some gold
// Remove items from the player's inventory
object oItemToTake;
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "jw_elf_book");
if(GetIsObjectValid(oItemToTake) != 0)
{ DestroyObject(oItemToTake);
GiveGoldToCreature(GetPCSpeaker(), 100);
}
}