Players can run over a pile of treasure (plunder) and increase their plunder count.
- Uses livescripts to send a packet to the client, and the client has an addon that can receive and process the packets (update the plunder score). Credit to https://github.com/TesterWoWDev/Example-Messaging and https://github.com/magic62/magic-core/commit/8d1c0e974d0c83d174dd0a39abc3f3ee1e1480e2#diff-46e95b3ec2fe1641ba4699da32530ceb267eadc49c76104fd9f5bf066fb09fb4R6 for demonstrating usage of packets and addons.
- Demonstrates how to check for a condition in an OnUpdate loop.
- Demonstrates how to expose functionality via callbacks, e.g. OnPlayerNearPlunder()
Assuming you have a functioning TSWoW setup, move each of the /addon /datascripts /livescripts and /shared folders into your own.
Be sure to run build addon, build data, build livescripts --no-inline