Installation Instructions.txt

main 39 lines · 2.4 KB Raw
Alex Alex Commit Initial commit 01/10/2026 09:20
1Znote AAC server scripts for Canary (opentibiabr) and otservbr-global.
2
3WHERE TO PUT THEM
4 Canary: data/scripts/ (or data-otservbr-global/scripts/ on
5 an otservbr-global data pack)
6 otservbr-global: data-otservbr-global/scripts/
7 Drop the .lua files in there (any sub-folder is fine) and restart the server
8 or run "/reload scripts".
9
10FILES
11 znoteshop_talkaction.lua !shop - player pulls their website shop orders.
12 znoteshop_globalevent.lua Auto-delivers the same orders every 30s to online
13 buyers standing in a protection zone. Use BOTH, or
14 just the talkaction for manual delivery only.
15 znote_login.lua Syncs SERVER_NAME / IP / GAME_PORT from config.lua
16 into znote_global_storage for the AAC login web
17 service. Needs an up-to-date Znote AAC.
18 powergamers.lua Daily exp / online-time history for powergamers.php.
19 Run the ALTER TABLE at the top of the file once.
20 player_history.lua Per-logout skill snapshots (auto-creates its table).
21 sync_outfit.lua Marks which full outfits a character owns so
22 characterprofile.php can show them. storage_value
23 must match $config['EQ_shower'] in the AAC. The
24 look type lists are the complete Female / Male sets
25 from canary data/XML/outfits.xml (127 / 125).
26
27COMPATIBILITY NOTES
28 - Every Canary / otservbr-global protocol (10.98+: otservbr-global 12.x,
29 Canary 13.x, and the current 15.x) supports outfits, addons, mounts and
30 houses, so the shop scripts handle order types 1, 5, 6 and 7 unconditionally
31 - no Game.getClientVersion() guard.
32 - Canary / otservbr-global already log deaths to `player_deaths` and hand out
33 first items on their data pack, so the TFS playerdeath.lua / first_items.lua
34 from Lua/TFS_10 are NOT included here - use the engine's own systems.
35 - House order type 7 uses house:setHouseOwner(guid, true) (the Canary name).
36 On plain TFS use Lua/TFS_10 instead - that build calls house:setOwnerGuid().
37 - Message constants used: MESSAGE_EVENT_ADVANCE (success), MESSAGE_FAILURE
38 (blocked), MESSAGE_STATUS (info). Swap them if your build differs.
39
Top