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
@TeoTwawki
TeoTwawki / css edits.md
Last active January 26, 2017 10:37
css to fix crappy discord fonts

This wil get updated as I make changes to my own UI. For best results use these snippets with better discord instead of doing control+shit+i and trying to sift through Discords mess.

Specify font size of chat:

.message-content {font-size: 120%}

Specify a font:

@TeoTwawki
TeoTwawki / example.lua
Last active April 6, 2019 08:40
Weighted Random Selection in pure Lua
function WeightedRandomSelect(tableID)
local outerTable =
{
[1] =
{
{weightValue, thingValue},
{weightValue, thingValue}
},
[2] =
{
@TeoTwawki
TeoTwawki / MHMU-SalesDept.csv
Last active April 16, 2018 00:44
AH Bot : auto stock list
itemid name sell01 buy01 price01 stock01 sell12 buy12 price12 stock12
4376 meat-jerky 0 0 175 0 1 0 2000 30
5721 crab-sushi 0 0 500 0 1 0 6000 30
4271 rice-dumpling 0 0 1000 0 1 0 12000 30
5148 squid-sushi 0 0 1250 0 1 0 15000 30
5766 butter-crepe 0 0 1250 0 1 0 15000 30
4536 blackened-frog 0 0 1000 0 1 0 12000 30
4411 dhalmel-pie 0 0 1750 0 1 0 21000 30
4413 apple-pie 0 0 1750 0 1 0 21000 30
4421 melon-pie 0 0 2000 0 1 0 24000 30
@TeoTwawki
TeoTwawki / Prose.md
Created October 24, 2019 01:15 — forked from shakna-israel/Prose.md
Obfuscating Lua

Obfuscating Lua

I've had some fun ruining Python recently, but Python is what I use at work. I prefer to use other languages when I'm doing stuff for fun.

And obfuscation only really makes sense in fun and competition - given a suffeciently determined actor, your code will be reverse engineered. Unless you write it in Malboge.

For this particular experiment, I'll be using Lua 5.3. As I'll probably need to dive into some of the less portable functions to commit our atrocities, I can't guarantee it will run on other popular versions like Luajit or 5.1.


[3:00 PM] Nyu: ibm left, one less active and enthusiastic contributor.
[3:04 PM] Caladius: hes still alive, just not in this discord
[3:06 PM] Zynjec: since you're framing that statement like it's our fault, why do you feel that way?
[3:07 PM] Lotus: I'ma probably join him soon lmao
[3:07 PM] Zynjec: same
[3:08 PM] Autkast: :kill_me: pact
[3:10 PM] Nyu: I don't care who's fault it is actually, just stating it.
[3:11 PM] Zynjec: why bring it up if you don't care then?
[3:13 PM] Nyu: Oh, probably because I care about the fact that DSP lost one of it's enthusiastic and active contributor, like I just said.
[3:14 PM] Autkast: Contributors ebb and flow man. This time last year I was submitting stuff constantly.

[10:56 AM] Tagban: Anyone else seeing crashes after most recent pull related to char utils and additem?

[10:56 AM] Tagban: [28/Jan] [10:56:16][Warning] charplugin::AddItem: Item <23733> is not found in a database

[10:57 AM] Tagban: Anything not in the database crashes the server now

[10:57 AM] Tagban: Including item 0 when a player steals

[11:01 AM] Alucard: its always been the case for as long as I can remember

9:43 AM] zach2good: Or better yet, in

void AddExperiencePoints(bool expFromRaise, CCharEntity* PChar, CBaseEntity* PMob, uint32 exp, EMobDifficulty mobCheck, bool isexpchain)

where there are already latent checks

[9:44 AM] Teo: forget fiddling with latents. makes more sense to just have a value in play where each KI you just add 30, and then use said value's final result in the exp calc.

@TeoTwawki
TeoTwawki / 1.md
Last active June 18, 2020 19:06
Dm's about dw, h2h, and mob kicks

[12:26 AM] ibm2431: Are there any mnk mobs in the game that do kick attacks?
[12:26 AM] ibm2431: Mandies?
[12:27 AM] ibm2431: At the moment, the only difference between the dual wield mob mod and isH2H is that isH2H generates kick attacks
[12:27 AM] ibm2431: This is probably desirable for isH2H
[12:28 AM] ibm2431: I'm starting to wonder if we want a column at all
[12:28 AM] ibm2431: And instead either:
a) set isH2H properly (using a pool mod for dual wielders who aren't hand to hand because they don't kick)(edited)
[12:29 AM] ibm2431: b) drop isH2H column, and set mods for hand-to-hand (right, left, kick) to whole families (mandies) or pools (monk mobs who actually fight hand-to-hand)
[12:30 AM] TeoTwawki: in retail yes higher levels mobs can "kick" the animation for this varies. in private servers this is not implimented.
[12:31 AM] TeoTwawki: not all monk mobs will kick

@TeoTwawki
TeoTwawki / Custom Mob Example.md
Last active April 4, 2021 20:04
Custom Mob Example

Hand him a mobid+group in Sacrarium with a level range you feel is right and make up an id for the pool.

The drops are 100% either or and handled by script as is pos, no dropid needed.

@TeoTwawki
TeoTwawki / story time.md
Last active July 4, 2022 02:48
Why I like (Feast of) Swords (event)

So back in the original version of the event, no enchantment to use and no timing collection of malice from their mobskills, no trading to a '???' spot on the ground..all you had to do was beat them up. There was just one problem. The loot was a direct drop from the kill. Loot was at that time highly saught after: chocobo stables warp collars.

A free trip to the other cities? in an age with no teleports other than whm spells? SIGN ME THE F UP cried every player server wide. At the moogle all you got was another lv 1 GK with a different delay than the one you started with. nobody cared about that, we wanted those collars!

Now, the armor mobs dropped multiples, so if you solo'd you'd see a bunch of them hit dirt and be lost. But if you partied up, there were usually enough dropped for at least half your party (dropped up to 6, usually 2 to 4 per kill, often 3 - it appeared to be weighted towards the middle numbers). So evertyone was partying up, sometimes alliances of 9 to 12 ppl.

Now as you may know, the