BasilMod::Teleport mod allows you to setup teleportation on your server. Safely transfer players from one place to another.
I decided to split initial mod into two parts. This teleportation mods will be server-only modification, so your players would not need to install anything special to play on your server. Another part will be called "Taxi" and will require client side installation, to travel between designed taxi spots, for free, or for some coins.
Dont forget to decorate place of departure and arrival, to make it look realistic, dont you crates as I do!
Test setup from the video is shown as example at config.cs file.
Current coords shown to the GM player(s) for easier setup.
How it works.
You configure points of departure and arrival, text notification to be shown prior to teleportation, and teleportation timeout. If player steps away from departure point within timeout(while its not expired), he will not be teleported.
BasilMod::teleport_register( "Traveling 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. 2, //Radius of source point for activating teleportation. 117318659 //Target GeoID. You can get info from database, or from server console. );
Radius is measured as distance between 2 vectors. So you can organize teleport which works only in certain rooms of the building.
Available function from the server console:
BasilMod::teleport_enable(); - enable all registered teleports
BasilMod::teleport_disable(); - disable all registered teleports
BasilMod::teleport_showCoords(); - enable display of current coords for active GM characters
BasilMod::teleport_hideCoords(); - disable display of current coords for active GM characters
Last edited by Custodian on 22 Jun 2016, 13:34, edited 2 times in total.
MacDante wrote:Only one stupid question: Where i find client side modification for GM to see coordinations ?
Hey MacDante,
The command to run, for the GM to see the coordinates, is actually in the server console
Edit: sometimes the Coordinates will disappear off your screen, so you need to go back to the server console and enter the hideCoords and showCoords commands
MacDante wrote:And next one in this script, is possibility add pay option in silver, gold or bronze coins or else materials to use telepots like HORSETAXI?
No.
MacDante wrote:Only one stupid question: Where i find client side modification for GM to see coordinations ?
Please read description carefully. There is no client-side modification for this mod. To show coordinates, you may setup $BasilMod::teleport::show_coords variable to show them by default when server starts, or execute BasilMod::teleport_showCoords(); at server console while server is running.
Mod has been updated, redownload mod files. FIX: If you set variable "show_coords" at config file, coords should be displayed by default when you enter GM mode.
Sorry, am still pretty new to this. I am seeming to have issues with the mod, and the rest zone one. It says to end these commands into the server console, but when i do so it says Unable to find function for BasilMod::teleport_register. Am i entering this incorrectly?
BasilMod::teleport_register("\n\nTeleporting to The Carrock", 3, "1732 350 1008", 1, 117316608); //Register new teleport what im using.
I use control ~ and type it in. it does nothing.
Am i to run this as a query or?....
Thank you for your time, I love all the mods, they are awesome!
SllowMo wrote:Sorry, am still pretty new to this. I am seeming to have issues with the mod, and the rest zone one. It says to end these commands into the server console, but when i do so it says Unable to find function for BasilMod::teleport_register. Am i entering this incorrectly?
BasilMod::teleport_register("\n\nTeleporting to The Carrock", 3, "1732 350 1008", 1, 117316608); //Register new teleport what im using.
I use control ~ and type it in. it does nothing.
Am i to run this as a query or?....
Thank you for your time, I love all the mods, they are awesome!
This is serverside only, so you launch it and run it on the server only not the client.
SllowMo wrote:Sorry, am still pretty new to this. I am seeming to have issues with the mod, and the rest zone one. It says to end these commands into the server console, but when i do so it says Unable to find function for BasilMod::teleport_register. Am i entering this incorrectly?
BasilMod::teleport_register("\n\nTeleporting to The Carrock", 3, "1732 350 1008", 1, 117316608); //Register new teleport what im using.
I use control ~ and type it in. it does nothing.
Am i to run this as a query or?....
Thank you for your time, I love all the mods, they are awesome!
This is serverside only, so you launch it and run it on the server only not the client.
Okay, so do i run as a query on SQL Database? Im not sure what you mean by server side. I get that I have to do it on the server, Im just not sure how to do the execute commands without restarting the server.
Sorry, just not fully understanding. THanks for your time!
SllowMo wrote:Okay, so do i run as a query on SQL Database? Im not sure what you mean by server side. I get that I have to do it on the server, Im just not sure how to do the execute commands without restarting the server.
Sorry, just not fully understanding. THanks for your time!
There is nothing to do with SQL database.
Serverside mod means, that mod should be installed and enabled only at the game server. Your player should not install anything. Commands should be executed at server console:
Spoiler
If you rent your server, ask your host service provider for LiF server console access.
Make sure you are using latest mdos version, re-download it, if you are doubt. Add teleport mod to server main.cs. Edit config.cs of the mod. After adding those lines to you config
First of all thank you for your great work on those mods - very detailed and throughout approach.
I am very new to this so dont judge me harshly
However i have been testing teleport mod along some of your other mods and tried to make a "lift" to get to the top of castle keep obviously, however the geo id taken from the item on the roof of the keep would simply send me into one the rooms of the keep half way
my question is will it be possible to implement geo altitude into BasilMod::Teleport, or maybe there is a simpler approach?
BasilMod::teleport_register( "Traveling 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. 2, //Radius of source point for activating teleportation. "1080 80 1056" //Target GeoID. or "X Y Z" coords. You can get info from database, or from server console. );
Stoned_Peasant wrote:my question is will it be possible to implement geo altitude into BasilMod::Teleport, or maybe there is a simpler approach?
Download latest version, and specify coords of your roof.
Last edited by Custodian on 22 Jun 2016, 13:45, edited 1 time in total.
Madmax0207 wrote:After restart all my teleport are not available. Must i set the points after restart again? or whats happend?
Point configuration is loaded from config file. Make sure that mod is enabled on startup, and you added all your points to your configuration file.
Ok
Main.cs ist added. config file mh. that means i must put the teleport_register also in the config file. and after restart the config file load the register again. right?
Koreno.gamer wrote:When I run the command exec("BasilMod/teleport/teleport.cs"); I get the message that there is a missing file "BasilMod/teleport/teleport.cs"
You should add this command to your server main.cs file, or run it command at server console. Here is an example how it looks like: server console:
Spoiler
Koreno.gamer wrote:Well of course the file is missing, the file in the teleport folder is called teleport.cs.dso
File is named "teleport.cs.dso", and exec command contains "teleport.cs" without ".dso" suffix, this is correct.
Koreno.gamer wrote:When i try to run the command BasilMod::teleport_showCoords(); I get the message that the function does not exist.