Initial commit
Initial commit [v9.7]
This commit is contained in:
23
_module/nss/gv_tk_ilthmartfd.nss
Normal file
23
_module/nss/gv_tk_ilthmartfd.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
#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 the speaker some gold
|
||||
GiveGoldToAll(oPC, 150);
|
||||
|
||||
// Give the speaker the items
|
||||
CreateItemOnObject("healingelixir10", GetPCSpeaker(), 3);
|
||||
|
||||
// Remove items from the player's inventory
|
||||
object oItemToTake;
|
||||
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "ilthmartfod");
|
||||
if(GetIsObjectValid(oItemToTake) != 0)
|
||||
DestroyObject(oItemToTake);
|
||||
}
|
||||
Reference in New Issue
Block a user