Skip to content

Instantly share code, notes, and snippets.

@AntumDeluge
AntumDeluge / creature_spawn_points.txt
Last active May 28, 2022 20:08
Calculates drop rarity score for items
dark elf knight;9
Dhohr Nuggetcutter;1
babybear;11
assassin;151
dark elf general;8
littlewizard;44
djinn;29
barbarian chaman;4
elf bodyguard;8
bat;89
@AntumDeluge
AntumDeluge / toidx.sh
Last active February 19, 2023 19:45
Script to Convert PNG Images to Indexed Color
#!/usr/bin/env bash
## Creative Commons Zero (CC0) public domain dedication
#
# To the extent possible under law, the author has
# waived all copyright and related or neighboring
# rights to this work. This work is published from:
# The United States.
#
## For more information see: https://creativecommons.org/publicdomain/zero/1.0/
@AntumDeluge
AntumDeluge / stendhal_simulate_combat.sh
Created June 22, 2023 05:46
Shell script to run Stendhal combat simulation.
#!/usr/bin/env bash
classpath="./:./libs/*:./build/build_stendhaltools/:./build/build_server/:./build/build_server_script/:./build/build_server_maps/:./build/build_server_xmlconf/"
defines=()
params=()
for arg in "$@"; do
echo "${arg}" | grep -q "^\-D";
ret=$?