- Awards
- 38
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.Installation
- Open data/movements/movements.xml.
- Add
XML:
Código:<movevent event="StepIn" actionid="4236" script="waypoints.lua" />
- Open data/creaturescripts/creaturescripts.xml.
- Add
XML:
Código:<event type="ModalWindow" name="WaypointsModal" script="modal_windows.lua"/>
- Download waypoints.rar from attachment at the bottom of this post.
- Copy waypoints.lua to data/movements/scripts/waypoints.lua.
- Copy modal_windows.lua to data/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 available
name - name that will be shown on the list and when waypoint is activated
position - position of that tile on the map, this is where player will be teleported
Changelog
[1.0.0] - 2019-03-22
- Release version
Credits: Oen432