32 lines
1.2 KiB
Plaintext
32 lines
1.2 KiB
Plaintext
|
void main()
|
||
|
{
|
||
|
object oPC = GetClickingObject();
|
||
|
|
||
|
if (!GetIsPC(oPC)) return;
|
||
|
//PC must make a Will save of DC 35 inorder to go into the real mindflayer city.
|
||
|
if (WillSave(oPC, 35, SAVING_THROW_TYPE_MIND_SPELLS ))
|
||
|
{
|
||
|
object oTarget;
|
||
|
location lTarget;
|
||
|
FloatingTextStringOnCreature("The Illthids' attempt to trick you with an illusion fails.", oPC, FALSE);
|
||
|
oTarget = GetWaypointByTag("WP_fant_real1");
|
||
|
lTarget = GetLocation(oTarget);
|
||
|
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
|
||
|
AssignCommand(oPC, ClearAllActions());
|
||
|
AssignCommand(oPC, ActionJumpToLocation(lTarget));
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
object oTarget;
|
||
|
location lTarget;
|
||
|
oTarget = GetWaypointByTag("WP_fant_fake1");
|
||
|
lTarget = GetLocation(oTarget);
|
||
|
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
|
||
|
AssignCommand(oPC, ClearAllActions());
|
||
|
AssignCommand(oPC, ActionJumpToLocation(lTarget));
|
||
|
FloatingTextStringOnCreature("Your eyes blur for a moment, your head feels dizzy ...and you find yourself here.", oPC, FALSE);
|
||
|
SendMessageToPC(oPC, "What the...?!");
|
||
|
}
|
||
|
}
|
||
|
|