This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

OSSL Teleporter
#2
Danke Tron, ich werde das Script auf jeden Fall in unserem Grid testen. Dabei suche ich mir die entsprechenden Funktionen in der OSSL.ini (ausgelagert) mal heraus. Yes
Es freut mich, wenn man ein ernsthaftes Interesse am Forum hat.

Ich selbst nutze in unserem Grid seit langer Zeit dieses Script. Es funktioniert super von Region zu Region. Ein Teleport von Grid zu Grid (wenn nicht gesperrt) geht auch prima.

Code:
// Example osTeleportAgent Script
//
// Set Destination as described below, There are a Few Options depending on Application:
// IN GRID Teleport
// Destination = "1000,1000"; = Using In-Grid Map XXXX,YYYY coordinates
// Destination = "RegionName"; = Using RegionName
// HyperGrid Teleport (region must be HG Enabled)
// Destination = "TcpIpAddr:Port:RegionName"; = Using the Target/Destination IP Address
// Destination = "DNSname:Port:RegionName"; = Using the Target/Detination DNSname
// Note: RegionName is Optionally Specified to deliver Avatar to specific region in an instance.
//
// ========================================================================================
// === SET DESTINATION INFO HERE ===
//
string Destination = "Name der Zielregion"; // your target destination here (SEE NEXT LINES) Can Be
vector LandingPoint = <95,82,22>; // X,Y,Z landing point for avatar to arrive at
vector LookAt = <1,1,1>; // which way they look at when arriving
//
default
{
on_rez(integer start_param)
{
llResetScript();
}
changed(integer change) // something changed, take action
{
if(change & CHANGED_OWNER)
{
llResetScript();
}
else if (change & 256) // that bit is set during a region restart
{
llResetScript();
}
}

state_entry()
{
llWhisper(0, "Teleportal Active");
}

touch_start(integer num_detected)
{
key avatar = llDetectedKey(0);
llInstantMessage(avatar, "Teleporting you to : "+Destination);
osTeleportAgent(avatar, Destination, LandingPoint, LookAt);
}
}
All done!
Zitieren


Nachrichten in diesem Thema
OSSL Teleporter - von Tron Mcp - 19.10.2021, 20:19
RE: OSSL Teleporter - von ThunderTower - 20.10.2021, 09:56
RE: OSSL Teleporter - von Tron Mcp - 21.10.2021, 11:02

Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 2 Gast/Gäste