Skip to content

Instantly share code, notes, and snippets.

@Ruin0x11
Ruin0x11 / inv.org
Created July 12, 2020 03:03
invctrl ops

invctrl ops

NOTE: on_item_selected and on_filter must be extracted as separate components. This is to allow shortcuts.

1 - general inventory (“X”)

properties

  • Supports tagging as no-drop.

on_filter

  • Include items on chara.
  • Include items on the ground.
  • Include equipped items.
  • Permit own_state 5.
@Ruin0x11
Ruin0x11 / start.hsp
Created August 1, 2021 07:28
hsplua test
#include "hsplua.as"
hl_newstate 0
hl_switchstate 0
hl_pushfunction *dolog
hl_setglobal "dolog"
hl_dostring "g = dolog('tests', 12345, 'test')"
hl_getglobal "g"
a=hl_tointeger(1)
@Ruin0x11
Ruin0x11 / output.txt
Created December 12, 2021 23:55
Elona+ CGX item frequency tables
secret experience of Kumiromi 0.00% (2) :.......................................
lightsabre 0.00% (3) :.......................................
book of resurrection 0.00% (4) :.......................................
guillotine 0.00% (6) :.......................................
iron maiden 0.00% (6) :.......................................
livestock feed 0.00% (6) :.......................................
mandrake salad 0.00% (6) :.......................................
disinfectant 0.00% (11) :.......................................
vomit 0.00% (11) :.......................................
small medal 0.00% (11) :.......................................
@Ruin0x11
Ruin0x11 / lss.lua
Created March 7, 2022 07:47
lss.lua
local inspect = require "inspect"
local Rule = {}
local function rule(...)
local classes = {}
local elementId = nil
local pseudos = {}
local count = select("#", ...)