oen432
Legendary OT User
Waypoints
If you find waypoint tile and step on it, you will unlock access to that waypoint. If you step on a waypoint that you have already unlocked then window with list of all of your unlocked waypoints will show and you will be able to teleport to chosen waypoint.
If you find waypoint tile and step on it, you will unlock access to that waypoint. If you step on a waypoint that you have already unlocked then window with list of all of your unlocked waypoints will show and you will be able to teleport to chosen waypoint.
Installation
- Open
data/movements/movements.xml
. - Add
XML:
<movevent event="StepIn" actionid="4236" script="waypoints.lua" />
- Open
data/creaturescripts/creaturescripts.xml
. - Add
XML:
<event type="ModalWindow" name="WaypointsModal" script="modal_windows.lua"/>
- Download
waypoints.rar
from attachment at the bottom of this post. - Copy
waypoints.lua
todata/movements/scripts/waypoints.lua
. - Copy
modal_windows.lua
todata/creaturescripts/scripts/modal_windows.lua
.
Configuration
Every configuration is in - data/movements/scripts/waypoints.lua
.WINDOW_ID
- ignore that.BUTTON_ACCEPT
- ignore that.BUTTON_CLOSE
- ignore that.WAYPOINTS_STORAGE
- base storage id, change if already in use (make sure that from WAYPOINTS_STORAGE to WAYPOINTS_STORAGE + Number of waypoints aren't used as a storage for anything else).WAYPOINTS
- list of waypoints availablename
- name that will be shown on the list and when waypoint is activatedposition
- position of that tile on the map, this is where player will be teleportedChangelog
[1.0.0] - 2019-03-22- Release version
Attachments
-
waypoints-1_0_0.rar1.4 KB · Views: 274 · VirusTotal