Skip to content

Instantly share code, notes, and snippets.

@Ivaar
Ivaar / AssistMe
Last active March 14, 2019 11:23
Vanilla follow and assist for use with send addon.
_addon.command = 'assistme'
follow_states = {[0]=true,[5]=true,[85]=true}
windower.register_event('addon command', function(...)
local self = windower.ffxi.get_mob_by_target('me')
local names = {...}
for _,name in pairs(names) do
local mule = windower.ffxi.get_mob_by_name(name:sub(1, 1):upper()..name:sub(2):lower())
if mule then
@Ivaar
Ivaar / chococard.lua
Created September 22, 2018 22:57
Read chocobo items. Save to scripts folder and execute with //lua e chococard
require('luau')
require('pack')
extdata = require 'extdata'
local chocobo = {
plan = {[0]='A','B','C','D'},
rank = {[0]='Poor(F)','Substandard(E)','A bit deficient(D)','Average(C)','Better than average(B)','Impressive(A)','Outstanding(S)','First-class(SS)'},
ability = {[0]='None','Gallop','Canter','Burrow','Bore','Auto-Regen','Treasure Finder'},
temperament = {[0]='Very easygoing','Rather ill-tempered','Very patient chocobo','Quite sensitive','Rather enigmatic'},
gender = {[0]='Male','Female'},
@Ivaar
Ivaar / NASA.lua
Last active February 28, 2022 22:42
NotAnotherSparksAddon
_addon.name = 'NASA'--'NotAnotherSparksAddon'
_addon.author = 'Ivaar'
_addon.version = '0.0.0.5'
_addon.commands = {'nasa'}
require('luau')
require('pack')
bit = require('bit')
local max_powders = 80*99
@Ivaar
Ivaar / Camper.lua
Last active May 13, 2020 15:46
Auction house camper
JSON = require 'json'
file = require 'files'
bidlist = {
{item='rhodium ore', stack='single', minimum=10, maximum=30, price_inc=10, quantity}, -- unlimited quantity
{item='ifritite', stack='single', minimum=1, maximum=2, price_inc=1, quantity=10},
}
default.camper = {
min_cycle_delay = 60,
max_cycle_delay = 180,
min_bid_delay = 9,
return {
[0] = '+Procure: Ceizak Battlegrounds', -- 0
[1] = '+Procure: Foret de Hennetiel',
[2] = '+Procure: Morimar Basalt Fields',
[3] = '+Procure: Yorcia Weald',
[4] = '+Procure: Marjami Ravine',
[5] = '+Procure: Kamihr Drifts',
[6] = '+Procure: Cirdas Caverns',
[7] = "+Procure: Outer Ra'Kaznar",
[8] = '+Clear: Ceizak Battlegrounds',
_addon.name = 'QuestLog'
_addon.commands = {'quest','ql'}
require('luau')
bit = require('bit')
packets = require('packets')
local cmds = {
abyssea = S{'abyssea','aby'},
adoulin = S{'adoulin','soa'},
_addon.command = 'chocolor'
bit = require('bit')
local colors = {
yellow = 0,
black = 1,
blue = 2,
red = 3,
green = 4
}
require('pack')
local categories = {
[1] = 0x0D, -- accept raise
[2] = 0x13, -- accept tractor
}
local dead_status = {[2]=true,[3]=true}
local inject_action = function(player, category, action)
_addon.name = 'Currencies'
_addon.author = 'Ivaar'
_addon.version = '0.0.0.3'
_addon.commands = {'currencies','curr'}
require('lists')
require('logger')
packets = require('packets')
local log_results
_addon.author = 'Ivaar'
_addon.name = 'Transwarp'
_addon.version = '0.0.0.4'
_addon.commands = {'tw'}
require('luau')
require('pack')
packets = require('packets')
alias = require('alias')