16 lines
378 B
Plaintext
16 lines
378 B
Plaintext
|
#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.");
|
||
|
}
|
||
|
}
|