<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.prime-wow.com/index.php?action=history&amp;feed=atom&amp;title=ActivatePortal</id>
	<title>ActivatePortal - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.prime-wow.com/index.php?action=history&amp;feed=atom&amp;title=ActivatePortal"/>
	<link rel="alternate" type="text/html" href="https://wiki.prime-wow.com/index.php?title=ActivatePortal&amp;action=history"/>
	<updated>2026-06-07T09:18:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.prime-wow.com/index.php?title=ActivatePortal&amp;diff=7&amp;oldid=prev</id>
		<title>Xordac: Created page with &quot;{{bug}}Send a player&#039;s client to a new server, where the player&#039;s character will log in. &lt;nwscript&gt; void ActivatePortal(     object oTarget,     string sIPaddress = &quot;&quot;,     st...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.prime-wow.com/index.php?title=ActivatePortal&amp;diff=7&amp;oldid=prev"/>
		<updated>2017-05-23T11:52:03Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{bug}}Send a player&amp;#039;s client to a new server, where the player&amp;#039;s character will log in. &amp;lt;nwscript&amp;gt; void ActivatePortal(     object oTarget,     string sIPaddress = &amp;quot;&amp;quot;,     st...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{bug}}Send a player&amp;#039;s client to a new server, where the player&amp;#039;s character will log in.&lt;br /&gt;
&amp;lt;nwscript&amp;gt;&lt;br /&gt;
void ActivatePortal(&lt;br /&gt;
    object oTarget,&lt;br /&gt;
    string sIPaddress = &amp;quot;&amp;quot;,&lt;br /&gt;
    string sPassword = &amp;quot;&amp;quot;,&lt;br /&gt;
    string sWaypointTag = &amp;quot;&amp;quot;,&lt;br /&gt;
    int bSeamless = FALSE&lt;br /&gt;
);&lt;br /&gt;
&amp;lt;/nwscript&amp;gt;&lt;br /&gt;
{{DISPLAYTITLE:ActivatePortal(object, string, string, string, int)}}&lt;br /&gt;
===Parameters===&lt;br /&gt;
;oTarget&lt;br /&gt;
:PC of the client to transfer.&lt;br /&gt;
&lt;br /&gt;
;sIPaddress&lt;br /&gt;
:DNS name or IP address (and optional port) of new server. (Default: &amp;quot;&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
;sPassword&lt;br /&gt;
:Password for login to the destination server. (Default: &amp;quot;&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
;sWaypointTag&lt;br /&gt;
:If set, arriving PCs will jump to this waypoint after appearing at the start location. (Default: &amp;quot;&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
;bSeamless&lt;br /&gt;
:If TRUE, the transition will be made &amp;#039;seamless&amp;#039;, and the PC will not get a dialogue box on transfer. (Default: FALSE)&lt;br /&gt;
&lt;br /&gt;
===Description===&lt;br /&gt;
ActivatePortal() attempts to redirect a client to a new server (for example when hopping about in connected semi-persistent worlds).&lt;br /&gt;
&lt;br /&gt;
sIPaddress can be a numeric IP Address (e.g. 192.168.0.84) or an alphanumeric DNS name (&amp;quot;www.bioware.com&amp;quot;), and can also include a port setting (192.168.0.84:5121 or &amp;quot;www.bioware.com:5121&amp;quot;). If no port is specified, it will default to 5121.&lt;br /&gt;
&lt;br /&gt;
sPassword is the login password for the destination server &lt;br /&gt;
&lt;br /&gt;
If sWaypointTag is set, after portalling the character will be moved to this waypoint, if it exists.&lt;br /&gt;
&lt;br /&gt;
If bSeamless is set to TRUE, the client will not be prompted with the information window telling them about the server, and they will not be allowed to save a copy of their character (if they are using a local vault character).&lt;br /&gt;
&lt;br /&gt;
===Remarks===&lt;br /&gt;
This works for portalling within a module, too, but briefly pops up a &amp;#039;logging in&amp;#039; window - even in &amp;#039;seamless&amp;#039; mode.&lt;br /&gt;
&lt;br /&gt;
The non-seamless popup is heinously ugly, and says nothing about what&amp;#039;s going on. You may want to provide some information to a PC before portalling them if you use the default option.&lt;br /&gt;
&lt;br /&gt;
===Known Bugs===&lt;br /&gt;
Waypoint tags must be all upper-case for the waypoint jump to work on arrival.&lt;br /&gt;
&lt;br /&gt;
Leaving a trigger by ActivatePortal does not fire its [[OnExit]] event. An Area&amp;#039;s OnExit is (correctly) fired.&lt;br /&gt;
&lt;br /&gt;
===Version===&lt;br /&gt;
1.22&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&amp;lt;nwscript&amp;gt;&lt;br /&gt;
// In the OnUsed of a statue&lt;br /&gt;
// Sends the using PC to another (fictional) server with player password&lt;br /&gt;
// &amp;quot;mumb0Jumb0&amp;quot;, and has the PC appear at waypoint &amp;quot;ISK_WP_PORTAL&amp;quot;. The&lt;br /&gt;
// player will not be notified that they&amp;#039;ve moved servers.&lt;br /&gt;
#include &amp;quot;nw_i0_generic&amp;quot;&lt;br /&gt;
void main() &lt;br /&gt;
{&lt;br /&gt;
     object oPC = GetLastUsedBy();&lt;br /&gt;
     if (!GetIsPC(PC)) return;&lt;br /&gt;
     ActivatePortal(oPC, &amp;quot;nwn.iskander.tv:5432&amp;quot;, &amp;quot;mumb0Jumb0&amp;quot;, &amp;quot;ISK_WP_PORTAL&amp;quot;, TRUE);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nwscript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===See Also===&lt;br /&gt;
{| class=&amp;quot;seealso&amp;quot;&lt;br /&gt;
| width=&amp;quot;1px&amp;quot; align=&amp;quot;right&amp;quot; valign=&amp;quot;top&amp;quot; | &amp;lt;font color=&amp;quot;gray&amp;quot;&amp;gt;functions: &amp;lt;/font&amp;gt;&lt;br /&gt;
|[[ActionJumpToLocation | ActionJumpToLocation ]]&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;1px&amp;quot; align=&amp;quot;right&amp;quot; valign=&amp;quot;top&amp;quot; | &amp;lt;font color=&amp;quot;gray&amp;quot;&amp;gt;events: &amp;lt;/font&amp;gt;&lt;br /&gt;
|[[OnClientLeave|OnClientLeave Event]]&lt;br /&gt;
|}&amp;lt;br /&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;gray&amp;quot;&amp;gt;author: Iskander Merriman, editor: Dave Robinson&amp;lt;/font&amp;gt;&lt;br /&gt;
[[Category:Functions]]&lt;br /&gt;
[[Category:Area_Functions]]&lt;br /&gt;
[[Category:Module_Functions]]&lt;br /&gt;
[[Category:Movement_Functions]]&lt;br /&gt;
[[Category:PC_Only_Functions]]&lt;br /&gt;
[[Category:Server_Functions]]&lt;/div&gt;</summary>
		<author><name>Xordac</name></author>
	</entry>
</feed>