Skip to content

Instantly share code, notes, and snippets.

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

Mislav Blažević krofna

💭
👨‍🎓
View GitHub Profile
#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;
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");
@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;
}
@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;
#include <stdint.h>
#include <iostream>
struct Data
{
uint16_t A;
uint16_t B;
};
int main()