/*
BasilMod::Teleport plugin.
2015 Basil Semuonov
Usage.
Installation
1) Place this file (config.cs) and (teleport.cs.dso) to folder "BasilMod/teleport/" of server root.
2) add this line to the end of file "main.cs" of the server:
exec("BasilMod/teleport/teleport.cs");
3) Fill configuration file with info
4) Start server
Configuration
1) Register teleports with command BasilMod::teleport_register, options explained below.
2) Start server.
3) If configuration is changed, you can reload config by executing this command at server:
exec("BasilMod/teleport/teleport.cs");
Available variables at config file:
1) $BasilMod::teleport::show_coords = false; - enable display of current coords on server startup
2) $BasilMod::teleport::enable = true; - enable teleports by default on server startup
Teleport registration;
BasilMod::teleport_register(
"Teleporting to GM Isle...", //Message to be shown prior to teleportation. "\n" is line separation. Message is center aligned. 4 lines allowed.
3, //Timeout, how long you should stay on the teleport. If you step out, you will evade teleportation
"1049 74 0", //Coordinates of source point. "X Y Z". Coords can be negative. To get coords, enable "show_coords" option, and write them done, while you are in GM mode.
1, //Radius of source point for activating teleportation.
117318659 //Target GeoID. You can get info from database, or from server console.
);
Available function from the server console:
1) BasilMod::teleport_enable(); - enable all registered teleports
2) BasilMod::teleport_disable(); - disable all registered teleports
3) BasilMod::teleport_showCoords(); - enable display of current coords for active GM characters
4) BasilMod::teleport_hideCoords(); - disable display of current coords for active GM characters
*/
$BasilMod::teleport::show_coords = false; //Show coords hint message for GM characters
$BasilMod::teleport::enable = True; //Enable on server startup
/*
//example teleports
BasilMod::teleport_register("\n\nTeleporting back to chest!", 3, "1049 74 0", 1, 117318659); //Register new teleport
BasilMod::teleport_register("\n\nTeleporting to GM Isle!", 3, "1049 65 0", 1, 117302941); //Register new teleport
BasilMod::teleport_register("\n\nTeleporting to MainLand!", 3, "1650 -41 0", 1, 117318659); //Register new teleport
*/
Teleport registration;
BasilMod::teleport_register(
"Teleporting to GM Isle...", //Message to be shown prior to teleportation. "\n" is line separation. Message is center aligned. 4 lines allowed.
3, //Timeout, how long you should stay on the teleport. If you step out, you will evade teleportation
"1049 74 0", //Coordinates of source point. "X Y Z". Coords can be negative. To get coords, enable "show_coords" option, and write them done, while you are in GM mode.
1, //Radius of source point for activating teleportation.
117318659 //Target GeoID. You can get info from database, or from server console.
);