EN4_PRC8/_module/nss/hts2_entertrig.nss

16 lines
378 B
Plaintext
Raw Permalink Normal View History

#include "nw_i0_tool"
void main()
{
object oClicker = GetClickingObject();
object oTarget = GetTransitionTarget(OBJECT_SELF);
if (HasItem(oClicker,"hts2_key"))
{
SetAreaTransitionBMP(AREA_TRANSITION_RANDOM);
AssignCommand(oClicker,JumpToObject(oTarget));
} else {
SendMessageToPC(oClicker,"You must have a key to enter the abandoned sewers.");
}
}