Battledale_PRC8/_module/nss/fr_statue02.nss

27 lines
855 B
Plaintext
Raw Permalink Normal View History

#include "nw_i0_tool"
void main()
{
object oPlayer = GetEnteringObject();
object oPC=GetLastUsedBy();
if(!GetIsObjectValid(GetItemPossessedBy(GetPCSpeaker(), "jw_token_bane")))
{
SendMessageToPC(oPlayer, "You apply token of Bane on the Statue, and it lets you pass trough a hidden tunnel." );
DelayCommand(0.7,AssignCommand(oPC,JumpToObject(GetWaypointByTag("fr_cave_exit_01"),FALSE)));
}
else if(!GetIsObjectValid(GetItemPossessedBy(GetPCSpeaker(), "jw_token_cyric")))
{
SendMessageToPC(oPlayer, "You apply token of Cyric on the Statue, and it lets you pass trough a hidden tunnel." );
DelayCommand(0.7,AssignCommand(oPC,JumpToObject(GetWaypointByTag("fr_cave_exit_01"),FALSE)));
}
else
{
}
}