Skip to content

Instantly share code, notes, and snippets.

uses crt;
var a,b,c:integer;
cosa,cosb,cosc:real;
rb, rs, rz, ao, ap, at:boolean;
begin
ClrScr;
write('введите строну a = ');
readln(a);
write('введите строну b = ');
readln(b);
uses crt;
var
x: array [1..55] of integer;
i,j: integer;
s,res: longint;
begin
ClrScr;
Randomize;
For i:=1 to 55 do
x[i]:=random(100)-50;
program graphics;
uses graph;
var gd,gm,xc,yc:integer;
fills:array[1..3] of PointType;
begin
gd:=detect;initgraph(gd,gm,'C:\TP\BGI');
if graphresult <> 0 then halt(1);
xc:=100;yc:=100;
SetFillStyle(3,GetMaxColor);
pieslice(xc,yc,270,360,75);pieslice(xc,yc,180,270,75);
Program ex6;
uses crt;
type matr = array[1..4,1..4] of char;
var a:matr; i,j:integer; dist:boolean; gdiag: set of char;
Begin
clrscr;
writeln('Введите символьную матрицу 4х4:');
for i:=1 to 4 do
for j:=1 to 4 do read(a[i,j]);
program project1;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Classes, Crt;
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 5ed1a1b..51fb3d7 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -5166,6 +5166,13 @@ void Aura::HandleAuraModStun(bool apply, bool Real)
if (apply)
{
+ // remove stealth for set target
#!/bin/bash
home="/home/mangos"
mangosConf=$home"/etc/mangosd.conf"
scriptConf=$home"etc/scriptdev2.conf"
backup=$home"/backup"
#
###############################################################################
# functions
function db_config_extract()
diff --git a/sql/updates/fc_updates_characters/fake_items.sql b/sql/updates/fc_updates_characters/fake_items.sql
new file mode 100644
index 0000000..3618ac1
--- /dev/null
+++ b/sql/updates/fc_updates_characters/fake_items.sql
@@ -0,0 +1,11 @@
+DROP TABLE IF EXISTS `fake_items`;
+CREATE TABLE `fake_items` (
+ `guid` int(11) NOT NULL,
+ `fakeEntry` int(11) NOT NULL,
diff --git a/src/game/Chat.cpp b/src/game/Chat.cpp
index 1489fd5..08ae7e3 100644
--- a/src/game/Chat.cpp
+++ b/src/game/Chat.cpp
@@ -609,6 +609,7 @@ ChatCommand * ChatHandler::getCommandTable()
{ "spell_disabled", SEC_ADMINISTRATOR, true, &ChatHandler::HandleReloadSpellDisabledCommand, "", NULL },
{ "spell_linked", SEC_ADMINISTRATOR, true, &ChatHandler::HandleReloadSpellLinkedCommand, "", NULL },
{ "anticheat", SEC_ADMINISTRATOR, true, &ChatHandler::HandleReloadAntiCheatCommand, "", NULL },
+ { "item_template", SEC_ADMINISTRATOR, true, &ChatHandler::HandleReloadItemTemplateCommand, "", NULL },
#!/bin/bash
###############################################################################
# configuration
home="/home/mangos"
mangosConf=$home"/etc/mangosd.conf"
scriptConf=$home"/etc/scriptdev2.conf"
mangosSource=$home"/Mangos-Sources/mangos"
sd2Source=$home"/Mangos-Sources/mangos/src/bindings/scriptdev2"
YTDBSource=$home"/Mangos-Sources/YTDB"
#