25 lines
581 B
Plaintext
25 lines
581 B
Plaintext
|
#include "mn_i_pwfunctions"
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
object oPC = GetItemActivator();
|
||
|
|
||
|
string teleport2 = GetLocalString(OBJECT_SELF, TeleportVar(OBJ_TELEPORT_DESTINATION, 2) );
|
||
|
|
||
|
Debug("Inside teleport script");
|
||
|
|
||
|
if (teleport2 == "")
|
||
|
{
|
||
|
// Only one destination
|
||
|
Debug("One destination");
|
||
|
DoTeleport(oPC, OBJECT_SELF);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
// Multiple destinations, so should be handled by teleportation portal.
|
||
|
Debug("Open conversation");
|
||
|
AssignCommand(oPC, ActionStartConversation( oPC, "conv_std_tele", TRUE, FALSE ) );
|
||
|
}
|
||
|
|
||
|
}
|