Initial commit
Initial commit [v9.7]
This commit is contained in:
22
_module/nss/gvtk_bhmhide2.nss
Normal file
22
_module/nss/gvtk_bhmhide2.nss
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
// Give the speaker the items
|
||||
CreateItemOnObject("behearmr", GetPCSpeaker(), 1);
|
||||
|
||||
|
||||
// Remove some gold from the player
|
||||
TakeGoldFromCreature(2000, GetPCSpeaker(), FALSE);
|
||||
|
||||
// Remove items from the player's inventory
|
||||
object oItemToTake;
|
||||
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "behemothide");
|
||||
if(GetIsObjectValid(oItemToTake) != 0)
|
||||
ActionTakeItem(oItemToTake, GetPCSpeaker());
|
||||
|
||||
object oTarget;
|
||||
oTarget = GetObjectByTag("behemothide");
|
||||
|
||||
DestroyObject(oTarget, 1.0);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user