Skip to content

Instantly share code, notes, and snippets.

View mackal's full-sized avatar
💭
#TaxTheChurch

Michael Cook (mackal) mackal

💭
#TaxTheChurch
View GitHub Profile
@mackal
mackal / gist:4970340
Created February 17, 2013 05:38
Git fork stuff
$ git clone git@github.com:username/Server.git
$ git remote -v
origin git@github.com:username/Server.git (fetch)
origin git@github.com:username/Server.git (push)
$ git remote add upstream git://github.com/EQEmu/Server.git
$ git remote -v
origin git@github.com:username/Server.git (fetch)
origin git@github.com:username/Server.git (push)
upstream git://github.com/EQEmu/Server.git (fetch)
upstream git://github.com/EQEmu/Server.git (push)
@mackal
mackal / gist:6653281
Last active December 23, 2015 15:09
lucy item field names to 13th floor conversion notes
LUCY = 13TH FLOOR
effecttype0 = clicktype
effecttype1 = proctype
effecttype2 = worntype
effecttype3 = focustype
spellid0 = clickeffect
spellid1 = proceffect
spellid2 = worneffect
spellid3 = focuseffect
loreitem = loregroup
@mackal
mackal / EQServer.sh
Last active December 31, 2015 13:39
#!/bin/bash
#bashisms woo
ulimit -c unlimited
case "$1" in
start)
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
rm -rf logs/*.log
chmod --recursive ugo+rwx quests
@mackal
mackal / gist:8394753
Created January 13, 2014 04:31
SPA IDs (Offical Spell Effect Names)
AFFECTNUMBER AFFECTNAME
0 HP
1 AC
2 Attack Power
3 Movement Rate
4 STR
5 DEX
6 AGI
7 STA
8 INT
@mackal
mackal / resists.py
Last active August 29, 2015 13:56
Used for testing NPC resist on EQEmu
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2014 Michael Cook <mcook@mackal.net>
#
# GPL whatever?
# used for testing NPC's resists
diff --git a/common/ruletypes.h b/common/ruletypes.h
index b610c30..991240f 100644
--- a/common/ruletypes.h
+++ b/common/ruletypes.h
@@ -529,6 +529,11 @@ RULE_BOOL( QueryServ, MerchantLogTransactions, false) // Logs Merchant Transacti
RULE_BOOL( QueryServ, PlayerLogPCCoordinates, false) // Logs Player Coordinates with certain events
RULE_CATEGORY_END()
+RULE_CATEGORY ( Performance )
+RULE_BOOL ( Performance, LOSCacheEnabled, false )
@mackal
mackal / filters
Last active August 29, 2015 13:56
UF/SoD/RoF
type | value | string
--------|-------|-------
dot | 0 | Show
dot | 1 | Show Mine Only
dot | 2 | Show Group Only
dot | 3 | Hide
--------|-------|-------
hot | 0 | Show
hot | 1 | Show Mine Only
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2014 Michael Cook <mcook@mackal.net>
#
"""
Processes an eqlog file and generates SQL to update factions
Should work with a full log, but cleaning up the log will be quicker
diff --git a/zone/mob.cpp b/zone/mob.cpp
index 340dfdf..bc695ac 100644
--- a/zone/mob.cpp
+++ b/zone/mob.cpp
@@ -4726,26 +4726,22 @@ bool Mob::PassLimitToSkill(uint16 spell_id, uint16 skill) {
return false;
}
-uint16 Mob::GetWeaponSpeedbyHand(uint16 hand) {
-
/*
* Project: MQ2Bags
* Author: demonstar55
* Purpose: Bring the newer clients open all bags to UF (and older I guess)
*
* Binds Shift + B to open all bags, and close them, exactly like newer clients do
* Adds /bags command that does the same thing
*
*/