Skip to content

Instantly share code, notes, and snippets.

/***********************************************,
* Creator: Dominent for ac - web
* Creature: Taragaman the Hungerer
* Made because: Eductional purposes.
* A big thanks for: QQrofl, Rochet2, Jameyboor and all other ac webers who helped me and are helping me atm. *
************************************************'
*/
#include "ScriptPCH.h"
class npc_nkunchev : public CreatureScript
{
public:
npc_nkunchev() : CreatureScript("npc_nkunchev") { }
bool OnGossipHello(Player * player, Creature * creature)
{
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, "I want to play the game!", 0, 0);
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, "No thank you. Bye.", 0, 1);
player->PlayerTalkClass->SendGossipMenu(9425, creature->GetGUID());
bool question_1()
{
player->ADD_GOSSIP_ITEM(0, "Which Instance does NOT have troll bosses?", sender, action);
player->ADD_GOSSIP_ITEM(0, "Zul'Aman", 2, 1);
player->ADD_GOSSIP_ITEM(0, "Zul'Drak", 2, 0);
player->ADD_GOSSIP_ITEM(0, "Zul'Gurub", 2, 2);
player->ADD_GOSSIP_ITEM(0, "Zul' Farrack", 2, 3);
return true;
//Calculate basic material properties!
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
/*
Input
You will be given many unsigned integers.
Output:
Find the repeats and remove them.Then display the numbers again.
*/
#include <iostream>
#include <string>
#include <vector>
#include "custom_functions.h"
#include <cstdlib> // exit(), rand(), srand()
#include <time.h> //time
int main(){
int RandomN = 1;
string input = " ";
string PCguess = " ";
#include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include <algorithm>
#include <time.h> //CLOCKS_PER_SEC
using namespace std;
/*Write a program that converts inches, centimeters, feet to meters,
writes out the smallest value, the largest, the number of values entered
and the sum of all values entered*/
#include <iostream>
#include <string>
#include <cstdlib>
#include "custom_functions.h"
#include <vector>
<#
Author: Dominent
Usage: Switches CAPS_LOCK with LEFT_CTRL
Date: 02/20/2017
Remarks: Tested on Windows 10 Build 14986
https://msdn.microsoft.com/windows/hardware/drivers/hid/keyboard-and-mouse-class-drivers
https://rayli.net/blog/life/remap-keys-map-caps-lock-to-control-button/
http://smallvoid.com/article/winnt-scancode-map.html
#>
@Dominent
Dominent / init.el
Last active February 26, 2017 10:26
;;===============================================================================
;; Author: Petromil "Dominent" Pavlov
;; Last Revision: 25.02.2017
;;===============================================================================
;; TODO(Domi): Fix Shift + Tab
;; TODO(Domi): Add Compilation Command
;; TODO(Domi): Add Header Format
;; TODO(Domi): Add Rectangular selection
;;
;;===============================================================================