Lankhmar_PRC8/_module/nss/take_whead.nss

16 lines
390 B
Plaintext
Raw Permalink Normal View History

2025-04-03 12:54:47 -04:00
void main()
{
// Give the speaker some gold
GiveGoldToCreature(GetPCSpeaker(), 150);
// Give the speaker some XP
GiveXPToCreature(GetPCSpeaker(), 50);
// Remove items from the player's inventory
object oItemToTake;
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "wolfshead");
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
}