here is an example Lua script, useful for defining areas. An area can be defined by typing "/selectarea" in the chat, then selecting the area, and finally typing "/createarea name" (you can choose a custom name of course) in the chat.
This script offers some basic things (see updated post below) and serves only as an example, now it's your turn to do something useful with it
To load the script, simply extract the content of the zip-archive to your "scripts" folder of the game (with other words: the "AreaProtection" folder inside the zip must be inside "scripts" of your Rising World folder). The script will be automatically loaded then.
If there is no "scripts" folder in your game directory, simply create it.
IMPORTANT: If you want to update your existing script, make sure you don't delete or overwrite the file "scriptDatabase.db" inside the "AreaProtection" folder. This file contains all saved areas, so if you delete it, all existing areas are gone