Skip to content

Instantly share code, notes, and snippets.

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

Mislav Blažević krofna

💭
👨‍🎓
View GitHub Profile
make[1]: Entering directory `/home/mislav/Devel/mxe'
uname -a
Linux home 3.11-2-amd64 #1 SMP Debian 3.11.10-1 (2013-12-04) x86_64 GNU/Linux
git show-branch --list --reflog=1
[refs/heads/master@{0}] (66 minutes ago) pull: Fast-forward
lsb_release -a 2>/dev/null || sw_vers 2>/dev/null || true
Distributor ID: Debian
Description: Debian GNU/Linux unstable (sid)
Release: unstable
Codename: sid
@krofna
krofna / matej.c
Last active January 1, 2016 15:09
/*
* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. 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
* http://www.wtfpl.net/ for more details.
*/
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>
#0 0x00007ffff7077817 in writev () from /lib64/libc.so.6
#1 0x00007ffff78e36f5 in std::__basic_file<char>::xsputn_2(char const*, long, char const*, long) () from /lib64/libstdc++.so.6
#2 0x00007ffff791c7c4 in std::basic_filebuf<char, std::char_traits<char> >::xsputn(char const*, long) () from /lib64/libstdc++.so.6
#3 0x00007ffff78fd402 in std::ostream::write(char const*, long) () from /lib64/libstdc++.so.6
#4 0x00000000004077eb in Argument::Compile (this=0x612460) at /home/krofna/Hacking/nptools/src/nsbcompile2.cpp:47
#5 0x0000000000407c07 in Subroutine::CompilePrototype (this=0x612450, BeginMagic=149, NumBeginParams=1)
at /home/krofna/Hacking/nptools/src/nsbcompile2.cpp:115
#6 0x0000000000407fa7 in Scene::Compile (this=0x612450) at /home/krofna/Hacking/nptools/src/nsbcompile2.cpp:151
#7 0x0000000000407b24 in Block::Compile (this=0x612420) at /home/krofna/Hacking/nptools/src/nsbcompile2.cpp:104
#8 0x0000000000407c35 in Subroutine::Compile (this=0x612450) at /home/krofna/Hacking/nptools/src/nsbcompile2.cpp:120
type kuh = record
kuhar : string;
jelo : string;
ocjena : integer;
end;
var f : file of kuh;
var i : integer;
var d : kuh;
@krofna
krofna / llkrof.cpp
Last active June 23, 2022 15:01
bl unpacker
/*
Copyright © 2014 Mislav Blažević <[email protected]>
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 <fstream>
#include <cstdint>
#include <cstring>
#include <iostream>
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)
+ {
#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;
#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 <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
typedef enum
{
INT,
STRING
str = "derp";
int = 43 + 12;
chr = "k";
print(str);
print ( "herp" + "cherp");
print (int );
print(420 - 83 + int);
print(chr);
print("j");