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

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.

[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

[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.
@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.


@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 / 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 / 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:

-----------------------------------
-- Roam Path
-----------------------------------
local path =
{
-13, 28, 305,
180, 23, 333,
293, 24, 332,
360, 33, 383,
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, -- ± --
@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"