Skip to content

Instantly share code, notes, and snippets.

View krofna's full-sized avatar
💭
👨‍🎓

Mislav Blažević krofna

💭
👨‍🎓
View GitHub Profile
#include <iostream>
#include <cmath>
#include <cstdint>
using namespace std;
int CX[200], CY[200], BX[200], BY[200];
int N, M;
int maxt = 0;
bool CheckPoint(int64_t A, int64_t B, int64_t C, int64_t D, int64_t x, int64_t y)
#include <iostream>
#include <vector>
using namespace std;
vector<int> V, P;
int a, b;
void Input()
{
char A[500001];
#include <iostream>
#include <cstring>
#include <stack>
using namespace std;
string tbl[11] = {
"xxxxx"
"x...x"
"x...x"
"x...x"
@krofna
krofna / subtitleburn.cpp
Created November 8, 2014 15:10
Quick hack I was asked to make. Converts & Burns subtitles to movies. NOTE: See line 38
/*
Copyright © 2014 Mislav Blažević <krofnica996@gmail.com>
This work is free. You can redistribute it and/or modify it under the
terms of the Do What The Fuck You Want To Public License, Version 2,
as published by Sam Hocevar. See the COPYING file for more details.
*/
#include <gtk/gtk.h>
#include <vte/vte.h>
GtkWidget *buttonvid, *buttonsub, *term;
@krofna
krofna / matej.c
Last active August 29, 2015 14:04
#include <stdio.h>
int mul_znam(char* A)
{
int b = A[0] - '0', i;
for (i = 1; A[i]; ++i)
if (A[i] != '0')
b *= A[i] - '0';
return b;
}
str = "derp";
int = 43 + 12;
chr = "k";
print(str);
print ( "herp" + "cherp");
print (int );
print(420 - 83 + int);
print(chr);
print("j");
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
typedef enum
{
INT,
STRING
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int x,y,n;
char** ploca;
char** arraymalloc(size_t width, size_t height)
{
int i;
#include <stdio.h>
#include <stdlib.h>
char map[3][3];
void* memset(void* s, int c, size_t n);
int p=1;
int win=0;
int input;
char turn;
diff --git a/src/server/game/Entities/Creature/GossipDef.h b/src/server/game/Entities/Creature/GossipDef.h
index 6c5f465..139ffd4 100755
--- a/src/server/game/Entities/Creature/GossipDef.h
+++ b/src/server/game/Entities/Creature/GossipDef.h
@@ -277,6 +277,14 @@ class PlayerMenu
void SendQuestGiverOfferReward(Quest const* quest, uint64 npcGUID, bool enableNext) const;
void SendQuestGiverRequestItems(Quest const* quest, uint64 npcGUID, bool canComplete, bool closeOnCancel) const;
+ void hack_SendQuestGiverQuestList(std::vector<uint32> Entries, uint64 guid)
+ {