Lankhmar_PRC8/_module/nss/give_krat1.nss

36 lines
749 B
Plaintext
Raw Permalink Normal View History

2025-04-03 12:54:47 -04:00
#include "x0_i0_partywide"
void main()
{
object oTarget;
// Get the PC who is in this conversation.
object oPC = GetPCSpeaker();
// Give 5 experience (to party) to the PC.
GiveXPToAll(oPC, 5);
// Close and lock "kels_chest".
oTarget = GetObjectByTag("kels_chestxz");
AssignCommand(oTarget, ActionCloseDoor(oTarget));
SetLocked(oTarget, TRUE);
// Give the speaker some gold
GiveGoldToAll(oPC, 500);
// Give the speaker the items
CreateItemOnObject("nw_it_mpotion006", GetPCSpeaker(), 1);
// Give the speaker the items
CreateItemOnObject("nw_it_mpotion006", GetPCSpeaker(), 1);
// Give the speaker the items
CreateItemOnObject("nw_it_mpotion006", GetPCSpeaker(), 1);
}