Skip to content

Instantly share code, notes, and snippets.

@Litro
Litro / Flux with Respect Validation.md
Created December 1, 2022 19:14 — forked from cydh/Flux with Respect Validation.md
Quick guide to add Respect/Validation to FluxCP

Adding Respect/Validation

The simpliest way to add Respect/Validation into FluxCP

  1. Create new direcotry in FLUX_ROOT/lib/ with name respectvalidation
  2. Followed its installation guide by using command line in respectvalidation directory
composer require respect/validation
  1. In any module file you want to add the input validation (example: modules/character/view.php) add the respect/validation autoload
require 'respectvalidation/vendor/autoload.php';
@Litro
Litro / 0001-Custom-Script-Event-ATTACKMOBEVENT.patch
Created November 12, 2020 09:13
Custom-Script-Event-ATTACKMOBEVENT.patch
From 97c0803f11757cc61cb4496ebfab6c8d38579fc8 Mon Sep 17 00:00:00 2001
From: Harvin <haruna.epic@gmail.com>
Date: Thu, 12 Nov 2020 16:11:37 +0700
Subject: [PATCH] Custom Script Event : ATTACKMOBEVENT
---
src/map/map.hpp | 1 +
src/map/mob.cpp | 3 +++
src/map/npc.cpp | 2 ++
src/map/npc.hpp | 1 +
// Refer to db/re/item_randomopt_db.txt for the IDs of the Random Options
// ItemID of the 1st random option enchantment
setarray .enchant_randopt_1[0],
// <Random Option ID>, <Min>, <Max>,
RDMOPT_VAR_STRAMOUNT,1,2, // STR, 1, 2
RDMOPT_VAR_AGIAMOUNT,1,2, // AGI, 1, 2
RDMOPT_VAR_VITAMOUNT,1,2, // VIT, 1, 2
RDMOPT_VAR_INTAMOUNT,1,2, // INT, 1, 2
RDMOPT_VAR_DEXAMOUNT,1,2, // DEX, 1, 2
RDMOPT_VAR_LUKAMOUNT,1,2; // LUK, 1, 2
@Litro
Litro / punching_bag,c
Created June 15, 2020 04:04
{rAthena} Punching Bag
// 126,208 126,204 126,200
prontera,126,208,0 script Gepukan#0 844,{
end;
OnThisKilled:
stopnpctimer strnpcinfo(0);
OnInit:
getunitdata(getnpcid(0), .@nd);
monster strnpcinfo(4), .@nd[UNPC_X], .@nd[UNPC_Y], "Gepukan "+ strnpcinfo(2), 1905, 1, strnpcinfo(0)+"::OnThisKilled";
@Litro
Litro / install-ro.sh
Created April 15, 2019 01:41 — forked from cbrgm/install-ro.sh
Install rAthena RagnarokOnline Server on Ubuntu 18.04
#!/bin/bash
######################################################
# Basic settings
######################################################
# server base directory
RAGNAROK_DIR=/rAthena
# mysql database settings
MYSQL_ROOT_PW="changeme"
root_pass="root"
ragnarok_db="ragnarok"
ragnarok_user="ragnarok"
ragnarok_pass="ragnarok"
echo ""
echo "[+] Installing depencies..."
echo ""
apt-get install git make gcc libmysqlclient-dev zlib1g-dev libpcre3-dev
echo ""
@Litro
Litro / debloatNox.md
Created April 15, 2019 01:32 — forked from Log1x/debloatNox.md
Debloating & Optimizing Nox

Debloating Nox

Nox, despite being the most feature-filled Android emulator, has a lot of negativity surrounding it due to their antics when it comes to making income off of their program. It is known for running repeated advertisments in the background, calling home and passing along system information (outside of your Android instance) as well as a vast amount of potentially sensitive data in an encrypted payload back to their multitude of servers. With the following preventitive measures, we can stop a majority of this happening as well as greatly improve the overall performance.

  1. Download and Install a fresh copy of Nox. The latest version is fine (for now). If you already have it installed, that is fine too. No need to reinstall.

  2. Enable Root Mode on Nox by clicking the gear icon and then checking the Root Startup box.

  3. Install a new Launcher from the Play Store. ANYTHING but Nox's default. I suggest [Nova Launcher](https://play.google.com/s

@Litro
Litro / rAthena - Custom Skill.md
Last active March 26, 2019 18:16
rAthena - Custom Skill

Introduction

A large area where players have difficulty is adding new skills to the source and client. To implement new skills, it's required that you use an XRay client (if you don't want to use XRay, you will have to replace existing, un-used skills and edit their previous descriptions).

Below will be documentation on how to implement these new skills

Skill ID Rules