Skip to content

Instantly share code, notes, and snippets.

View TeoTwawki's full-sized avatar
🤒
sick of social features on github

TeoTwawki

🤒
sick of social features on github
View GitHub Profile
embedded gist
@TeoTwawki
TeoTwawki / exdata sql for storage slips
Last active August 29, 2015 14:21
exdata sql for storage slips
INSERT INTO `char_inventory` VALUES (22602, 6, 10, 29317, 1, 0, '', 0x101200104000488000080410080410000000000000000000);
INSERT INTO `char_inventory` VALUES (22602, 6, 5, 29313, 1, 0, '', 0x000020000000000000000000000000000000000000000000);
@TeoTwawki
TeoTwawki / monster_using_elemental_damage_spikes.lua
Last active September 2, 2015 12:09
example of monster using onSpikesDamage() for elemental damage
-- Some things are not perfect here, existing examples in trunk are written this way however.
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInitialize(mob)
@TeoTwawki
TeoTwawki / exampleGlobal.lua
Last active November 1, 2015 01:50
stupid annoying conflux craps
-----------------------------------
-- This file contains functions and
-- data related to using Veridical
-- Confluxes in Abyssea - Originally By Troak
-----------------------------------
require("scripts/globals/common");
require("scripts/globals/settings");
require("scripts/globals/keyitems");
@TeoTwawki
TeoTwawki / file-list.txt
Created December 11, 2015 23:26
xi file list november
This file has been truncated, but you can view the full file.
File ID File Path
-----------------------------
0 Rom\0\0.dat
1 Rom\0\1.dat
2 Rom\0\2.dat
3 Rom\0\3.dat
4 Rom\0\4.dat
5 Rom\0\5.dat
6 Rom\0\6.dat
@TeoTwawki
TeoTwawki / plogger.lua
Created December 28, 2015 01:28
packet logging - fork and edit as needed.
--[[
plogger.lua (c) 2013-2014 Hypnotoad
(c) 2014 atom0s
This addon is based on the old plugin for LuaCast (Ashita v1) by
Hypnotoad. I, atom0s, do not take any credit for the work of this
plugin outside of updating it to an addon for Ashita v2.
]]--
_addon.author = 'atom0s & Hypnotoad';
@TeoTwawki
TeoTwawki / shop_example.lua
Created April 12, 2016 22:44
example of an NPC static shop script
function onTrigger(player,npc)
player:showText(npc, TEXT_ID_HERE);
local stock =
{
4238, 5000, -- HQ Fire Crystal
4239, 5000, -- HQ Ice Crystal
4240, 5000, -- HQ Wind Crystal
4241, 5000, -- HQ Earth Crystal
4242, 5000, -- HQ Lightning Crystal
4243, 5000, -- HQ Water Crystal
@TeoTwawki
TeoTwawki / setskill.lua
Last active April 15, 2016 22:36
set skill and rank by ID
---------------------------------------------------------------------------------------------------
-- func: @setskill <skill ID> <skill Level> <skill Rank> <target>
-- desc: Sets specified skill. The IDs can be found in status.lua
-- will report targets current skill lv and craft rank if no values specified.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameters = "iiis"
require("scripts/globals/npc_util"),
-- most probable example usage after binding adjustment (uncertain)
-- player:comepletQuest(QUESTS.SANDORIA.A_SENTRY_S_PERIL);
QUESTS =
{
{[SANDORIA] = 0} =
{
A_SENTRY_S_PERIL = 0, -- ± --
-----------------------------------
-- Roam Path
-----------------------------------
local path =
{
-13, 28, 305,
180, 23, 333,
293, 24, 332,
360, 33, 383,