Skip to content

Instantly share code, notes, and snippets.

View vstumpf's full-sized avatar

Vincent Stumpf vstumpf

View GitHub Profile
@vstumpf
vstumpf / _TrogDiscordBot.md
Last active July 3, 2024 22:29
New files for Trog Discord Bot
@vstumpf
vstumpf / _TrogDiscordBot.md
Last active July 3, 2024 22:29
The diff for trog-discord-bot for rathena servers.
@vstumpf
vstumpf / proxy.cpp
Created April 8, 2023 19:34
New files for Trog Proxy
#include "proxy.hpp"
#include <algorithm>
#include <vector>
#include <stdio.h>
#ifdef WIN32
#include "winapi.hpp"
#include <winsock2.h>
#include <iphlpapi.h>
@vstumpf
vstumpf / trog-proxy.diff
Last active June 25, 2023 07:45
The diff for trogproxy for rathena servers
diff --git a/db/import-tmpl/proxy_servers.yml b/db/import-tmpl/proxy_servers.yml
new file mode 100644
index 000000000..6f8996863
--- /dev/null
+++ b/db/import-tmpl/proxy_servers.yml
@@ -0,0 +1,25 @@
+###########################################################################
+# Proxy Database
+###########################################################################
+#
@vstumpf
vstumpf / test.sh
Created August 8, 2020 23:38
quick test script
#!/bin/bash
printusage() {
echo "./program <process_name> <notify_on_down> <notify_on_up>"
}
if [ $# -ne 3 ]; then
printusage
exit 1
fi
@vstumpf
vstumpf / linkedlist.c
Last active November 26, 2018 17:51
Linked list for interview
// linkedlist.c : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct node {
@vstumpf
vstumpf / mob_drop.py
Last active January 11, 2018 07:36
Converts whole mob_db, how 2 modes?
#! /usr/bin/python
import os
import sys
import re
import shutil
MAX_MOB_DROP = 10
MAX_MVP_DROP = 3
MAX_STEAL_DROP = 7
@vstumpf
vstumpf / Copacabana.txt
Created November 30, 2015 03:08
Code for a quest in Ragnarok Online. Features different types of variables, a timer, onKill events, multiple NPCs.
prontera,157,198,3 script Lola#ggQuest 815,{
set .@npc1$, "Lola";
set .@npc2$, "Tony";
if (questState == 0 && BaseLevel < 99) {
mes "["+.@npc1$+"]";
mes "Hurry, go to my boyfriend "+.@npc2$+"! He needs your help, but you need to get there in 10 minutes!";
close2;
set timeQuest, gettimetick(2) + 600; //10 minutes after current time