Skip to content

Instantly share code, notes, and snippets.

@ADHdev
ADHdev / Cheapass clusters compiled.mu
Last active March 27, 2018 14:49
Cheapass Clusters, compiled
think Entering 54 lines.
@create Data Storage Functions <DSF>=10
@set DSF=safe inherit
@force me=&vS DSF=and(t(sql(SELECT 1)), eq(strlen(sql(SELECT 1)), 1))
&VL me=MYSQL_LOGIN_NAME_HERE;
@ADHdev
ADHdev / MSG.mu
Last active January 18, 2019 05:07
Global message system
/*******************************************************************************
Key features:
- remembers who you last messaged so you don't have to type it again
- remembers the last type of message you sent
- queues messages for delivery while you're offline or messages are turned off
- lets you colorize, highlight, etc, a standardized prefix
- lets you block people IC (with a personalized IC message if you like)
- lets you hide/gag people's messages IC - warning, they get eaten
- shows you your message status on login
*******************************************************************************/
@ADHdev
ADHdev / Plushelp.txt
Last active January 20, 2018 17:52
+help system using TinyMUX Data-agnostic storage system (AKA Cheapass Clusters)
//------------------------------------------------------------------------------
// Updates:
// 2018-01-20: Altered the break-out function AGAIN - it really didn't like
// when there were /'s and ='s in the code. Also took out the special
// formatting that occurs when there's a | in the display. Instead,
// you'll need to explicitly declare the name or key as "COLUMNIZE".
// Added COLUMNIZE to tags automatically so user won't have to think
// about that.
//------------------------------------------------------------------------------
// Requires: Cheapass Clusters, header(), footer(), alert(), boxtext(), and
@ADHdev
ADHdev / CheapassClusters.txt
Last active January 22, 2019 09:54
TinyMUX Type-Agnostic Data Storage Module (AKA cheapass @Clusters) - DECOMPILED version, with tests (and sample data)
// -----------------------------------------------------------------------------
// TinyMUX Type-Agnostic Data Storage Module (AKA cheapass @clusters)
// -----------------------------------------------------------------------------
// Tested with MUX 2.10.1.14 #3 and MySQL version 5.7.20.
// -----------------------------------------------------------------------------
// IMPORTANT
// -----------------------------------------------------------------------------
// 1. Read through the code below until it says "Don't change anything past this
// point!" Change whatever you need to to work with your game.
// -