Lankhmar_PRC8/_module/nss/gvtk_bhmhide.nss

23 lines
538 B
Plaintext
Raw Permalink Normal View History

2025-04-03 12:54:47 -04:00
void main()
{
// Give the speaker the items
CreateItemOnObject("behemothshlr", GetPCSpeaker(), 1);
// Remove some gold from the player
TakeGoldFromCreature(3000, GetPCSpeaker(), FALSE);
// Remove items from the player's inventory
object oItemToTake;
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "behemothshell");
if(GetIsObjectValid(oItemToTake) != 0)
ActionTakeItem(oItemToTake, GetPCSpeaker());
object oTarget;
oTarget = GetObjectByTag("behemothshell");
DestroyObject(oTarget, 1.0);
}