#author("2025-08-22T06:37:05+00:00","default:yoya","yoya")
#author("2025-09-12T01:17:56+00:00","default:yoya","yoya")
[[FF11]] | [[Windower]] | [[Lua]]

- https://github.com/Windower/Lua/wiki
--  https://github.com/Windower/Lua/wiki/Functions

- https://github.com/Windower/Lua/wiki/Game-ID-Reference

- [[Windower/Lua/Item]] (アイテム) ([https://raw.githubusercontent.com/Windower/Resources/master/resources_data/items.lua raw data])

- https://github.com/Windower/Lua/wiki/FFXI-Functions#windowerffxiget_abilities
- https://github.com/Windower/Lua/wiki/FFXI-Functions#windowerffxiget_party

- https://docs.windower.net/commands/keymapping/

- [[Windower/Lua/Warp]] (移動)

- [[Windower/Lua/Item]] (アイテム)

- [[Windower/Lua/Bags]] (バッグ、収納)
- [[Windower/Lua/Trade]] (アイテム交換)
- [[Windower/Lua/Equip]] (装備、武器、装束)

- [[Windower/Lua/Sparks]] エミネンス
- [[Windower/Lua/Unity]] ユニティポイント

- [[Windower/Lua/Sell]] (売る)
- [[Windower/Lua/Buy]] (買う)

- [[Windower/Lua/Buff]] (強化)

- [[Windower/Lua/Pet]] (ペット)
- [[Windower/Lua/NPC]] 

- [[Windower/Lua/Party]] (パーティ情報)

- [[Windower/Lua/Fight]] (戦闘)
- [[Windower/Lua/Quest]] クエスト
- [[Windower/Lua/Packet]] (サーバ通信)
- [[Windower/Lua/IPC]] (内部通信)
- [[Windower/Lua/File]] ファイル操作

#contents

* バージョン [#vcfc845f]

- WindowerのLuaは特殊バージョン
--  https://yamamikan.blogspot.com/2018/12/windowerlua_11.html
>
Windower Lua APIのページには上記の通り書かれている。Lua ver.5.1を改造したものを使っているとのこと。したがって、一般的なLua実行環境でWindower4\Addons\libs\Tables.luaとかWindower固有の機能を使わない基本的なスクリプトのテストをしようとしてもエラーがでてしまいテスト出来ない。

* 入門 [#j7eceb10]

- Lua Guide for programmers
--   https://forums.windower.net/index.php@sharelink=download%3BaHR0cDovL2ZvcnVtcy53aW5kb3dlci5uZXQvaW5kZXgucGhwPy90b3BpYy82OTctbHVhLWd1aWRlLWZvci1wcm9ncmFtbWVycy8,%3BTHVhIEd1aWRlIGZvciBwcm9ncmFtbWVycw,,.html
--  Here are some of my major dislikes with the language: ([[Lua/Defact#windower]])
---  https://forums.windower.net/index.php@sharelink=download%3BaHR0cDovL2ZvcnVtcy53aW5kb3dlci5uZXQvaW5kZXgucGhwPy90b3BpYy82OTctbHVhLWd1aWRlLWZvci1wcm9ncmFtbWVycy8,%3BTHVhIEd1aWRlIGZvciBwcm9ncmFtbWVycw,,.html#entry4230

* 定義 [#y813f902]

- Status
--  https://github.com/Windower/Resources/blob/master/resources_data/statuses.lua

* Enter入力 [#p1e3200d]

- https://forums.windower.net/index.php@sharelink=download%3BaHR0cDovL2ZvcnVtcy53aW5kb3dlci5uZXQvaW5kZXgucGhwPy90b3BpYy82MTQtbHVhLWhvdy10by1zZW5kLWEtc3BlY2lmaWMta2V5LXRvLWNsaWVudC1yZWctZW50ZXItb3Iv%3BTFVBOiBIb3cgdG8gc2VuZCBhIHNwZWNpZmljIGtleSB0byBjbGl.html
>
Like i said, i want to simulate ENTER to advance a cutscene or - to open the main menu. Very simple. I tried
 windower.send_command('setkey enter down;setkey enter up')
and that worked. It's not pretty but it does the trick.


- Addon の Enternity で十分かも?

* サンプル [#f1047587]

- キャラクターを移動させる
--  https://yyoshisaur.hatenablog.com/entry/2020/12/14/200000
- モンスターに自動追随?
--  https://github.com/SammehFFXI/FFXIAddons/blob/master/mobmon/mobmon.lua
- autoAssist
--  https://github.com/ekrividus/autoAssist/blob/main/autoAssist.lua
- ChatMan.lua
--  https://github.com/Ivaar/Windower-addons/blob/master/ChatMan/ChatMan.lua
 os.clock()
 windower.play_sound(windower.addon_path .. '%s.wav':format(chat))

- autoSC
--  https://github.com/ekrividus/autoSC/blob/main/autoSC.lua


* その他 [#d9021016]

- https://docs.windower.net/addons/gearswap/reference/

- WindowerのLuaは特殊バージョン
--  https://yamamikan.blogspot.com/2018/12/windowerlua_11.html
- S{}ってなんだ!?
--  https://yamamikan.blogspot.com/2018/12/s.html