This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private string GetAuras(WoWObject obj) | |
{ | |
List<uint> content = new List<uint>(); | |
if (Auras.ContainsKey(obj.WowGuid)) | |
{ | |
foreach (AuraUpdate spellInfo in Auras[obj.WowGuid].Updates) | |
{ | |
if (spellInfo.SpellId > 0 && (spellInfo.Flags & AuraFlags.NotCaster) != 0) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Structure that represents a rotation in three dimensions. | |
/// </summary> | |
public struct Quaternion | |
{ | |
const int PACK_COEFF_YZ = 1 << 20; | |
const int PACK_COEFF_X = 1 << 21; | |
/// <summary> | |
/// The X component of the quaternion. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Kamilla.WorldOfWarcraft.Latest.Parsers.Gossip | |
{ | |
// TODO: redo | |
[WowPacketParser(WowOpcodes.SMSG_QUESTGIVER_OFFER_REWARD)] | |
internal sealed class QuestGiverOfferRewardParser : WowPacketParser | |
{ | |
protected override void Parse() | |
{ | |
OfferReward or = new OfferReward(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Example | |
using System; | |
using System.Drawing; | |
using System.Drawing.Imaging; | |
namespace BLP | |
{ | |
class Program | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region Inject | |
/// <summary> | |
/// | |
/// </summary> | |
/// <param name="source"></param> | |
/// <returns></returns> | |
public unsafe byte[] Assemble(string source) | |
{ | |
var passesLimit = 0x100; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void DumpPacket(DWORD packetType, DWORD connectionId, DWORD packetOpcode, DWORD packetSize, DWORD buffer, const WORD initialReadOffset) | |
{ | |
// gets the time | |
time_t rawTime; | |
time(&rawTime); | |
DWORD optionalHeaderLength = 0; | |
if (!fileDump) | |
{ | |
tm* date = localtime(&rawTime); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
using System.Threading; | |
namespace NetCallerFunc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ABILITY_TABLE = { }; | |
EVENT_MODS = { }; | |
LOSS_TABLE = { }; | |
NOTIFY_CAST_TABLE = { }; | |
LAST_TARGET = 0; | |
-- Константы горячих клавиш | |
mkLeftShift = 1; | |
mkLeftControl = 2; | |
mkLeftAlt = 3; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ctxm add command -label [mc "Open in external editor"] \ | |
-command { | |
#set prog "notepad" | |
set prog "C:\\Program Files (x86)\\Notepad++\\notepad++.exe" | |
exec $prog [file join $_gitworktree $current_diff_path] | |
} | |
$ctxm add command -label [mc "Reset file changes"] \ | |
-command { | |
if { $current_diff_path ne "" && [tk_messageBox \ | |
-icon question \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from urllib.request import urlopen | |
from time import sleep | |
def clenuap(content): | |
return content.strip() \ | |
.replace("<br />", "\\n") \ | |
.replace("<", "<") \ | |
.replace(">", ">") \ | |
.replace(" ", " ") \ |