Initial commit
Initial commit [v9.7]
This commit is contained in:
20
_module/nss/take_wolfshead.nss
Normal file
20
_module/nss/take_wolfshead.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
#include "x0_i0_partywide"
|
||||
|
||||
void main()
|
||||
|
||||
{
|
||||
// Get the PC who is in this conversation.
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
// Give 5 experience (to party) to the PC.
|
||||
GiveXPToAll(oPC, 5);
|
||||
|
||||
// Give 5 experience (to party) to the PC.
|
||||
GiveGoldToAll(oPC, 150);
|
||||
|
||||
// Remove items from the player's inventory
|
||||
object oItemToTake;
|
||||
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "wolfshead");
|
||||
if(GetIsObjectValid(oItemToTake) != 0)
|
||||
ActionTakeItem(oItemToTake, GetPCSpeaker());
|
||||
}
|
||||
Reference in New Issue
Block a user