27 lines
855 B
Plaintext
27 lines
855 B
Plaintext
|
#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
|
||
|
{
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|