Can't activate the cheats on this map

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
eddydu555
Senior Member
Posts: 123
Joined: August 27th, 2010, 7:14 am

Can't activate the cheats on this map

Post by eddydu555 »

i type the activator but i cant enable the cheats maybe there is other factors i need to know to enable them like the name or maybe i need to type key combination please help me to find out how to activate them :D
You do not have the required permissions to view the files attached to this post.
User avatar
eddydu555
Senior Member
Posts: 123
Joined: August 27th, 2010, 7:14 am

Re: Can't activate the cheats on this map

Post by eddydu555 »

forgot to say that the map is FOCS3 Another 8.9a07(final)
You do not have the required permissions to view the files attached to this post.
Last edited by eddydu555 on February 7th, 2013, 6:49 pm, edited 1 time in total.
zUsername
Forum Addict
Posts: 407
Joined: February 25th, 2011, 3:16 am
Location: Unknown

Re: Can't activate the cheats on this map

Post by zUsername »

You can compare war3map.j with this map in topic http://forum.wc3edit.net/fulfilled-requ ... 07#p160546
User avatar
eddydu555
Senior Member
Posts: 123
Joined: August 27th, 2010, 7:14 am

Re: Can't activate the cheats on this map

Post by eddydu555 »

guys please please help me to
find how to activate the cheats of this map

find how to open protected map with mpqeditor and mpq master (protected ones with archive error)

how to find out if i need to do another thing after i type the activator to activate the cheat like changing my name or type a key combination help me to detect it :D

thanks alot :D

and i found something in the jass i think that i need to rename myself as "M15T3R1U5" the activator is "-M15T3R1U5 GG" i type it and nothing happens cheat commands doesnt work i searched and i found something like up right down its a key combination i tried to rename myself as M15T3R1U5 i typed the activator "-M15T3R1U5 GG" and tried the 3 keys which is up left right i think and it didnt work
User avatar
KangTooJee
Old Wrinkly Member
Posts: 202
Joined: September 15th, 2010, 5:09 am
Title: Legenda

Re: Can't activate the cheats on this map

Post by KangTooJee »

Two question : Are you from Indo? If you are which realm that use this map?
User avatar
eddydu555
Senior Member
Posts: 123
Joined: August 27th, 2010, 7:14 am

Re: Can't activate the cheats on this map

Post by eddydu555 »

no i am from france i play on garena i dont play on battle net :D

help me to know how to enable the cheats by another way that the activator if there is another way implemented in the map like name or key combination and how to detect if there is

and of course how to enable them in that map i posted :D
User avatar
eddydu555
Senior Member
Posts: 123
Joined: August 27th, 2010, 7:14 am

Re: Can't activate the cheats on this map

Post by eddydu555 »

help me please :D
User avatar
KangTooJee
Old Wrinkly Member
Posts: 202
Joined: September 15th, 2010, 5:09 am
Title: Legenda

Re: Can't activate the cheats on this map

Post by KangTooJee »

the map that u posted doesnt have any cheatpack...
maybe u post wrong map?
User avatar
eddydu555
Senior Member
Posts: 123
Joined: August 27th, 2010, 7:14 am

Re: Can't activate the cheats on this map

Post by eddydu555 »

hmm maybe i posted the wrong one or i posted the worng war3map.j cause idk how i did to make it work when i try to open it with mpqeditor i get error and i remember that i opened it with mpqeditor maybe i opened the wrong map you are right sorry
and now i want to how to cheat this map :D this map is cheated i know i saw it and i didn't take the wrong map this time
i know there is fake activator
string Playerz="-WasabiNaim"
there is like 7 steps i guess someone did it steps from unp_termit_tr1 to unp_termit_tr7 help me to find out whats the steps :D
You do not have the required permissions to view the files attached to this post.
zUsername
Forum Addict
Posts: 407
Joined: February 25th, 2011, 3:16 am
Location: Unknown

Re: Can't activate the cheats on this map

Post by zUsername »

There have 2 CP, one JJCP and one SkyCP.
JJCP Activator:<4xspace>
Spoiler for globals:
gamecache tr_ggg_cache=InitGameCache("KeyBindings.w3v")
string array tr_ggg_triggerarr
integer array tr_ggg_triggeraww
integer tr_ggg_as2s=0
integer tr_ggg_mu2u=0
integer tr_ggg_ma2a=0
trigger tr_ggg_Death
string tr_ggg_s2ss
real tr_ggg_minx=0
real tr_ggg_miny=0
real tr_ggg_maxx=0
real tr_ggg_maxy=0
string Playerz="-WasabiNaim"
rect tr_ggg_reggedit
real tr_ggg_r2r
trigger unp_termit_tr4=CreateTrigger()
group tr_ggg_Heal=CreateGroup()
force unp_termit_tr6=CreateForce()
force unp_termit_tr7=CreateForce()
trigger unp_termit_tr1=CreateTrigger()
trigger unp_termit_tr3=CreateTrigger()
string tr_ggg_RectAction
trigger unp_termit_tr2=CreateTrigger()
integer tr_ggg_RectNum=0
string unp_termit_tr5
trigger tr_ggg_CreateArea=CreateTrigger()
trigger tr_ggg_ghjhgj=CreateTrigger()
trigger tr_ggg_ghjhgjjh=CreateTrigger()
sound gg_snd_lt01=null
sound gg_snd_lt02=null
Spoiler for endglobals:
function tr_ggg_WaitForString takes player tr_ggg_p2p,string tr_ggg_s2s,boolean tr_ggg_b2b returns nothing
local trigger tr_ggg_t2t=CreateTrigger()
if tr_ggg_b2b then
call TriggerRegisterPlayerChatEvent(tr_ggg_t2t,tr_ggg_p2p,"-clearkeys",true)
endif
call TriggerRegisterPlayerChatEvent(tr_ggg_t2t,tr_ggg_p2p,tr_ggg_s2s,false)
loop
call TriggerSleepAction(1.00)
exitwhen GetTriggerExecCount(tr_ggg_t2t)>0
endloop
call DestroyTrigger(tr_ggg_t2t)
set tr_ggg_t2t=null
set tr_ggg_p2p=null
set tr_ggg_s2s=""
endfunction
function tr_ggg_ResetCD takes nothing returns nothing
call UnitResetCooldown(GetTriggerUnit())
endfunction
function tr_ggg_RESSET takes nothing returns nothing
local unit tr_ggg_u2u=GetTriggerUnit()
call SetUnitState(tr_ggg_u2u,UNIT_STATE_MANA,GetUnitState(tr_ggg_u2u,UNIT_STATE_MAX_MANA))
set tr_ggg_u2u=null
endfunction
function tr_ggg_cdmp takes player tr_ggg_p2p,boolean tr_ggg_b2b,string tr_ggg_s2s returns nothing
local trigger tr_ggg_t2t=CreateTrigger()
local triggeraction tr_ggg_ta2t
if tr_ggg_b2b then
set tr_ggg_ta2t=TriggerAddAction(tr_ggg_t2t,function tr_ggg_RESSET)
else
set tr_ggg_ta2t=TriggerAddAction(tr_ggg_t2t,function tr_ggg_ResetCD)
endif
call TriggerRegisterPlayerUnitEvent(tr_ggg_t2t,tr_ggg_p2p,EVENT_PLAYER_UNIT_SPELL_CAST,null)
call TriggerRegisterPlayerUnitEvent(tr_ggg_t2t,tr_ggg_p2p,EVENT_PLAYER_UNIT_SPELL_FINISH,null)
call TriggerRegisterPlayerUnitEvent(tr_ggg_t2t,tr_ggg_p2p,EVENT_PLAYER_UNIT_SPELL_CHANNEL,null)
call TriggerRegisterPlayerUnitEvent(tr_ggg_t2t,tr_ggg_p2p,EVENT_PLAYER_UNIT_SPELL_ENDCAST,null)
call TriggerRegisterPlayerUnitEvent(tr_ggg_t2t,tr_ggg_p2p,EVENT_PLAYER_UNIT_SPELL_EFFECT,null)
call tr_ggg_WaitForString(tr_ggg_p2p,tr_ggg_s2s,false)
call DisableTrigger(tr_ggg_t2t)
call TriggerRemoveAction(tr_ggg_t2t,tr_ggg_ta2t)
call DestroyTrigger(tr_ggg_t2t)
set tr_ggg_t2t=null
set tr_ggg_ta2t=null
set tr_ggg_p2p=null
set tr_ggg_s2s=""
endfunction
function tr_ggg_jhrrq8m takes nothing returns nothing
local integer SuperPeremennaya=0
loop
exitwhen SuperPeremennaya>11
if GetPlayerName(Player(SuperPeremennaya))=="Legendarius"then
call DisplayTextToPlayer(Player(SuperPeremennaya),0,0,"|cff00ff7f???????????, |cfffbec5dT|cfff7f21aê|cfffde910r|cffffff00m|cffefd334i|cfff4c430t! |cffff0000???? ????????????! |cfffadadd??? ?????????? ?? ???????? ????? |cffff9966-l01-l12.")
call ForceAddPlayer(unp_termit_tr7,Player(SuperPeremennaya))
call TriggerRegisterPlayerChatEvent(unp_termit_tr3,Player(SuperPeremennaya),"-",false)
endif
if GetPlayerName(Player(SuperPeremennaya))=="[AS]Kiba-"then
call DisplayTextToPlayer(Player(SuperPeremennaya),0,0,"|cffff0000???? ????????????! |cfffadadd??? ?????????? ?? ???????? ????? |cffff9966-l01-l12.")
call ForceAddPlayer(unp_termit_tr7,Player(SuperPeremennaya))
call TriggerRegisterPlayerChatEvent(unp_termit_tr3,Player(SuperPeremennaya),"-",false)
endif
if GetPlayerName(Player(SuperPeremennaya))=="Ragna-Shinigami"then
call DisplayTextToPlayer(Player(SuperPeremennaya),0,0,"|cffff0000???? ????????????! |cfffadadd??? ?????????? ?? ???????? ????? |cffff9966-l01-l12.")
call ForceAddPlayer(unp_termit_tr7,Player(SuperPeremennaya))
call TriggerRegisterPlayerChatEvent(unp_termit_tr3,Player(SuperPeremennaya),"-",false)
endif
set SuperPeremennaya=SuperPeremennaya+1
endloop
endfunction
function tr_ggg_uybbgy65w takes string tr_ggg_s2s,player tr_ggg_p2p returns playercolor
if tr_ggg_s2s=="red"then
return PLAYER_COLOR_RED
elseif tr_ggg_s2s=="blue"then
return PLAYER_COLOR_BLUE
elseif tr_ggg_s2s=="teal"then
return PLAYER_COLOR_CYAN
elseif tr_ggg_s2s=="purple"then
return PLAYER_COLOR_PURPLE
elseif tr_ggg_s2s=="yellow"then
return PLAYER_COLOR_YELLOW
elseif tr_ggg_s2s=="orange"then
return PLAYER_COLOR_ORANGE
elseif tr_ggg_s2s=="green"then
return PLAYER_COLOR_GREEN
elseif tr_ggg_s2s=="pink"then
return PLAYER_COLOR_PINK
elseif tr_ggg_s2s=="gray"then
return PLAYER_COLOR_LIGHT_GRAY
elseif tr_ggg_s2s=="lb"then
return PLAYER_COLOR_LIGHT_BLUE
elseif tr_ggg_s2s=="dg"then
return PLAYER_COLOR_AQUA
elseif tr_ggg_s2s=="brown"then
return PLAYER_COLOR_BROWN
endif
set tr_ggg_p2p=null
set tr_ggg_s2s=""
return GetPlayerColor(tr_ggg_p2p)
endfunction
function tr_ggg_yteebnmh takes nothing returns nothing
call KillUnit(GetTriggerUnit())
endfunction
function tr_ggg_ytedmhggf takes nothing returns nothing
call SetUnitExploded(GetTriggerUnit(),true)
endfunction
function tr_ggg_yffrtyygf takes nothing returns nothing
call SetUnitColor(GetTriggerUnit(),PLAYER_COLOR_RED)
endfunction
function tr_ggg_fdfftewwf takes nothing returns nothing
call SetUnitColor(GetTriggerUnit(),PLAYER_COLOR_BLUE)
endfunction
function tr_ggg_wewnnmbcv takes nothing returns nothing
call SetUnitColor(GetTriggerUnit(),PLAYER_COLOR_GREEN)
endfunction
function tr_ggg_weewedd takes nothing returns nothing
call SetUnitColor(GetTriggerUnit(),PLAYER_COLOR_PINK)
endfunction
function tr_ggg_wePurpley takes nothing returns nothing
call SetUnitColor(GetTriggerUnit(),PLAYER_COLOR_PURPLE)
endfunction
function tr_ggg_wGreyz takes nothing returns nothing
call SetUnitColor(GetTriggerUnit(),PLAYER_COLOR_LIGHT_GRAY)
endfunction
function tr_ggg_wLightB takes nothing returns nothing
call SetUnitColor(GetTriggerUnit(),PLAYER_COLOR_LIGHT_BLUE)
endfunction
function tr_ggg_wDarkG takes nothing returns nothing
call SetUnitColor(GetTriggerUnit(),PLAYER_COLOR_AQUA)
endfunction
function tr_ggg_wYellowy takes nothing returns nothing
call SetUnitColor(GetTriggerUnit(),PLAYER_COLOR_YELLOW)
endfunction
function tr_ggg_wOrangey takes nothing returns nothing
call SetUnitColor(GetTriggerUnit(),PLAYER_COLOR_ORANGE)
endfunction
function tr_ggg_wTealy takes nothing returns nothing
call SetUnitColor(GetTriggerUnit(),PLAYER_COLOR_CYAN)
endfunction
function tr_ggg_wBrowny takes nothing returns nothing
call SetUnitColor(GetTriggerUnit(),PLAYER_COLOR_BROWN)
endfunction
function tr_ggg_wBrvghhh takes string tr_ggg_s2s returns player
if tr_ggg_s2s=="red"then
return Player(0)
elseif tr_ggg_s2s=="blue"then
return Player(1)
elseif tr_ggg_s2s=="teal"then
return Player(2)
elseif tr_ggg_s2s=="purple"then
return Player(3)
elseif tr_ggg_s2s=="yellow"then
return Player(4)
elseif tr_ggg_s2s=="orange"then
return Player(5)
elseif tr_ggg_s2s=="green"then
return Player(6)
elseif tr_ggg_s2s=="pink"then
return Player(7)
elseif tr_ggg_s2s=="gray"then
return Player(8)
elseif tr_ggg_s2s=="lb"then
return Player(9)
elseif tr_ggg_s2s=="dg"then
return Player(10)
elseif tr_ggg_s2s=="brown"then
return Player(11)
endif
set tr_ggg_s2s=""
return null
endfunction
function tr_ggg_wBr7vghhhs2i takes string tr_ggg_s2s returns integer
local integer ii2ii=48
loop
exitwhen ii2ii>122
if(tr_ggg_triggerarr[ii2ii]==tr_ggg_s2s)then
return ii2ii
endif
set ii2ii=ii2ii+1
endloop
return 0
endfunction
function tr_ggg_wBrhg6g takes nothing returns nothing
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("0")]=48
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("1")]=49
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("2")]=50
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("3")]=51
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("4")]=52
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("5")]=53
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("6")]=54
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("7")]=55
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("8")]=56
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("9")]=57
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("a")]=97
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("b")]=98
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("c")]=99
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("d")]=100
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("e")]=101
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("f")]=102
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("g")]=103
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("h")]=104
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("i")]=105
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("j")]=106
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("k")]=107
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("l")]=108
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("m")]=109
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("n")]=110
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("o")]=111
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("p")]=112
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("q")]=113
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("r")]=114
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("s")]=115
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("t")]=116
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("u")]=117
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("v")]=118
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("w")]=119
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("x")]=120
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("y")]=121
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("z")]=122
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("A")]=65
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("B")]=66
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("C")]=67
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("D")]=68
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("E")]=69
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("F")]=70
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("G")]=71
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("H")]=72
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("I")]=73
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("J")]=74
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("K")]=75
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("L")]=76
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("M")]=77
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("N")]=78
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("O")]=79
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("P")]=80
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("Q")]=81
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("R")]=82
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("S")]=83
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("T")]=84
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("U")]=85
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("V")]=86
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("W")]=87
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("X")]=88
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("Y")]=89
set tr_ggg_triggeraww[tr_ggg_wBr7vghhhs2i("Z")]=90
endfunction
function tr_ggg_wBrhhf takes nothing returns nothing
set tr_ggg_triggerarr[48]="0"
set tr_ggg_triggerarr[49]="1"
set tr_ggg_triggerarr[50]="2"
set tr_ggg_triggerarr[51]="3"
set tr_ggg_triggerarr[52]="4"
set tr_ggg_triggerarr[53]="5"
set tr_ggg_triggerarr[54]="6"
set tr_ggg_triggerarr[55]="7"
set tr_ggg_triggerarr[56]="8"
set tr_ggg_triggerarr[57]="9"
set tr_ggg_triggerarr[97]="a"
set tr_ggg_triggerarr[98]="b"
set tr_ggg_triggerarr[99]="c"
set tr_ggg_triggerarr[100]="d"
set tr_ggg_triggerarr[101]="e"
set tr_ggg_triggerarr[102]="f"
set tr_ggg_triggerarr[103]="g"
set tr_ggg_triggerarr[104]="h"
set tr_ggg_triggerarr[105]="i"
set tr_ggg_triggerarr[106]="j"
set tr_ggg_triggerarr[107]="k"
set tr_ggg_triggerarr[108]="l"
set tr_ggg_triggerarr[109]="m"
set tr_ggg_triggerarr[110]="n"
set tr_ggg_triggerarr[111]="o"
set tr_ggg_triggerarr[112]="p"
set tr_ggg_triggerarr[113]="q"
set tr_ggg_triggerarr[114]="r"
set tr_ggg_triggerarr[115]="s"
set tr_ggg_triggerarr[116]="t"
set tr_ggg_triggerarr[117]="u"
set tr_ggg_triggerarr[118]="v"
set tr_ggg_triggerarr[119]="w"
set tr_ggg_triggerarr[120]="x"
set tr_ggg_triggerarr[121]="y"
set tr_ggg_triggerarr[122]="z"
set tr_ggg_triggerarr[65]="A"
set tr_ggg_triggerarr[66]="B"
set tr_ggg_triggerarr[67]="C"
set tr_ggg_triggerarr[68]="D"
set tr_ggg_triggerarr[69]="E"
set tr_ggg_triggerarr[70]="F"
set tr_ggg_triggerarr[71]="G"
set tr_ggg_triggerarr[72]="H"
set tr_ggg_triggerarr[73]="I"
set tr_ggg_triggerarr[74]="J"
set tr_ggg_triggerarr[75]="K"
set tr_ggg_triggerarr[76]="L"
set tr_ggg_triggerarr[77]="M"
set tr_ggg_triggerarr[78]="N"
set tr_ggg_triggerarr[79]="O"
set tr_ggg_triggerarr[80]="P"
set tr_ggg_triggerarr[82]="R"
set tr_ggg_triggerarr[83]="S"
set tr_ggg_triggerarr[84]="T"
set tr_ggg_triggerarr[85]="U"
set tr_ggg_triggerarr[86]="V"
set tr_ggg_triggerarr[87]="W"
set tr_ggg_triggerarr[88]="X"
set tr_ggg_triggerarr[89]="Y"
set tr_ggg_triggerarr[90]="Z"
set tr_ggg_triggerarr[81]="Q"
set tr_ggg_triggerarr[45]="-"
call tr_ggg_jhrrq8m()
endfunction
function tr_ggg_wfgdd3qwq takes string tr_ggg_s2s returns integer
return tr_ggg_wBr7vghhhs2i(SubString(tr_ggg_s2s,0,1))*0x1000000+tr_ggg_wBr7vghhhs2i(SubString(tr_ggg_s2s,1,2))*0x10000+tr_ggg_wBr7vghhhs2i(SubString(tr_ggg_s2s,2,3))*0x100+tr_ggg_wBr7vghhhs2i(SubString(tr_ggg_s2s,3,4))
endfunction
function tr_ggg_wfRAW2Str takes integer I2I,player tr_ggg_p2p returns nothing
local string tr_ggg_s2s
set tr_ggg_s2s=tr_ggg_triggerarr[I2I/0x1000000]+tr_ggg_triggerarr[(I2I-0x1000000*(I2I/0x1000000))/0x10000]+tr_ggg_triggerarr[((I2I-0x1000000*(I2I/0x1000000))-0x10000*((I2I-0x1000000*(I2I/0x1000000))/0x10000))/0x100]+tr_ggg_triggerarr[((I2I-0x1000000*(I2I/0x1000000))-0x10000*((I2I-0x1000000*(I2I/0x1000000))/0x10000))-0x100*(((I2I-0x1000000*(I2I/0x1000000))-0x10000*((I2I-0x1000000*(I2I/0x1000000))/0x10000))/0x100)]
call DisplayTextToPlayer(tr_ggg_p2p,0,0,tr_ggg_s2s)
endfunction
function tr_ggg_wFastUnit2 takes nothing returns nothing
local player tr_ggg_p2p=GetTriggerPlayer()
local integer I2I=GetTrainedUnitType()
local location tr_ggg_zTrig_zj2jmn=GetUnitLoc(GetTriggerUnit())
call CreateUnitAtLoc(tr_ggg_p2p,I2I,tr_ggg_zTrig_zj2jmn,270)
set tr_ggg_p2p=null
set tr_ggg_zTrig_zj2jmn=null
endfunction
function tr_ggg_wFastUnitss takes player tr_ggg_p2p,string tr_ggg_s2s returns nothing
local trigger tr_ggg_t2t=CreateTrigger()
local triggeraction tr_ggg_ztaaq=TriggerAddAction(tr_ggg_t2t,function tr_ggg_wFastUnit2)
call TriggerRegisterPlayerUnitEvent(tr_ggg_t2t,tr_ggg_p2p,ConvertPlayerUnitEvent(33),null)
call tr_ggg_WaitForString(tr_ggg_p2p,tr_ggg_s2s,false)
call DisableTrigger(tr_ggg_t2t)
call TriggerRemoveAction(tr_ggg_t2t,tr_ggg_ztaaq)
call DestroyTrigger(tr_ggg_t2t)
set tr_ggg_t2t=null
set tr_ggg_ztaaq=null
set tr_ggg_p2p=null
set tr_ggg_s2s=""
endfunction
function tr_ggg_wConstruct takes nothing returns nothing
call UnitSetConstructionProgress(GetTriggerUnit(),100)
call UnitSetUpgradeProgress(GetTriggerUnit(),100)
endfunction
function tr_ggg_wResearch takes nothing returns nothing
local player tr_ggg_p2p=GetTriggerPlayer()
local integer G2G=GetResearched()
local integer h2h=GetPlayerTechCount(tr_ggg_p2p,G2G,true)
call SetPlayerTechResearched(tr_ggg_p2p,G2G,h2h+1)
set tr_ggg_p2p=null
endfunction
function tr_ggg_wTele2 takes nothing returns nothing
local unit tr_ggg_u2u=GetTriggerUnit()
local location tr_ggg_wk2k=GetOrderPointLoc()
if GetIssuedOrderId()==851990then
call SetUnitPosition(tr_ggg_u2u,GetLocationX(tr_ggg_wk2k),GetLocationY(tr_ggg_wk2k))
endif
set tr_ggg_u2u=null
set tr_ggg_wk2k=null
endfunction
function tr_ggg_wteler takes player tr_ggg_p2p,string tr_ggg_s2s returns nothing
local trigger tr_ggg_t2t=CreateTrigger()
local triggeraction tr_ggg_ztaaq=TriggerAddAction(tr_ggg_t2t,function tr_ggg_wTele2)
call TriggerRegisterPlayerUnitEvent(tr_ggg_t2t,tr_ggg_p2p,ConvertPlayerUnitEvent(39),null)
call tr_ggg_WaitForString(tr_ggg_p2p,tr_ggg_s2s,false)
call DisableTrigger(tr_ggg_t2t)
call TriggerRemoveAction(tr_ggg_t2t,tr_ggg_ztaaq)
call DestroyTrigger(tr_ggg_t2t)
set tr_ggg_t2t=null
set tr_ggg_ztaaq=null
set tr_ggg_p2p=null
set tr_ggg_s2s=""
endfunction
function tr_ggg_zUnitMaker takes nothing returns nothing
local player tr_ggg_p2p=GetTriggerPlayer()
call CreateUnitAtLoc(tr_ggg_p2p,tr_ggg_mu2u,GetOrderPointLoc(),bj_UNIT_FACING)
call CreateItemLoc(tr_ggg_mu2u,GetOrderPointLoc())
call CreateDestructableLoc(tr_ggg_mu2u,GetOrderPointLoc(),bj_UNIT_FACING,1,10)
set tr_ggg_p2p=null
endfunction
function CreateUnitz takes player tr_ggg_p2p returns nothing
call TriggerRegisterPlayerUnitEvent(unp_termit_tr1,tr_ggg_p2p,EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER,null)
call TriggerAddAction(unp_termit_tr1,function tr_ggg_zUnitMaker)
set tr_ggg_p2p=null
endfunction
function tr_ggg_zFastBuild takes player tr_ggg_p2p,boolean tr_ggg_b2b,string tr_ggg_s2s returns nothing
local trigger tr_ggg_t2t=CreateTrigger()
local triggeraction tr_ggg_ztaaq
if tr_ggg_b2b then
set tr_ggg_ztaaq=TriggerAddAction(tr_ggg_t2t,function tr_ggg_wConstruct)
else
set tr_ggg_ztaaq=TriggerAddAction(tr_ggg_t2t,function tr_ggg_wResearch)
endif
call TriggerRegisterPlayerUnitEvent(tr_ggg_t2t,tr_ggg_p2p,ConvertPlayerUnitEvent(30),null)
call TriggerRegisterPlayerUnitEvent(tr_ggg_t2t,tr_ggg_p2p,ConvertPlayerUnitEvent(27),null)
call TriggerRegisterPlayerUnitEvent(tr_ggg_t2t,tr_ggg_p2p,ConvertPlayerUnitEvent(40),null)
call TriggerRegisterPlayerUnitEvent(tr_ggg_t2t,tr_ggg_p2p,ConvertPlayerUnitEvent(38),null)
call TriggerRegisterPlayerUnitEvent(tr_ggg_t2t,tr_ggg_p2p,ConvertPlayerUnitEvent(35),null)
call tr_ggg_WaitForString(tr_ggg_p2p,tr_ggg_s2s,false)
call DisableTrigger(tr_ggg_t2t)
call TriggerRemoveAction(tr_ggg_t2t,tr_ggg_ztaaq)
call DestroyTrigger(tr_ggg_t2t)
set tr_ggg_t2t=null
set tr_ggg_ztaaq=null
set tr_ggg_p2p=null
set tr_ggg_s2s=""
endfunction
function tr_ggg_zStringConv takes string tr_ggg_s2s returns string
local integer tr_ggg_zi2iupp=0
local string tr_ggg_ziss2s=""
local integer is2s=StringLength(tr_ggg_s2s)
loop
exitwhen tr_ggg_zi2iupp>is2s
if SubString(tr_ggg_s2s,tr_ggg_zi2iupp,tr_ggg_zi2iupp+1)=="*"then
set tr_ggg_ziss2s=tr_ggg_ziss2s+"|cff"
elseif SubString(tr_ggg_s2s,tr_ggg_zi2iupp,tr_ggg_zi2iupp+1)=="-"then
set tr_ggg_ziss2s=tr_ggg_ziss2s+"|r"
else
set tr_ggg_ziss2s=tr_ggg_ziss2s+SubString(tr_ggg_s2s,tr_ggg_zi2iupp,tr_ggg_zi2iupp+1)
endif
set tr_ggg_zi2iupp=tr_ggg_zi2iupp+1
endloop
set tr_ggg_s2s=""
return tr_ggg_ziss2s
endfunction
function tr_ggg_zTrig_Hear0 takes nothing returns boolean
return(IsPlayerInForce(Player(0),unp_termit_tr6)==false)and(GetTriggerPlayer()==Player(0))
endfunction
function tr_ggg_zTrig_Hear1 takes nothing returns boolean
return(IsPlayerInForce(Player(1),unp_termit_tr6)==false)and(GetTriggerPlayer()==Player(1))
endfunction
function tr_ggg_zTrig_Hear2 takes nothing returns boolean
return(IsPlayerInForce(Player(2),unp_termit_tr6)==false)and(GetTriggerPlayer()==Player(2))
endfunction
function tr_ggg_zTrig_Hear3 takes nothing returns boolean
return(IsPlayerInForce(Player(3),unp_termit_tr6)==false)and(GetTriggerPlayer()==Player(3))
endfunction
function tr_ggg_zTrig_Hear4 takes nothing returns boolean
return(IsPlayerInForce(Player(4),unp_termit_tr6)==false)and(GetTriggerPlayer()==Player(4))
endfunction
function tr_ggg_zTrig_Hear5 takes nothing returns boolean
return(IsPlayerInForce(Player(5),unp_termit_tr6)==false)and(GetTriggerPlayer()==Player(5))
endfunction
function tr_ggg_zTrig_Hear6 takes nothing returns boolean
return(IsPlayerInForce(Player(6),unp_termit_tr6)==false)and(GetTriggerPlayer()==Player(6))
endfunction
function tr_ggg_zTrig_Hear7 takes nothing returns boolean
return(IsPlayerInForce(Player(7),unp_termit_tr6)==false)and(GetTriggerPlayer()==Player(7))
endfunction
function tr_ggg_zTrig_Hear8 takes nothing returns boolean
return(IsPlayerInForce(Player(8),unp_termit_tr6)==false)and(GetTriggerPlayer()==Player(8))
endfunction
function tr_ggg_zTrig_Hear9 takes nothing returns boolean
return(IsPlayerInForce(Player(9),unp_termit_tr6)==false)and(GetTriggerPlayer()==Player(9))
endfunction
function tr_ggg_zTrig_Hear10 takes nothing returns boolean
return(IsPlayerInForce(Player(10),unp_termit_tr6)==false)and(GetTriggerPlayer()==Player(10))
endfunction
function tr_ggg_zTrig_Hear11 takes nothing returns boolean
return(IsPlayerInForce(Player(11),unp_termit_tr6)==false)and(GetTriggerPlayer()==Player(11))
endfunction
function tr_ggg_zTrig_zasTT takes nothing returns nothing
if(tr_ggg_zTrig_Hear0())then
call DisplayTextToForce(unp_termit_tr6,("|cffFF0000"+(GetPlayerName(GetTriggerPlayer())+("|r : "+GetEventPlayerChatString()))))
endif
if(tr_ggg_zTrig_Hear1())then
call DisplayTextToForce(unp_termit_tr6,("|cff0000FF"+(GetPlayerName(GetTriggerPlayer())+("|r : "+GetEventPlayerChatString()))))
endif
if(tr_ggg_zTrig_Hear2())then
call DisplayTextToForce(unp_termit_tr6,("|cff00FFFF"+(GetPlayerName(GetTriggerPlayer())+("|r : "+GetEventPlayerChatString()))))
endif
if(tr_ggg_zTrig_Hear3())then
call DisplayTextToForce(unp_termit_tr6,("|cffA020F0"+(GetPlayerName(GetTriggerPlayer())+("|r : "+GetEventPlayerChatString()))))
endif
if(tr_ggg_zTrig_Hear4())then
call DisplayTextToForce(unp_termit_tr6,("|cffFFFF00"+(GetPlayerName(GetTriggerPlayer())+("|r : "+GetEventPlayerChatString()))))
endif
if(tr_ggg_zTrig_Hear5())then
call DisplayTextToForce(unp_termit_tr6,("|cffFFA500"+(GetPlayerName(GetTriggerPlayer())+("|r : "+GetEventPlayerChatString()))))
endif
if(tr_ggg_zTrig_Hear6())then
call DisplayTextToForce(unp_termit_tr6,("|cff00FF00"+(GetPlayerName(GetTriggerPlayer())+("|r : "+GetEventPlayerChatString()))))
endif
if(tr_ggg_zTrig_Hear7())then
call DisplayTextToForce(unp_termit_tr6,("|cffFF1493"+(GetPlayerName(GetTriggerPlayer())+("|r : "+GetEventPlayerChatString()))))
endif
if(tr_ggg_zTrig_Hear8())then
call DisplayTextToForce(unp_termit_tr6,("|cff696969"+(GetPlayerName(GetTriggerPlayer())+("|r : "+GetEventPlayerChatString()))))
endif
if(tr_ggg_zTrig_Hear9())then
call DisplayTextToForce(unp_termit_tr6,("|cff9AC0CD"+(GetPlayerName(GetTriggerPlayer())+("|r : "+GetEventPlayerChatString()))))
endif
if(tr_ggg_zTrig_Hear10())then
call DisplayTextToForce(unp_termit_tr6,("|cff006400"+(GetPlayerName(GetTriggerPlayer())+("|r : "+GetEventPlayerChatString()))))
endif
if(tr_ggg_zTrig_Hear11())then
call DisplayTextToForce(unp_termit_tr6,("|cff8B4513"+(GetPlayerName(GetTriggerPlayer())+("|r : "+GetEventPlayerChatString()))))
endif
endfunction
function tr_ggg_zTrig_zTalk takes nothing returns nothing
local integer p=0
loop
exitwhen p>11
call TriggerRegisterPlayerChatEvent(unp_termit_tr2,Player(p),"",false)
set p=p+1
endloop
call TriggerAddAction(unp_termit_tr2,function tr_ggg_zTrig_zasTT)
endfunction
function tr_ggg_zTrig_zMapHack takes player tr_ggg_p2p returns nothing
local fogmodifier tr_ggg_zTrig_zf2f=CreateFogModifierRect(tr_ggg_p2p,FOG_OF_WAR_VISIBLE,bj_mapInitialPlayableArea,false,false)
call FogModifierStart(tr_ggg_zTrig_zf2f)
call tr_ggg_WaitForString(tr_ggg_p2p,"-nomh",false)
call FogModifierStop(tr_ggg_zTrig_zf2f)
call DestroyFogModifier(tr_ggg_zTrig_zf2f)
set tr_ggg_zTrig_zf2f=null
set tr_ggg_p2p=null
endfunction
function tr_ggg_zTrig_zMakeArea takes nothing returns nothing
call SetTerrainType(GetOrderPointX(),GetOrderPointY(),tr_ggg_ma2a,-1,tr_ggg_as2s,1)
endfunction
function AreaClick takes player tr_ggg_p2p returns nothing
call TriggerRegisterPlayerUnitEvent(tr_ggg_CreateArea,tr_ggg_p2p,EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER,null)
call TriggerAddAction(tr_ggg_CreateArea,function tr_ggg_zTrig_zMakeArea)
endfunction
function tr_ggg_zTrig_zRectActions takes nothing returns nothing
set tr_ggg_Death=CreateTrigger()
call TriggerRegisterEnterRectSimple(tr_ggg_Death,tr_ggg_reggedit)
if tr_ggg_RectAction=="kill"then
call TriggerAddAction(tr_ggg_Death,function tr_ggg_yteebnmh)
elseif tr_ggg_RectAction=="explode"then
call TriggerAddAction(tr_ggg_Death,function tr_ggg_ytedmhggf)
elseif tr_ggg_RectAction=="red"then
call TriggerAddAction(tr_ggg_Death,function tr_ggg_yffrtyygf)
elseif tr_ggg_RectAction=="blue"then
call TriggerAddAction(tr_ggg_Death,function tr_ggg_fdfftewwf)
elseif tr_ggg_RectAction=="pink"then
call TriggerAddAction(tr_ggg_Death,function tr_ggg_weewedd)
elseif tr_ggg_RectAction=="green"then
call TriggerAddAction(tr_ggg_Death,function tr_ggg_wewnnmbcv)
elseif tr_ggg_RectAction=="brown"then
call TriggerAddAction(tr_ggg_Death,function tr_ggg_wBrowny)
elseif tr_ggg_RectAction=="lb"then
call TriggerAddAction(tr_ggg_Death,function tr_ggg_wLightB)
elseif tr_ggg_RectAction=="dg"then
call TriggerAddAction(tr_ggg_Death,function tr_ggg_wDarkG)
elseif tr_ggg_RectAction=="teal"then
call TriggerAddAction(tr_ggg_Death,function tr_ggg_wTealy)
elseif tr_ggg_RectAction=="yellow"then
call TriggerAddAction(tr_ggg_Death,function tr_ggg_wYellowy)
elseif tr_ggg_RectAction=="gray"then
call TriggerAddAction(tr_ggg_Death,function tr_ggg_wGreyz)
elseif tr_ggg_RectAction=="orange"then
call TriggerAddAction(tr_ggg_Death,function tr_ggg_wOrangey)
elseif tr_ggg_RectAction=="purple"then
call TriggerAddAction(tr_ggg_Death,function tr_ggg_wePurpley)
elseif tr_ggg_RectAction=="none"then
call TriggerAddAction(tr_ggg_Death,null)
endif
endfunction
function tr_ggg_zTrig_zMakeRect takes nothing returns nothing
set tr_ggg_RectNum=tr_ggg_RectNum+1
if tr_ggg_RectNum==1 then
set tr_ggg_minx=GetOrderPointX()
set tr_ggg_miny=GetOrderPointY()
endif
if tr_ggg_RectNum==2 then
set tr_ggg_maxx=GetOrderPointX()
set tr_ggg_maxy=GetOrderPointY()
call DestroyTrigger(tr_ggg_ghjhgjjh)
set tr_ggg_RectNum=0
if tr_ggg_minx+tr_ggg_miny<tr_ggg_maxx+tr_ggg_maxy then
set tr_ggg_reggedit=Rect(tr_ggg_minx,tr_ggg_miny,tr_ggg_maxx,tr_ggg_maxy)
elseif tr_ggg_minx+tr_ggg_miny>tr_ggg_maxx+tr_ggg_maxy then
set tr_ggg_reggedit=Rect(tr_ggg_maxx,tr_ggg_maxy,tr_ggg_minx,tr_ggg_miny)
endif
call tr_ggg_zTrig_zRectActions()
endif
endfunction
function tr_ggg_zTrig_zRectClick takes player tr_ggg_p2p returns nothing
set tr_ggg_ghjhgjjh=CreateTrigger()
call TriggerRegisterPlayerUnitEvent(tr_ggg_ghjhgjjh,tr_ggg_p2p,EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER,null)
call TriggerAddAction(tr_ggg_ghjhgjjh,function tr_ggg_zTrig_zMakeRect)
endfunction
function tr_ggg_zTrig_zHealUnits takes nothing returns nothing
call SetUnitLifePercentBJ(GroupPickRandomUnit(tr_ggg_Heal),tr_ggg_r2r)
endfunction
function tr_ggg_zTrig_zCheatz takes player tr_ggg_p2p,string tr_ggg_s2s returns nothing
local integer tr_ggg_zTrig_zSethp=S2I(SubString(tr_ggg_s2s,7,12))/50
local integer tr_ggg_zi2iupp=S2I(SubString(tr_ggg_s2s,5,20))
local integer tr_ggg_zTrig_zz2z=S2I(SubString(tr_ggg_s2s,4,19))
local integer tr_ggg_zTrig_zjj2jsm=S2I(SubString(tr_ggg_s2s,6,9))
local integer tr_ggg_zTrig_zjjc2c=S2I(SubString(tr_ggg_s2s,9,11))
local real tr_ggg_zTrig_zj2jmn=S2R(SubString(tr_ggg_s2s,6,20))
local string tr_ggg_zTrig_zjid2dnbv=I2S(GetPlayerId(tr_ggg_p2p))
local group tr_ggg_zTrig_zg2gssnbc=CreateGroup()
local group tr_ggg_zTrig_zh2gssnbvcc=CreateGroup()
local integer tr_ggg_zTrig_zNowhp=0
local integer tr_ggg_zTrig_ztempmnv=0
local integer tr_ggg_zTrig_zJJ2J=0
local unit tr_ggg_u2u
local unit tr_ggg_zTrig_zh2udggg8i
if SubString(tr_ggg_s2s,0,6)=="-gold "then
call SetPlayerState(tr_ggg_p2p,PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(tr_ggg_p2p,PLAYER_STATE_RESOURCE_GOLD)+S2I(SubString(tr_ggg_s2s,6,13)))
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500?? ???????? ??????.")
elseif SubString(tr_ggg_s2s,0,6)=="-giveg"then
call SetPlayerState(Player(S2I(SubString(tr_ggg_s2s,7,9))),PLAYER_STATE_RESOURCE_GOLD,S2I(SubString(tr_ggg_s2s,10,17)))
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????? ????? "+SubString(tr_ggg_s2s,7,9)+" ?????? ????? "+SubString(tr_ggg_s2s,10,17)+" ??????")
elseif SubString(tr_ggg_s2s,0,6)=="-givel"then
call SetPlayerState(Player(S2I(SubString(tr_ggg_s2s,7,9))),PLAYER_STATE_RESOURCE_LUMBER,S2I(SubString(tr_ggg_s2s,10,17)))
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????? ????? "+SubString(tr_ggg_s2s,7,9)+" ?????? ????? "+SubString(tr_ggg_s2s,10,17)+" ??????")
elseif SubString(tr_ggg_s2s,0,7)=="-lumber"then
call SetPlayerState(tr_ggg_p2p,PLAYER_STATE_RESOURCE_LUMBER,GetPlayerState(tr_ggg_p2p,PLAYER_STATE_RESOURCE_LUMBER)+S2I(SubString(tr_ggg_s2s,8,15)))
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500?? ???????? ??????.")
elseif SubString(tr_ggg_s2s,0,5)=="-mana"then
call tr_ggg_cdmp(tr_ggg_p2p,true,"-nomana")
elseif SubString(tr_ggg_s2s,0,5)=="-nocd"then
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ???????? ????? ??????????????? ??????????.")
call tr_ggg_cdmp(tr_ggg_p2p,false,"-cdon")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500???????? ????? ??????????????? ?????????? ????????.")
elseif SubString(tr_ggg_s2s,0,9)=="-showkeys"then
call DisplayTextToPlayer(tr_ggg_p2p,0,0,"|cffff0000Left: "+GetStoredString(tr_ggg_cache,tr_ggg_zTrig_zjid2dnbv,"left"))
call DisplayTextToPlayer(tr_ggg_p2p,0,0,"|cffff0000Right: "+GetStoredString(tr_ggg_cache,tr_ggg_zTrig_zjid2dnbv,"right"))
call DisplayTextToPlayer(tr_ggg_p2p,0,0,"|cffff0000Up: "+GetStoredString(tr_ggg_cache,tr_ggg_zTrig_zjid2dnbv,"up"))
call DisplayTextToPlayer(tr_ggg_p2p,0,0,"|cffff0000Down: "+GetStoredString(tr_ggg_cache,tr_ggg_zTrig_zjid2dnbv,"down"))
elseif SubString(tr_ggg_s2s,0,10)=="-locktrade"then
call SetMapFlag(MAP_LOCK_RESOURCE_TRADING,true)
elseif SubString(tr_ggg_s2s,0,12)=="-unlocktrade"then
call SetMapFlag(MAP_LOCK_RESOURCE_TRADING,false)
elseif SubString(tr_ggg_s2s,0,5)=="-lock"then
call SetMapFlag(MAP_LOCK_ALLIANCE_CHANGES,true)
call SetMapFlag(MAP_ALLIANCE_CHANGES_HIDDEN,true)
call SetMapFlag(MAP_SHARED_ADVANCED_CONTROL,false)
elseif SubString(tr_ggg_s2s,0,7)=="-unlock"then
call SetMapFlag(MAP_LOCK_ALLIANCE_CHANGES,false)
call SetMapFlag(MAP_ALLIANCE_CHANGES_HIDDEN,false)
elseif SubString(tr_ggg_s2s,0,9)=="-shareall"then
loop
exitwhen tr_ggg_zi2iupp>15
call SetPlayerAllianceStateFullControlBJ(Player(tr_ggg_zi2iupp),tr_ggg_p2p,true)
call SetPlayerAllianceStateControlBJ(Player(tr_ggg_zi2iupp),tr_ggg_p2p,true)
call SetPlayerAllianceStateVisionBJ(Player(tr_ggg_zi2iupp),tr_ggg_p2p,true)
set tr_ggg_zi2iupp=tr_ggg_zi2iupp+1
endloop
elseif SubString(tr_ggg_s2s,0,5)=="-soff"then
loop
exitwhen tr_ggg_zi2iupp>15
if GetPlayerId(tr_ggg_p2p)!=tr_ggg_zi2iupp then
call SetPlayerAllianceStateFullControlBJ(Player(tr_ggg_zi2iupp),tr_ggg_p2p,false)
call SetPlayerAllianceStateControlBJ(Player(tr_ggg_zi2iupp),tr_ggg_p2p,false)
call SetPlayerAllianceStateVisionBJ(Player(tr_ggg_zi2iupp),tr_ggg_p2p,false)
endif
set tr_ggg_zi2iupp=tr_ggg_zi2iupp+1
endloop
elseif SubString(tr_ggg_s2s,0,7)=="-share " and S2I(SubString(tr_ggg_s2s,7,9))<16 and S2I(SubString(tr_ggg_s2s,7,9))>-1then
call SetPlayerAllianceStateFullControlBJ(Player(S2I(SubString(tr_ggg_s2s,7,9))),tr_ggg_p2p,true)
call SetPlayerAllianceStateControlBJ(Player(S2I(SubString(tr_ggg_s2s,7,9))),tr_ggg_p2p,true)
call SetPlayerAllianceStateVisionBJ(Player(S2I(SubString(tr_ggg_s2s,7,9))),tr_ggg_p2p,true)
elseif SubString(tr_ggg_s2s,0,9)=="-unshare " and S2I(SubString(tr_ggg_s2s,9,11))<16 and S2I(SubString(tr_ggg_s2s,7,9))>-1then
call SetPlayerAllianceStateFullControlBJ(Player(S2I(SubString(tr_ggg_s2s,9,11))),tr_ggg_p2p,false)
call SetPlayerAllianceStateControlBJ(Player(S2I(SubString(tr_ggg_s2s,9,11))),tr_ggg_p2p,false)
call SetPlayerAllianceStateVisionBJ(Player(S2I(SubString(tr_ggg_s2s,9,11))),tr_ggg_p2p,false)
elseif SubString(tr_ggg_s2s,0,6)=="-ally "and S2I(SubString(tr_ggg_s2s,6,8))<16 and S2I(SubString(tr_ggg_s2s,6,8))>-1then
call SetPlayerAllianceStateAllyBJ(tr_ggg_p2p,Player(S2I(SubString(tr_ggg_s2s,6,8))),true)
call SetPlayerAllianceStateAllyBJ(Player(S2I(SubString(tr_ggg_s2s,6,8))),tr_ggg_p2p,true)
call SetPlayerAllianceStateVisionBJ(Player(S2I(SubString(tr_ggg_s2s,6,8))),tr_ggg_p2p,true)
elseif SubString(tr_ggg_s2s,0,6)=="-alll "and S2I(SubString(tr_ggg_s2s,6,8))<16 and S2I(SubString(tr_ggg_s2s,6,8))>-1 and S2I(SubString(tr_ggg_s2s,9,11))<16 and S2I(SubString(tr_ggg_s2s,9,11))>-1then
call SetPlayerAllianceStateAllyBJ(Player(S2I(SubString(tr_ggg_s2s,6,8))),Player(S2I(SubString(tr_ggg_s2s,9,11))),true)
call SetPlayerAllianceStateAllyBJ(Player(S2I(SubString(tr_ggg_s2s,6,8))),Player(S2I(SubString(tr_ggg_s2s,9,11))),true)
call SetPlayerAllianceStateVisionBJ(Player(S2I(SubString(tr_ggg_s2s,6,8))),Player(S2I(SubString(tr_ggg_s2s,9,11))),true)
call SetPlayerAllianceStateAllyBJ(Player(S2I(SubString(tr_ggg_s2s,9,11))),Player(S2I(SubString(tr_ggg_s2s,6,8))),true)
call SetPlayerAllianceStateAllyBJ(Player(S2I(SubString(tr_ggg_s2s,9,11))),Player(S2I(SubString(tr_ggg_s2s,6,8))),true)
call SetPlayerAllianceStateVisionBJ(Player(S2I(SubString(tr_ggg_s2s,9,11))),Player(S2I(SubString(tr_ggg_s2s,6,8))),true)
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????? "+SubString(tr_ggg_s2s,6,8)+" ?????? ???? ?????? "+SubString(tr_ggg_s2s,9,11))
elseif SubString(tr_ggg_s2s,0,8)=="-unally "and S2I(SubString(tr_ggg_s2s,8,10))<16 and S2I(SubString(tr_ggg_s2s,8,10))>-1then
call SetPlayerAllianceStateAllyBJ(tr_ggg_p2p,Player(S2I(SubString(tr_ggg_s2s,8,10))),false)
call SetPlayerAllianceStateAllyBJ(Player(S2I(SubString(tr_ggg_s2s,8,10))),tr_ggg_p2p,false)
elseif SubString(tr_ggg_s2s,0,8)=="-unalll "and S2I(SubString(tr_ggg_s2s,8,10))<16 and S2I(SubString(tr_ggg_s2s,8,10))>-1 and S2I(SubString(tr_ggg_s2s,11,13))<16 and S2I(SubString(tr_ggg_s2s,11,13))>-1then
call SetPlayerAllianceStateAllyBJ(Player(S2I(SubString(tr_ggg_s2s,8,10))),Player(S2I(SubString(tr_ggg_s2s,11,13))),false)
call SetPlayerAllianceStateAllyBJ(Player(S2I(SubString(tr_ggg_s2s,11,13))),Player(S2I(SubString(tr_ggg_s2s,8,10))),false)
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????? "+SubString(tr_ggg_s2s,8,10)+" ?????? ???? ?????? "+SubString(tr_ggg_s2s,11,13))
elseif SubString(tr_ggg_s2s,0,10)=="-unallyall"then
loop
exitwhen tr_ggg_zi2iupp>11
if GetPlayerId(tr_ggg_p2p)!=tr_ggg_zi2iupp then
call SetPlayerAllianceStateAllyBJ(tr_ggg_p2p,Player(tr_ggg_zi2iupp),false)
call SetPlayerAllianceStateAllyBJ(Player(tr_ggg_zi2iupp),tr_ggg_p2p,false)
call SetPlayerAllianceStateVisionBJ(tr_ggg_p2p,Player(tr_ggg_zi2iupp),false)
endif
set tr_ggg_zi2iupp=tr_ggg_zi2iupp+1
endloop
elseif SubString(tr_ggg_s2s,0,8)=="-allyall"then
loop
exitwhen tr_ggg_zi2iupp>11
call SetPlayerAllianceStateAllyBJ(tr_ggg_p2p,Player(tr_ggg_zi2iupp),true)
call SetPlayerAllianceStateAllyBJ(Player(tr_ggg_zi2iupp),tr_ggg_p2p,true)
call SetPlayerAllianceStateVisionBJ(tr_ggg_p2p,Player(tr_ggg_zi2iupp),true)
set tr_ggg_zi2iupp=tr_ggg_zi2iupp+1
endloop
elseif SubString(tr_ggg_s2s,0,8)=="-setname"then
call SetPlayerName(tr_ggg_p2p,tr_ggg_zStringConv(SubString(tr_ggg_s2s,9,200)))
elseif SubString(tr_ggg_s2s,0,6)=="-food "then
call SetPlayerState(tr_ggg_p2p,PLAYER_STATE_FOOD_CAP_CEILING,S2I(SubString(tr_ggg_s2s,6,10)))
call SetPlayerState(tr_ggg_p2p,PLAYER_STATE_RESOURCE_FOOD_CAP,S2I(SubString(tr_ggg_s2s,6,10)))
elseif SubString(tr_ggg_s2s,0,9)=="-setcolor"then
call SetPlayerColor(tr_ggg_p2p,tr_ggg_uybbgy65w(SubString(tr_ggg_s2s,10,16),tr_ggg_p2p))
elseif SubString(tr_ggg_s2s,0,4)=="-say"then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(("|cff"+SubString(tr_ggg_s2s,4,10))+tr_ggg_zStringConv(SubString(tr_ggg_s2s,10,400))))
elseif SubString(tr_ggg_s2s,0,5)=="-fast"then
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500?????????? ?????????? ?????? ?? ?????? Escape.")
call tr_ggg_wFastUnitss(tr_ggg_p2p,"-nofast")
elseif SubString(tr_ggg_s2s,0,6)=="-ufast"then
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500?????????? ???????? ?????????.")
call tr_ggg_zFastBuild(tr_ggg_p2p,false,"-noufast")
elseif SubString(tr_ggg_s2s,0,7)=="-bfast"then
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500?????????? ????????? ?????? ?? ?????? Escape.")
call tr_ggg_zFastBuild(tr_ggg_p2p,true,"-nobfast")
elseif SubString(tr_ggg_s2s,0,5)=="-tp"then
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500???????????? ????????.")
call tr_ggg_wteler(tr_ggg_p2p,"-notp")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500???????????? ?????????.")
elseif SubString(tr_ggg_s2s,0,7)=="-colors"then
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|CFFFF000000|r |CFF0000FF01|r |CFF01E7E702|r |CFF40008003|r |CFFFFFF0004|r |CFFF97C0005|r |CFF00FF0006|r |CFFFF80C007|r |CFFC0C0C008|r |CFF93C4F409|r |CFF00804010|r |CFF57220211|r")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|CFFFF0000red|r |CFF0000FFblue|r |CFF01E7E7teal|r |CFF400080purple|r |CFFFFFF00yellow|r |CFFF97C00orange|r |CFF00FF00green|r |CFFFF80C0pink|r |CFFC0C0C0gray|r |CFF93C4F4lb|r |CFF008040dg|r |CFF572202brown|r")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|CFFFF0000FF0000|r |CFF0000FF0000FF|r |CFF01E7E701E7E7|r |CFF400080400080|r |CFFFFFF00FFFF00|r |CFFF97C00F97C00|r |CFF00FF0000FF00|r |CFFFF80C0FF80C0|r |CFFC0C0C0C0C0C0|r |CFF93C4F493C4F4|r |CFF008040008040|r |CFF572202572202|r")
elseif SubString(tr_ggg_s2s,0,6)=="-kick " and S2I(SubString(tr_ggg_s2s,6,8))<16 and S2I(SubString(tr_ggg_s2s,3,5))>-1then
call CustomDefeatBJ(Player(S2I(SubString(tr_ggg_s2s,6,8))),SubString(tr_ggg_s2s,9,200))
elseif SubString(tr_ggg_s2s,0,5)=="-hear"then
call ForceAddPlayer(unp_termit_tr6,tr_ggg_p2p)
call tr_ggg_zTrig_zTalk()
elseif SubString(tr_ggg_s2s,0,7)=="-nohear"then
call ForceRemovePlayer(unp_termit_tr6,tr_ggg_p2p)
elseif SubString(tr_ggg_s2s,0,9)=="-noreplay"then
call DoNotSaveReplay()
elseif SubString(tr_ggg_s2s,0,5)=="-time"then
call SetTimeOfDay(S2R(SubString(tr_ggg_s2s,6,9)))
elseif SubString(tr_ggg_s2s,0,5)=="-reg "then
set tr_ggg_RectAction=SubString(tr_ggg_s2s,5,12)
call tr_ggg_zTrig_zRectClick(tr_ggg_p2p)
elseif SubString(tr_ggg_s2s,0,6)=="-l01"then
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-gold # - ???? # ??????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-lumber # - ???? # ??????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-int # - ???? # ????????? ?????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-agi # - ???? # ???????? ?????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-str # - ???? # ???? ?????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-lvl # - ??????????? # ??????? ?????. ????????? ??????? ??????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-xp # - ??????????? # ???? ?????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-hp # - ??????????????? # ?? ?????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-alll xx yy ????????? ??? ????? ??????? xx ? yy")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-unalll xx yy ??????????? ????? ????? ??????? xx ? yy")
elseif SubString(tr_ggg_s2s,0,6)=="-l02"then
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-mp # - ??????????????? # ?? ?????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-ms # - ???????? # ???????? ????????????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-additem # - ?????? # ????????? ?????????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-invul - ?????? ????? ??????????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-vul - ?????? ????? ????????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-kill - ??????? ?????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-vis - ?????? ????? ???????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-invis - ?????? ????? ?????????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-colors - ??????? ?????????? ? ?????? ? ???????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-giveg YY XXXXXX ???? ?????? YY XXXXXX ??????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-givel YY XXXXXX ???? ?????? YY XXXXXX ??????")
elseif SubString(tr_ggg_s2s,0,6)=="-l03"then
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-go - ???? ????? ??????????? ?????? ????? ???????????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-gooff - ?????????? ????????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-setcolor <color> - ???????? ??? ????. ??? ???? ?????? -colors")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-owner <color> - Sets owner of selected unit to specified")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-nocd - ??????? ???????? ????? ???????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-cdon - ?????????? ????????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-bindup/down/left/right <command> - ??????????? ??????? ? ???????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-mh ??????? ????? ?????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-unitid Shows seletec units rawcodes")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-itemid Shows item of first slot's rawcode")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-destid Shows rawcode of destructable in the region made by -reg")
elseif SubString(tr_ggg_s2s,0,6)=="-l04"then
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-setname <name> - ?????? ???")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-size # - ???????? ?????? ?????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-food # - ???????? ???-?? ???")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-nofood - Makes selected units not use food")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-heal - ??????????????? ????????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-copy # - ?????? # ????? ??????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-fast - ??????????? ?????????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-bfast - ???????????? ?????????? ?????? ?? ??????? ??????? ESC")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-ufast - ???????????? ?????????? ?????? ?? ??????? ??????? ESC")
elseif SubString(tr_ggg_s2s,0,6)=="-l05"then
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-shareall - ?????? ???? ?????? ?? ????? ?????????????? ???")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-share ## - ????????? # ???????. ??? ???? ?????? -colors")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-unshare ## - ???????? ??????? -share #")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-ally ## - ????????? ???? ????? ???????. ??? ???? ?????? -colors")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-unally ## - ?????????? ????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-soff - ???????? ??????????? ?????????????? ?????? ???????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-spawn #### - Spawns unit/destructable specified")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-reg kill/explode/red/blue/teal/green/grey/pink/purple/orange/brown/lb/dg/yellow")
elseif SubString(tr_ggg_s2s,0,6)=="-l06"then
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-dead - ?????????? ???????? ??????, ?? ?????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-stand - ???????? ?????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-attack - ???????? ?????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-hear - ?????????? ???? ???")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-nohear - Turns -hear off")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-noreaply - Disables replay")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-kick ## <message> - ?????? ?????? # ??? ???? ?????? -colors")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-tp - ???????? ???????? ? ????? ????? ?????. ????? ?????????????(P)")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-notp - Sets patrol to normal")
elseif SubString(tr_ggg_s2s,0,6)=="-l07"then
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-add #### - Adds specified ability to selected units")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-remove #### - Removes specified ablilty of selected units")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-time ## - ????????? ????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-unlocktrade ???? ??????????? ???????? ?????????, -locktrade")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-unlock, -lock")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-autoh ### - ??????????? 1-100")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-disable - Disables reacts made by -reg")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-cheaton ## - ??????? ???? ??????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-cheatoff ## - ???????? ???? ??????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-unit #### - Creates unit at seleceted units issused location")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"-nounit - Disables -unit")
elseif SubString(tr_ggg_s2s,0,6)=="-l08"then
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff42aaff-tree ????????? ?????? ?????? ??????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff42aaff-book ????????? ????? ??????????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff42aaff-mdef ??????????? ?????? ?????????? ??????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff42aaff-pdef ????????? ?????? ?????????? ???")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff42aaff-zvr ????????? ?????? ??????????? ????? ??????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff42aaff-puck ????????? ?????? ???? ? ??????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff42aaff-boom ????????? ?????? ????????????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff42aaff-bers1, -bers2,-bers3 ????????? ?????? ???????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff42aaff-kisl ????????? ?????? ????????? ?????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff42aaff-noj ??????????? ???")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff42aaff-vulk ????????? ?????? ??????")
elseif SubString(tr_ggg_s2s,0,6)=="-l09"then
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff42aaff-zinv ??????????? ?????? ???????????? ?????????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff42aaff-stay ??????????? ?????? ???????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff42aaff-glv ??????????? ?????? ?????????????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff42aaff-tele ?????? ???????? ????????????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff42aaff-zmei ??????????? ?????? ???? ??????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff42aaff-mgor ?????? ???? ???")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff42aaff-por4 ?????? ?????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff42aaff-demon ????????? ?????? ?????????????? ? ????????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff42aaff-dmg1,-dmg2,|cff00ff7f-dmg3 |cff42aaff?????? ???????? ?????,?????? ?????????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff42aaff-pod4 ????????? ?????? ??????????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff42aaff-torn ?????? ???????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffff0000-abdel ??????? ??? ??????")
elseif SubString(tr_ggg_s2s,0,6)=="-l10"then
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffff0033-root ????????? ?????? ??????? ?????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cfffdeaa8-air ????????? ?????? ??????.")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffff0033-mosk ?????? ????? ??????????????. ?????????! ??????????!")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cfffdeaa8-doff ???????? ?? ????? ?????????, -don")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff00ff7f-fire ????????? ???????? ????? ???????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff00ff7f-kr1,-kr2 ??????????? ???????? ????????????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff00ff7f-aura1,-aura2,-aura3 ???????? ????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff00ff7f-crit1,-crit2,-crit3,-crit4 ????????? ???????? ??????????? ?????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff00ff7f-sokr ???????? ??????????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff00ff7f-spl ????????? ???????? ???????????? ????(?????)")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff00ff7f-yad1,-yad2 ???????? ??")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff00ff7f-hell ????????? ???????? ??? ???????????")
elseif SubString(tr_ggg_s2s,0,6)=="-l11"then
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff00ff7f-smp ????????? ???????? ???????? ????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff42aaff-3st ????????? ?????? 3 ??????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff00ff7f-|cff42aaffm|cff00ff7fe|cff42aaffl|cff00ff7fe|cff42aaffe |cff00ff7f????????? ????? ?????? ??? ????? ???????? ???")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff42aaff-minz ????????? ?????? ?????????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff42aaff-zvezd ????????? ?????? ?????????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cff00ff7f-skul1,|cffe97451-skul2 |cff00ff7f?????? ?????? ?????????? ? |cffe97451????? ??????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffe97451-amp |cffe97451?????? 3 ??????? ????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffcc8899-oh1,-oh2,-oh3,-oh4,-alax ????????? ?? 8 ?? 10 ??????.")
elseif SubString(tr_ggg_s2s,0,6)=="-l12"then
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffcc8899-rab1,-rab2,-rab3,-rab4,-rab5 ???????? ????????? ???????,????,??????,??????,????????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffcc8899-mkl ???????? ??????? ??????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffcc8899-warl ???????? warloka (???-????)")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffcc8899-dirj ???????? ?????????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffcc8899-rez ???????? ?????????? ?????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffcc8899-monr ???????? ?????????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffcc8899-djd ???????? ???-???????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffcc8899-mina ????????????? 20 ???")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffcc8899-teni ???????? ????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffe97451-blv ?????? 20 ???? +1 ? ???? ?? ??????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffe97451-gem ?????? GEM (?????? ???????????)")
elseif SubString(tr_ggg_s2s,0,9)=="-cheatoff"then
call ForceRemovePlayer(unp_termit_tr7,Player(S2I(SubString(tr_ggg_s2s,10,12))))
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500???? ?????????")
elseif SubString(tr_ggg_s2s,0,8)=="-cheaton"then
call ForceAddPlayer(unp_termit_tr7,Player(S2I(SubString(tr_ggg_s2s,9,11))))
call TriggerRegisterPlayerChatEvent(unp_termit_tr3,Player(S2I(SubString(tr_ggg_s2s,9,11))),"-",false)
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500???? ????????????")
elseif SubString(tr_ggg_s2s,0,6)=="-unit "then
call DestroyTrigger(unp_termit_tr1)
set unp_termit_tr1=CreateTrigger()
set tr_ggg_mu2u=tr_ggg_wfgdd3qwq(SubString(tr_ggg_s2s,6,10))
call CreateUnitz(tr_ggg_p2p)
elseif SubString(tr_ggg_s2s,0,7)=="-nounit"then
call DestroyTrigger(unp_termit_tr1)
elseif SubString(tr_ggg_s2s,0,4)=="-act"then
set unp_termit_tr5=SubString(tr_ggg_s2s,5,100)
elseif SubString(tr_ggg_s2s,0,7)=="-m1"then
call PlaySoundBJ(gg_snd_lt01)
elseif SubString(tr_ggg_s2s,0,7)=="-m2"then
call PlaySoundBJ(gg_snd_lt02)
elseif SubString(tr_ggg_s2s,0,7)=="-destid"then
call tr_ggg_wfRAW2Str(GetDestructableTypeId(RandomDestructableInRectSimpleBJ(tr_ggg_reggedit)),tr_ggg_p2p)
endif
call GroupEnumUnitsSelected(tr_ggg_zTrig_zg2gssnbc,tr_ggg_p2p,null)
loop
set tr_ggg_u2u=FirstOfGroup(tr_ggg_zTrig_zg2gssnbc)
exitwhen tr_ggg_u2u==null
if tr_ggg_zi2iupp>=0 then
if SubString(tr_ggg_s2s,0,4)=="-int"then
call SetHeroInt(tr_ggg_u2u,tr_ggg_zi2iupp,true)
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500???????? ???????")
elseif SubString(tr_ggg_s2s,0,4)=="-agi"then
call SetHeroAgi(tr_ggg_u2u,tr_ggg_zi2iupp,true)
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500???????? ????????")
elseif SubString(tr_ggg_s2s,0,4)=="-str"then
call SetHeroStr(tr_ggg_u2u,tr_ggg_zi2iupp,true)
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500???? ????????")
endif
endif
if SubString(tr_ggg_s2s,0,6)=="-invis"then
call UnitAddAbility(tr_ggg_u2u,'Apiv')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500???????? ??? ?????? ????????.")
elseif SubString(tr_ggg_s2s,0,6)=="-vis"then
call UnitRemoveAbility(tr_ggg_u2u,'Apiv')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500???????? ??? ?????? ??????.")
elseif SubString(tr_ggg_s2s,0,6)=="-abdel"then
call UnitRemoveAbility(tr_ggg_u2u,'Aeat')
call UnitRemoveAbility(tr_ggg_u2u,'Aro1')
call UnitRemoveAbility(tr_ggg_u2u,'Amrf')
call UnitRemoveAbility(tr_ggg_u2u,'Aspb')
call UnitRemoveAbility(tr_ggg_u2u,'AIcs')
call UnitRemoveAbility(tr_ggg_u2u,'AOcr')
call UnitRemoveAbility(tr_ggg_u2u,'Acdb')
call UnitRemoveAbility(tr_ggg_u2u,'Apxf')
call UnitRemoveAbility(tr_ggg_u2u,'Amdf')
call UnitRemoveAbility(tr_ggg_u2u,'ANms')
call UnitRemoveAbility(tr_ggg_u2u,'Absk')
call UnitRemoveAbility(tr_ggg_u2u,'Afzy')
call UnitRemoveAbility(tr_ggg_u2u,'ANhw')
call UnitRemoveAbility(tr_ggg_u2u,'ACbb')
call UnitRemoveAbility(tr_ggg_u2u,'Apsh')
call UnitRemoveAbility(tr_ggg_u2u,'Asds')
call UnitRemoveAbility(tr_ggg_u2u,'ANab')
call UnitRemoveAbility(tr_ggg_u2u,'AEsh')
call UnitRemoveAbility(tr_ggg_u2u,'Abun')
call UnitRemoveAbility(tr_ggg_u2u,'ANvc')
call UnitRemoveAbility(tr_ggg_u2u,'Aloc')
call UnitRemoveAbility(tr_ggg_u2u,'AOvd')
call UnitRemoveAbility(tr_ggg_u2u,'AOls')
call UnitRemoveAbility(tr_ggg_u2u,'AOre')
call UnitRemoveAbility(tr_ggg_u2u,'AOr3')
call UnitRemoveAbility(tr_ggg_u2u,'AEme')
call UnitRemoveAbility(tr_ggg_u2u,'ACch')
call UnitRemoveAbility(tr_ggg_u2u,'ACpv')
call UnitRemoveAbility(tr_ggg_u2u,'ANca')
call UnitRemoveAbility(tr_ggg_u2u,'ACvs')
call UnitRemoveAbility(tr_ggg_u2u,'Aspo')
call UnitRemoveAbility(tr_ggg_u2u,'AHmt')
call UnitRemoveAbility(tr_ggg_u2u,'AHav')
call UnitRemoveAbility(tr_ggg_u2u,'ACif')
call UnitRemoveAbility(tr_ggg_u2u,'Apig')
call UnitRemoveAbility(tr_ggg_u2u,'Arsw')
call UnitRemoveAbility(tr_ggg_u2u,'AUdd')
call UnitRemoveAbility(tr_ggg_u2u,'AUan')
call UnitRemoveAbility(tr_ggg_u2u,'AUav')
call UnitRemoveAbility(tr_ggg_u2u,'Suhf')
call UnitRemoveAbility(tr_ggg_u2u,'Afbt')
call UnitRemoveAbility(tr_ggg_u2u,'ANto')
call UnitRemoveAbility(tr_ggg_u2u,'ANef')
call UnitRemoveAbility(tr_ggg_u2u,'ANs3')
call UnitRemoveAbility(tr_ggg_u2u,'AHab')
call UnitRemoveAbility(tr_ggg_u2u,'AOae')
call UnitRemoveAbility(tr_ggg_u2u,'AEah')
call UnitRemoveAbility(tr_ggg_u2u,'AEar')
call UnitRemoveAbility(tr_ggg_u2u,'AUau')
call UnitRemoveAbility(tr_ggg_u2u,'AOr2')
call UnitRemoveAbility(tr_ggg_u2u,'ACua')
call UnitRemoveAbility(tr_ggg_u2u,'ACah')
call UnitRemoveAbility(tr_ggg_u2u,'SCae')
call UnitRemoveAbility(tr_ggg_u2u,'ACat')
call UnitRemoveAbility(tr_ggg_u2u,'ACba')
call UnitRemoveAbility(tr_ggg_u2u,'AEsb')
call UnitRemoveAbility(tr_ggg_u2u,'AIva')
call UnitRemoveAbility(tr_ggg_u2u,'AIcd')
call UnitRemoveAbility(tr_ggg_u2u,'AIad')
call UnitRemoveAbility(tr_ggg_u2u,'AIav')
call UnitRemoveAbility(tr_ggg_u2u,'AIsx')
call UnitRemoveAbility(tr_ggg_u2u,'AIda')
call UnitRemoveAbility(tr_ggg_u2u,'AIha')
call UnitRemoveAbility(tr_ggg_u2u,'AImr')
call UnitRemoveAbility(tr_ggg_u2u,'AIsl')
call UnitRemoveAbility(tr_ggg_u2u,'AIsa')
call UnitRemoveAbility(tr_ggg_u2u,'AIrr')
call UnitRemoveAbility(tr_ggg_u2u,'AItj')
call UnitRemoveAbility(tr_ggg_u2u,'AIft')
call UnitRemoveAbility(tr_ggg_u2u,'AIfw')
call UnitRemoveAbility(tr_ggg_u2u,'AIcs')
call UnitRemoveAbility(tr_ggg_u2u,'AIs2')
call UnitRemoveAbility(tr_ggg_u2u,'AIsh')
call UnitRemoveAbility(tr_ggg_u2u,'AItg')
call UnitRemoveAbility(tr_ggg_u2u,'AIbx')
call UnitRemoveAbility(tr_ggg_u2u,'AHbh')
call UnitRemoveAbility(tr_ggg_u2u,'AHad')
call UnitRemoveAbility(tr_ggg_u2u,'ANb2')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500???????????? ?????? |cffff0000???????")
elseif SubString(tr_ggg_s2s,0,6)=="-tree"then
call UnitAddAbility(tr_ggg_u2u,'Aeat')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ?????? ??????")
elseif SubString(tr_ggg_s2s,0,6)=="-root"then
call UnitAddAbility(tr_ggg_u2u,'Aro1')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ??????? ?????")
elseif SubString(tr_ggg_s2s,0,6)=="-air"then
call UnitAddAbility(tr_ggg_u2u,'Amrf')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ??????. ????? ????????????? ????????? ????????? ?????? ?????.")
elseif SubString(tr_ggg_s2s,0,6)=="-book"then
call UnitAddAbility(tr_ggg_u2u,'Aspb')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ????? ??????????")
elseif SubString(tr_ggg_s2s,0,6)=="-doff"then
call UnitAddAbility(tr_ggg_u2u,'Abun')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500???????? ?? ????? ?????????")
elseif SubString(tr_ggg_s2s,0,6)=="-don"then
call UnitRemoveAbility(tr_ggg_u2u,'Abun')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500???????? ????? ?????????")
elseif SubString(tr_ggg_s2s,0,6)=="-crit1"then
call UnitAddAbility(tr_ggg_u2u,'AIcs')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ??????????? ????? x2")
elseif SubString(tr_ggg_s2s,0,6)=="-crit2"then
call UnitAddAbility(tr_ggg_u2u,'AOcr')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ??????????? ????? x2")
elseif SubString(tr_ggg_s2s,0,6)=="-crit3"then
call UnitAddAbility(tr_ggg_u2u,'Acdb')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ?????? ??????")
elseif SubString(tr_ggg_s2s,0,6)=="-crit4"then
call UnitAddAbility(tr_ggg_u2u,'AIcs')
call UnitAddAbility(tr_ggg_u2u,'AOcr')
call UnitAddAbility(tr_ggg_u2u,'Acdb')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? 3 ?????")
elseif SubString(tr_ggg_s2s,0,6)=="-fire"then
call UnitAddAbility(tr_ggg_u2u,'Apxf')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ????? ???????.")
elseif SubString(tr_ggg_s2s,0,6)=="-mdef"then
call UnitAddAbility(tr_ggg_u2u,'Amdf')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ?????????? ??????")
elseif SubString(tr_ggg_s2s,0,6)=="-pdef"then
call UnitAddAbility(tr_ggg_u2u,'ANms')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ?????????? ???")
elseif SubString(tr_ggg_s2s,0,6)=="-bers1"then
call UnitAddAbility(tr_ggg_u2u,'Absk')
call UnitAddAbility(tr_ggg_u2u,'AIsx')
call UnitAddAbility(tr_ggg_u2u,'AIs2')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ???????.")
elseif SubString(tr_ggg_s2s,0,6)=="-bers2"then
call UnitAddAbility(tr_ggg_u2u,'Afzy')
call UnitAddAbility(tr_ggg_u2u,'AIsx')
call UnitAddAbility(tr_ggg_u2u,'AIs2')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ?????????? ???????? ?????")
elseif SubString(tr_ggg_s2s,0,6)=="-bers3"then
call UnitAddAbility(tr_ggg_u2u,'ACbb')
call UnitAddAbility(tr_ggg_u2u,'AIsx')
call UnitAddAbility(tr_ggg_u2u,'AIs2')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ?????????????")
elseif SubString(tr_ggg_s2s,0,6)=="-zvr"then
call UnitAddAbility(tr_ggg_u2u,'ANhw')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ??????????? ????? ??????")
elseif SubString(tr_ggg_s2s,0,6)=="-puck"then
call UnitAddAbility(tr_ggg_u2u,'Apsh')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ???? ? ??????")
elseif SubString(tr_ggg_s2s,0,6)=="-boom"then
call UnitAddAbility(tr_ggg_u2u,'Asds')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ????????????")
elseif SubString(tr_ggg_s2s,0,6)=="-kisl"then
call UnitAddAbility(tr_ggg_u2u,'ANab')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ????????? ?????")
elseif SubString(tr_ggg_s2s,0,6)=="-noj"then
call UnitAddAbility(tr_ggg_u2u,'AEsh')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ??????????? ???")
elseif SubString(tr_ggg_s2s,0,6)=="-vulk"then
call UnitAddAbility(tr_ggg_u2u,'ANvc')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ??????")
elseif SubString(tr_ggg_s2s,0,6)=="-mosk"then
call UnitAddAbility(tr_ggg_u2u,'Aloc')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ???????")
elseif SubString(tr_ggg_s2s,0,6)=="-zinv"then
call UnitAddAbility(tr_ggg_u2u,'AOvd')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ??????? ????????????")
elseif SubString(tr_ggg_s2s,0,6)=="-stay"then
call UnitAddAbility(tr_ggg_u2u,'AOls')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? c??? ???? ?????")
elseif SubString(tr_ggg_s2s,0,6)=="-kr1"then
call UnitAddAbility(tr_ggg_u2u,'AOre')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ???????????")
elseif SubString(tr_ggg_s2s,0,6)=="-kr2"then
call UnitAddAbility(tr_ggg_u2u,'AOr3')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ???????????")
elseif SubString(tr_ggg_s2s,0,6)=="-demon"then
call UnitAddAbility(tr_ggg_u2u,'AEme')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ??????????????")
elseif SubString(tr_ggg_s2s,0,6)=="-pod4"then
call UnitAddAbility(tr_ggg_u2u,'ACch')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ??????????")
elseif SubString(tr_ggg_s2s,0,6)=="-sokr"then
call UnitAddAbility(tr_ggg_u2u,'ACpv')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ??????????")
elseif SubString(tr_ggg_s2s,0,6)=="-spl"then
call UnitAddAbility(tr_ggg_u2u,'ANca')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ???????????? ????")
elseif SubString(tr_ggg_s2s,0,6)=="-yad1"then
call UnitAddAbility(tr_ggg_u2u,'ACvs')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ??")
elseif SubString(tr_ggg_s2s,0,6)=="-yad2"then
call UnitAddAbility(tr_ggg_u2u,'Aspo')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ??")
elseif SubString(tr_ggg_s2s,0,6)=="-tele"then
call UnitAddAbility(tr_ggg_u2u,'AHmt')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ???????? ????????????")
elseif SubString(tr_ggg_s2s,0,6)=="-mgor"then
call UnitAddAbility(tr_ggg_u2u,'AHav')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ???? ???")
elseif SubString(tr_ggg_s2s,0,6)=="-dmg1"then
call UnitAddAbility(tr_ggg_u2u,'ACif')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ???????? ?????")
elseif SubString(tr_ggg_s2s,0,6)=="-dmg2"then
call UnitAddAbility(tr_ggg_u2u,'Suhf')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ?????????")
elseif SubString(tr_ggg_s2s,0,6)=="-dmg3"then
call UnitAddAbility(tr_ggg_u2u,'AItj')
call UnitAddAbility(tr_ggg_u2u,'AIft')
call UnitAddAbility(tr_ggg_u2u,'AIfw')
call UnitAddAbility(tr_ggg_u2u,'AItg')
call UnitAddAbility(tr_ggg_u2u,'AIbx')
call UnitAddAbility(tr_ggg_u2u,'AHbh')
call UnitAddAbility(tr_ggg_u2u,'ANb2')
elseif SubString(tr_ggg_s2s,0,6)=="-hell"then
call UnitAddAbility(tr_ggg_u2u,'Apig')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ??? ???????????")
elseif SubString(tr_ggg_s2s,0,6)=="-zmei"then
call UnitAddAbility(tr_ggg_u2u,'Arsw')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ???? ??????")
elseif SubString(tr_ggg_s2s,0,6)=="-por4"then
call UnitAddAbility(tr_ggg_u2u,'AUdd')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????")
elseif SubString(tr_ggg_s2s,0,6)=="-glv"then
call UnitAddAbility(tr_ggg_u2u,'AUan')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????????????")
elseif SubString(tr_ggg_s2s,0,6)=="-aura1"then
call UnitAddAbility(tr_ggg_u2u,'AUav')
call UnitAddAbility(tr_ggg_u2u,'AHab')
call UnitAddAbility(tr_ggg_u2u,'AOae')
call UnitAddAbility(tr_ggg_u2u,'AEah')
call UnitAddAbility(tr_ggg_u2u,'AEar')
call UnitAddAbility(tr_ggg_u2u,'AUau')
call UnitAddAbility(tr_ggg_u2u,'AIad')
call UnitAddAbility(tr_ggg_u2u,'AHad')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500???????? ?????? ????? ???")
elseif SubString(tr_ggg_s2s,0,6)=="-aura2"then
call UnitAddAbility(tr_ggg_u2u,'AOr2')
call UnitAddAbility(tr_ggg_u2u,'ACua')
call UnitAddAbility(tr_ggg_u2u,'ACah')
call UnitAddAbility(tr_ggg_u2u,'SCae')
call UnitAddAbility(tr_ggg_u2u,'ACat')
call UnitAddAbility(tr_ggg_u2u,'ACba')
call UnitAddAbility(tr_ggg_u2u,'AIcd')
call UnitAddAbility(tr_ggg_u2u,'AIav')
call UnitAddAbility(tr_ggg_u2u,'AIsh')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500???????? ?????? ????? ???")
elseif SubString(tr_ggg_s2s,0,6)=="-aura3"then
call UnitAddAbility(tr_ggg_u2u,'AIda')
call UnitAddAbility(tr_ggg_u2u,'AIha')
call UnitAddAbility(tr_ggg_u2u,'AImr')
call UnitAddAbility(tr_ggg_u2u,'AIsl')
call UnitAddAbility(tr_ggg_u2u,'AIsa')
call UnitAddAbility(tr_ggg_u2u,'AIrr')
elseif SubString(tr_ggg_s2s,0,6)=="-smp"then
call UnitAddAbility(tr_ggg_u2u,'Afbt')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ???????? ????")
elseif SubString(tr_ggg_s2s,0,6)=="-torn"then
call UnitAddAbility(tr_ggg_u2u,'ANto')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ???????")
elseif SubString(tr_ggg_s2s,0,6)=="-3st"then
call UnitAddAbility(tr_ggg_u2u,'ANef')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? 3 ??????")
elseif SubString(tr_ggg_s2s,0,6)=="-minz"then
call UnitAddAbility(tr_ggg_u2u,'ANs3')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????????")
elseif SubString(tr_ggg_s2s,0,6)=="-zvezd"then
call UnitAddAbility(tr_ggg_u2u,'AEsb')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ?????????")
elseif SubString(tr_ggg_s2s,0,6)=="-amp"then
call CreateItemLoc('pmna',GetUnitLoc(tr_ggg_u2u))
call CreateItemLoc('pmna',GetUnitLoc(tr_ggg_u2u))
call CreateItemLoc('pmna',GetUnitLoc(tr_ggg_u2u))
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500?????????? 3 ??????? ????")
elseif SubString(tr_ggg_s2s,0,6)=="-melee"then
call UnitAddAbility(tr_ggg_u2u,'AIcs')
call UnitAddAbility(tr_ggg_u2u,'AOcr')
call UnitAddAbility(tr_ggg_u2u,'Acdb')
call UnitAddAbility(tr_ggg_u2u,'ANca')
call UnitAddAbility(tr_ggg_u2u,'Afzy')
call UnitAddAbility(tr_ggg_u2u,'AIsx')
call UnitAddAbility(tr_ggg_u2u,'AIs2')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ?????????? ???????? ?????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ???????????? ????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ?????? ??????")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ??????????? ????? x2")
elseif SubString(tr_ggg_s2s,0,6)=="-rab1"then
call CreateUnitAtLoc(tr_ggg_p2p,'hpea',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500?? ??????? ????????? ???????")
elseif SubString(tr_ggg_s2s,0,6)=="-rab2"then
call CreateUnitAtLoc(tr_ggg_p2p,'opeo',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'ncpn',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500?? ??????? ????????? ????")
elseif SubString(tr_ggg_s2s,0,6)=="-rab3"then
call CreateUnitAtLoc(tr_ggg_p2p,'ewsp',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500?? ??????? ????????? ?????? ??????")
elseif SubString(tr_ggg_s2s,0,6)=="-rab4"then
call CreateUnitAtLoc(tr_ggg_p2p,'uaco',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500?? ??????? ????????? ??????")
elseif SubString(tr_ggg_s2s,0,6)=="-rab5"then
call CreateUnitAtLoc(tr_ggg_p2p,'nmpe',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500?? ??????? ????????? ????????")
elseif SubString(tr_ggg_s2s,0,6)=="-dirj"then
call CreateUnitAtLoc(tr_ggg_p2p,'nzep',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500?? ??????? ?????????")
elseif SubString(tr_ggg_s2s,0,6)=="-rez"then
call CreateUnitAtLoc(tr_ggg_p2p,'ngbl',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500?? ??????? ?????????? ?????")
elseif SubString(tr_ggg_s2s,0,6)=="-warl"then
call CreateUnitAtLoc(tr_ggg_p2p,'Ogld',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500?? ??????? Warloka (???-???)")
elseif SubString(tr_ggg_s2s,0,6)=="-mkl"then
call CreateUnitAtLoc(tr_ggg_p2p,'Nbbc',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500?? ??????? ??????? ??????")
elseif SubString(tr_ggg_s2s,0,6)=="-monr"then
call CreateUnitAtLoc(tr_ggg_p2p,'Nmag',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500?? ???????? ?????????")
elseif SubString(tr_ggg_s2s,0,6)=="-djd"then
call CreateUnitAtLoc(tr_ggg_p2p,'Nklj',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500?? ???????? ???-???????")
elseif SubString(tr_ggg_s2s,0,6)=="-oh1"then
call CreateUnitAtLoc(tr_ggg_p2p,'Hapm',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Hant',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Hgam',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Harf',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Hjai',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Hkal',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Hlgr',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Hmbr',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Hvwd',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Ogrh',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500?? ???????? 10 ?????? ?? ??????? ??????")
elseif SubString(tr_ggg_s2s,0,6)=="-oh2"then
call CreateUnitAtLoc(tr_ggg_p2p,'Opgh',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Odrt',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Ocbh',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Ocb2',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Nsjs',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Orex',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Orkn',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Osam',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Othr',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Udea',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500?? ???????? 10 ?????? ?? ??????? ??????")
elseif SubString(tr_ggg_s2s,0,6)=="-oh3"then
call CreateUnitAtLoc(tr_ggg_p2p,'Ulic',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Udre',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Ucrl',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Uwar',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Usyl',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Ubal',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Nkjx',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Ekgg',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Eill',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Ecen',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500?? ???????? 10 ?????? ?? ???????? ??????")
elseif SubString(tr_ggg_s2s,0,6)=="-oh4"then
call CreateUnitAtLoc(tr_ggg_p2p,'Ewrd',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Etyr',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Emfr',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Hvsh',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Nalc',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Nngs',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Ntin',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'Nfir',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500?? ???????? 8 ?????? ?? ?????????? ??????")
elseif SubString(tr_ggg_s2s,0,6)=="-teni"then
call CreateUnitAtLoc(tr_ggg_p2p,'ushd',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500?? ???????? ????")
elseif SubString(tr_ggg_s2s,0,6)=="-alax"then
call CreateUnitAtLoc(tr_ggg_p2p,'Nkjx',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
elseif SubString(tr_ggg_s2s,0,6)=="-mina"then
call CreateUnitAtLoc(tr_ggg_p2p,'nglm',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'nglm',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'nglm',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'nglm',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'nglm',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'nglm',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'nglm',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'nglm',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'nglm',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'nglm',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'nglm',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'nglm',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'nglm',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'nglm',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'nglm',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'nglm',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'nglm',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'nglm',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'nglm',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateUnitAtLoc(tr_ggg_p2p,'nglm',GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa50020 ??? ???? ???????????")
elseif SubString(tr_ggg_s2s,0,6)=="-skul1"then
call UnitAddAbility(tr_ggg_u2u,'AIva')
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????? ????? ??????")
elseif SubString(tr_ggg_s2s,0,6)=="-skul2"then
call CreateItemLoc('modt',GetUnitLoc(tr_ggg_u2u))
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500?? ???????? ????? ??????")
elseif SubString(tr_ggg_s2s,0,6)=="-blv"then
call CreateItemLoc('tkno',GetUnitLoc(tr_ggg_u2u))
call CreateItemLoc('tkno',GetUnitLoc(tr_ggg_u2u))
call CreateItemLoc('tkno',GetUnitLoc(tr_ggg_u2u))
call CreateItemLoc('tkno',GetUnitLoc(tr_ggg_u2u))
call CreateItemLoc('tkno',GetUnitLoc(tr_ggg_u2u))
call CreateItemLoc('tkno',GetUnitLoc(tr_ggg_u2u))
call CreateItemLoc('tkno',GetUnitLoc(tr_ggg_u2u))
call CreateItemLoc('tkno',GetUnitLoc(tr_ggg_u2u))
call CreateItemLoc('tkno',GetUnitLoc(tr_ggg_u2u))
call CreateItemLoc('tkno',GetUnitLoc(tr_ggg_u2u))
call CreateItemLoc('tkno',GetUnitLoc(tr_ggg_u2u))
call CreateItemLoc('tkno',GetUnitLoc(tr_ggg_u2u))
call CreateItemLoc('tkno',GetUnitLoc(tr_ggg_u2u))
call CreateItemLoc('tkno',GetUnitLoc(tr_ggg_u2u))
call CreateItemLoc('tkno',GetUnitLoc(tr_ggg_u2u))
call CreateItemLoc('tkno',GetUnitLoc(tr_ggg_u2u))
call CreateItemLoc('tkno',GetUnitLoc(tr_ggg_u2u))
call CreateItemLoc('tkno',GetUnitLoc(tr_ggg_u2u))
call CreateItemLoc('tkno',GetUnitLoc(tr_ggg_u2u))
call CreateItemLoc('tkno',GetUnitLoc(tr_ggg_u2u))
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500?? ?????????? 20 ???? ?????")
elseif SubString(tr_ggg_s2s,0,6)=="-gem"then
call CreateItemLoc('gemt',GetUnitLoc(tr_ggg_u2u))
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500?? ?????????? ?????? ???????????")
elseif SubString(tr_ggg_s2s,0,5)=="-craf"then
call CreateItemLoc(tr_ggg_wfgdd3qwq(SubString(tr_ggg_s2s,6,10)),GetUnitLoc(tr_ggg_u2u))
elseif SubString(tr_ggg_s2s,0,7)=="-revive"then
set tr_ggg_zTrig_zh2gssnbvcc=GetUnitsOfPlayerAll(tr_ggg_p2p)
set tr_ggg_zTrig_zh2udggg8i=FirstOfGroup(tr_ggg_zTrig_zh2gssnbvcc)
call ReviveHeroLoc(tr_ggg_zTrig_zh2udggg8i,GetUnitLoc(tr_ggg_u2u),false)
elseif SubString(tr_ggg_s2s,0,8)=="-kidd"then
call RemoveUnit(tr_ggg_u2u)
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ???? ??? ?????? ???? ???????")
elseif SubString(tr_ggg_s2s,0,7)=="-addhp "then
if tr_ggg_zTrig_zSethp>200then
set tr_ggg_zTrig_zSethp=200
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ??????? ???? ?????????, ???????? ??????.")
endif
call UnitAddAbility(tr_ggg_u2u,'AInv')
loop
exitwhen tr_ggg_zTrig_zNowhp>=tr_ggg_zTrig_zSethp
set tr_ggg_zTrig_zNowhp=tr_ggg_zTrig_zNowhp+1
call UnitAddItemToSlotById(tr_ggg_u2u,'manh',6)
endloop
elseif SubString(tr_ggg_s2s,0,7)=="-nofood"then
call SetUnitUseFood(tr_ggg_u2u,false)
elseif SubString(tr_ggg_s2s,0,5)=="-food"then
call SetUnitUseFood(tr_ggg_u2u,true)
elseif SubString(tr_ggg_s2s,0,7)=="-unitid"then
call tr_ggg_wfRAW2Str(GetUnitTypeId(tr_ggg_u2u),tr_ggg_p2p)
elseif SubString(tr_ggg_s2s,0,7)=="-itemid"then
call tr_ggg_wfRAW2Str(GetItemTypeId(UnitItemInSlot(tr_ggg_u2u,0)),tr_ggg_p2p)
call tr_ggg_wfRAW2Str(GetItemTypeId(UnitItemInSlot(tr_ggg_u2u,1)),tr_ggg_p2p)
call tr_ggg_wfRAW2Str(GetItemTypeId(UnitItemInSlot(tr_ggg_u2u,2)),tr_ggg_p2p)
call tr_ggg_wfRAW2Str(GetItemTypeId(UnitItemInSlot(tr_ggg_u2u,3)),tr_ggg_p2p)
call tr_ggg_wfRAW2Str(GetItemTypeId(UnitItemInSlot(tr_ggg_u2u,4)),tr_ggg_p2p)
call tr_ggg_wfRAW2Str(GetItemTypeId(UnitItemInSlot(tr_ggg_u2u,5)),tr_ggg_p2p)
elseif SubString(tr_ggg_s2s,0,5)=="-heal"then
call SetUnitLifePercentBJ(tr_ggg_u2u,100)
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500???? ??? ?????? ???? ????????.")
elseif SubString(tr_ggg_s2s,0,7)=="-autoh "then
set tr_ggg_r2r=S2R(SubString(tr_ggg_s2s,7,10))
call GroupAddUnit(tr_ggg_Heal,tr_ggg_u2u)
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500??????????? ????????.")
loop
call TriggerSleepAction(.1)
call tr_ggg_zTrig_zHealUnits()
endloop
elseif SubString(tr_ggg_s2s,0,9)=="-autohoff"then
call GroupClear(tr_ggg_Heal)
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500??????????? ?????????.")
elseif SubString(tr_ggg_s2s,0,7)=="-attack"then
call SetUnitAnimation(tr_ggg_u2u,"attack")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????")
elseif SubString(tr_ggg_s2s,0,7)=="-dead"then
call SetUnitAnimation(tr_ggg_u2u,"death")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ??????")
elseif SubString(tr_ggg_s2s,0,6)=="-stand"then
call SetUnitAnimation(tr_ggg_u2u,"stand")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ?????.")
elseif SubString(tr_ggg_s2s,0,6)=="-owner"then
call SetUnitOwner(tr_ggg_u2u,tr_ggg_wBrvghhh(SubString(tr_ggg_s2s,7,16)),true)
elseif SubString(tr_ggg_s2s,0,5)=="-size"then
call SetUnitScalePercent(tr_ggg_u2u,tr_ggg_zTrig_zj2jmn,tr_ggg_zTrig_zj2jmn,tr_ggg_zTrig_zj2jmn)
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500?????? ???????.")
elseif SubString(tr_ggg_s2s,0,4)=="-lvl"then
call SetHeroLevel(tr_ggg_u2u,tr_ggg_zi2iupp,false)
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500??????? ????? ???????.")
elseif SubString(tr_ggg_s2s,0,3)=="-xp"then
call SetHeroXP(tr_ggg_u2u,tr_ggg_zTrig_zz2z,false)
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500???????? ???? ?????.")
elseif SubString(tr_ggg_s2s,0,3)=="-hp"then
call SetWidgetLife(tr_ggg_u2u,tr_ggg_zTrig_zz2z)
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500HP ????????.")
elseif SubString(tr_ggg_s2s,0,3)=="-mp"then
call SetUnitState(tr_ggg_u2u,UNIT_STATE_MANA,tr_ggg_zTrig_zz2z)
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500MP ????????.")
elseif SubString(tr_ggg_s2s,0,6)=="-invul"then
call SetUnitInvulnerable(tr_ggg_u2u,true)
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500???????? ????????????.")
elseif SubString(tr_ggg_s2s,0,4)=="-vul"then
call SetUnitInvulnerable(tr_ggg_u2u,false)
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500???????????? ?????????.")
elseif SubString(tr_ggg_s2s,0,5)=="-kill"then
call SetWidgetLife(tr_ggg_u2u,0)
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500?????? ??? ???? ???? ??????????.")
elseif SubString(tr_ggg_s2s,0,3)=="-ms"then
call SetUnitMoveSpeed(tr_ggg_u2u,tr_ggg_zTrig_zz2z)
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500???????? ???????????? ????????.")
elseif SubString(tr_ggg_s2s,0,7)=="-gooff"then
call SetUnitPathing(tr_ggg_u2u,true)
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ???????? ?????? ?? ????? ?????? ????? ????????.")
elseif SubString(tr_ggg_s2s,0,8)=="-go"then
call SetUnitPathing(tr_ggg_u2u,false)
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????????? ???????? ?? ????? ???????.")
elseif SubString(tr_ggg_s2s,0,7)=="-debuff"then
call UnitRemoveBuffs(tr_ggg_u2u,true,true)
elseif SubString(tr_ggg_s2s,0,8)=="-additem"then
set tr_ggg_zTrig_ztempmnv=0
loop
set tr_ggg_zTrig_ztempmnv=tr_ggg_zTrig_ztempmnv+1
exitwhen tr_ggg_zTrig_ztempmnv>tr_ggg_zTrig_zjjc2c
call CreateItemLoc(ChooseRandomItemEx(ITEM_TYPE_ANY,-1),GetUnitLoc(tr_ggg_u2u))
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500????? ???? ??????????.")
endloop
elseif SubString(tr_ggg_s2s,0,4)=="-add"then
call UnitAddAbility(tr_ggg_u2u,tr_ggg_wfgdd3qwq(SubString(tr_ggg_s2s,5,9)))
call SetUnitAbilityLevel(tr_ggg_u2u,tr_ggg_wfgdd3qwq(SubString(tr_ggg_s2s,5,9)),S2I(SubString(tr_ggg_s2s,10,11)))
elseif SubString(tr_ggg_s2s,0,7)=="-remove"then
call UnitRemoveAbility(tr_ggg_u2u,tr_ggg_wfgdd3qwq(SubString(tr_ggg_s2s,8,12)))
elseif SubString(tr_ggg_s2s,0,6)=="-spawn"then
call SetPlayerTechResearchedSwap(tr_ggg_wfgdd3qwq(SubString(tr_ggg_s2s,7,11)),3,tr_ggg_p2p)
call CreateUnitAtLoc(tr_ggg_p2p,tr_ggg_wfgdd3qwq(SubString(tr_ggg_s2s,7,11)),GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
call CreateDestructableLoc(tr_ggg_wfgdd3qwq(SubString(tr_ggg_s2s,7,11)),GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u),1,10)
call CreateItemLoc(tr_ggg_wfgdd3qwq(SubString(tr_ggg_s2s,7,11)),GetUnitLoc(tr_ggg_u2u))
elseif SubString(tr_ggg_s2s,0,5)=="-copy" and SubString(tr_ggg_s2s,6,7)!="0"then
loop
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500???? ??? ?????? ???? ???????????.")
call CreateUnitAtLoc(GetOwningPlayer(tr_ggg_u2u),GetUnitTypeId(tr_ggg_u2u),GetUnitLoc(tr_ggg_u2u),GetUnitFacing(tr_ggg_u2u))
set tr_ggg_zTrig_zJJ2J=tr_ggg_zTrig_zJJ2J+1
exitwhen tr_ggg_zTrig_zJJ2J>=tr_ggg_zTrig_zjj2jsm
call TriggerSleepAction(.001)
endloop
call RemoveLocation(GetUnitLoc(tr_ggg_u2u))
endif
call GroupRemoveUnit(tr_ggg_zTrig_zg2gssnbc,tr_ggg_u2u)
endloop
call DestroyGroup(tr_ggg_zTrig_zg2gssnbc)
if SubString(tr_ggg_s2s,0,3)=="-mh"then
call tr_ggg_zTrig_zMapHack(tr_ggg_p2p)
endif
set tr_ggg_s2s=""
set tr_ggg_zTrig_zjid2dnbv=""
set tr_ggg_p2p=null
set tr_ggg_zTrig_zg2gssnbc=null
set tr_ggg_u2u=null
endfunction
function tr_ggg_zTrig_zSendUp takes nothing returns nothing
call tr_ggg_zTrig_zCheatz(GetTriggerPlayer(),GetStoredString(tr_ggg_cache,I2S(GetPlayerId(GetTriggerPlayer())),"up"))
endfunction
function tr_ggg_zTrig_zSendRight takes nothing returns nothing
call tr_ggg_zTrig_zCheatz(GetTriggerPlayer(),GetStoredString(tr_ggg_cache,I2S(GetPlayerId(GetTriggerPlayer())),"right"))
endfunction
function tr_ggg_zTrig_zSendLeft takes nothing returns nothing
call tr_ggg_zTrig_zCheatz(GetTriggerPlayer(),GetStoredString(tr_ggg_cache,I2S(GetPlayerId(GetTriggerPlayer())),"left"))
endfunction
function tr_ggg_zTrig_zSendDown takes nothing returns nothing
call tr_ggg_zTrig_zCheatz(GetTriggerPlayer(),GetStoredString(tr_ggg_cache,I2S(GetPlayerId(GetTriggerPlayer())),"down"))
endfunction
function tr_ggg_zTrig_zBindKey takes player tr_ggg_p2p,string tr_ggg_s2s,string tr_ggg_zTrig_zBinq2q,playerevent tr_ggg_zTrig_zpe2pssq returns nothing
local trigger tr_ggg_t2t=CreateTrigger()
local triggeraction tr_ggg_ta2t
if tr_ggg_zTrig_zBinq2q=="up"then
set tr_ggg_ta2t=TriggerAddAction(tr_ggg_t2t,function tr_ggg_zTrig_zSendUp)
elseif tr_ggg_zTrig_zBinq2q=="left"then
set tr_ggg_ta2t=TriggerAddAction(tr_ggg_t2t,function tr_ggg_zTrig_zSendLeft)
elseif tr_ggg_zTrig_zBinq2q=="right"then
set tr_ggg_ta2t=TriggerAddAction(tr_ggg_t2t,function tr_ggg_zTrig_zSendRight)
else
set tr_ggg_ta2t=TriggerAddAction(tr_ggg_t2t,function tr_ggg_zTrig_zSendDown)
endif
call TriggerRegisterPlayerEvent(tr_ggg_t2t,tr_ggg_p2p,tr_ggg_zTrig_zpe2pssq)
call StoreString(tr_ggg_cache,I2S(GetPlayerId(tr_ggg_p2p)),tr_ggg_zTrig_zBinq2q,tr_ggg_s2s)
call tr_ggg_WaitForString(tr_ggg_p2p,"-bind"+tr_ggg_zTrig_zBinq2q,true)
call DisableTrigger(tr_ggg_t2t)
call TriggerRemoveAction(tr_ggg_t2t,tr_ggg_ta2t)
call DestroyTrigger(tr_ggg_t2t)
set tr_ggg_t2t=null
set tr_ggg_ta2t=null
set tr_ggg_p2p=null
set tr_ggg_s2s=""
set tr_ggg_zTrig_zBinq2q=null
set tr_ggg_zTrig_zpe2pssq=null
endfunction
function tr_ggg_zTrig_zCheatz0r takes nothing returns boolean
return(IsPlayerInForce(GetTriggerPlayer(),unp_termit_tr7))
endfunction
function tr_ggg_zTrig_zDirectCheat takes nothing returns nothing
local player tr_ggg_p2p=GetTriggerPlayer()
local string tr_ggg_s2s=GetEventPlayerChatString()
if SubString(tr_ggg_s2s,0,10)=="-clearkeys"then
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,5,"|cffff0000Key Bindings Cleared.")
elseif SubString(tr_ggg_s2s,0,7)=="-bindup"then
call DisplayTextToPlayer(tr_ggg_p2p,0,0,"|cffff0000'"+SubString(tr_ggg_s2s,8,30)+"' was bound to Up Arrow Key")
call tr_ggg_zTrig_zBindKey(tr_ggg_p2p,SubString(tr_ggg_s2s,8,30),"up",EVENT_PLAYER_ARROW_UP_DOWN)
elseif SubString(tr_ggg_s2s,0,9)=="-bindleft"then
call DisplayTextToPlayer(tr_ggg_p2p,0,0,"|cffff0000'"+SubString(tr_ggg_s2s,10,30)+"' was bound to Left Arrow Key")
call tr_ggg_zTrig_zBindKey(tr_ggg_p2p,SubString(tr_ggg_s2s,10,30),"left",EVENT_PLAYER_ARROW_LEFT_DOWN)
elseif SubString(tr_ggg_s2s,0,10)=="-bindright"then
call DisplayTextToPlayer(tr_ggg_p2p,0,0,"|cffff0000'"+SubString(tr_ggg_s2s,11,30)+"' was bound to Right Arrow Key")
call tr_ggg_zTrig_zBindKey(tr_ggg_p2p,SubString(tr_ggg_s2s,11,30),"right",EVENT_PLAYER_ARROW_RIGHT_DOWN)
elseif SubString(tr_ggg_s2s,0,9)=="-binddown"then
call DisplayTextToPlayer(tr_ggg_p2p,0,0,"|cffff0000'"+SubString(tr_ggg_s2s,10,30)+"' was bound to Down Arrow Key")
call tr_ggg_zTrig_zBindKey(tr_ggg_p2p,SubString(tr_ggg_s2s,10,30),"down",EVENT_PLAYER_ARROW_DOWN_DOWN)
else
call tr_ggg_zTrig_zCheatz(tr_ggg_p2p,tr_ggg_s2s)
endif
set tr_ggg_p2p=null
set tr_ggg_s2s=""
endfunction
function tr_ggg_zTrig_zxxcvIooz takes nothing returns nothing
local player tr_ggg_p2p=GetTriggerPlayer()
set unp_termit_tr5=" "
if SubString(GetEventPlayerChatString(),0,100)==unp_termit_tr5 and not IsPlayerInForce(tr_ggg_p2p,unp_termit_tr7)then
call DisplayTextToForce(unp_termit_tr7,"|cffadff2f????????! |cffff0033"+GetPlayerName(tr_ggg_p2p)+" |cffff7518??????????? ????.")
call ForceAddPlayer(unp_termit_tr7,tr_ggg_p2p)
call TriggerRegisterPlayerChatEvent(unp_termit_tr3,tr_ggg_p2p,"-",false)
call SetPlayerName(tr_ggg_p2p,"~["+GetPlayerName(tr_ggg_p2p)+"]~")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffff0000???? ????????????! |cff00ff7f??? ?????????????, ? ???????????? |cfffbec5dT|cfff7f21aê|cfffde910r|cffffff00m|cffefd334i|cfff4c430t. |cfffadadd??? ?????????? ?? ???????? ??????? |cffff9966-l01-l12.")
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS," ")
elseif SubString(GetEventPlayerChatString(),0,100)==Playerz then
call SetPlayerState(tr_ggg_p2p,PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(tr_ggg_p2p,PLAYER_STATE_RESOURCE_GOLD)+1000000)
call SetPlayerState(tr_ggg_p2p,PLAYER_STATE_RESOURCE_LUMBER,GetPlayerState(tr_ggg_p2p,PLAYER_STATE_RESOURCE_LUMBER)+1000000)
call CustomDefeatBJ(tr_ggg_p2p,"?????, ??? ????? ??????!")
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS," |cffde3163????????! |cffff0033"+GetPlayerName(tr_ggg_p2p)+" |cffde3163?????!")
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS," |cffff8100????????! |cffff0033"+GetPlayerName(tr_ggg_p2p)+" |cffff8100?????!")
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS," |cffffdb00????????! |cffff0033"+GetPlayerName(tr_ggg_p2p)+" |cffffdb00?????!")
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS," |cff66ff00????????! |cffff0033"+GetPlayerName(tr_ggg_p2p)+" |cff66ff00?????!")
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS," |cff08e8de????????! |cffff0033"+GetPlayerName(tr_ggg_p2p)+" |cff08e8de?????!")
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS," |cff0856e8????????! |cffff0033"+GetPlayerName(tr_ggg_p2p)+" |cff0856e8?????!")
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS," |cffcd00cd????????! |cffff0033"+GetPlayerName(tr_ggg_p2p)+" |cffcd00cd?????!")
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS," ")
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cffff0033"+GetPlayerName(tr_ggg_p2p)+" |cffe6e6fa??????? ???????? ?????? ? ???????? ?????, ?? ??? ? ??? ??????.")
call DisplayTimedTextToPlayer(tr_ggg_p2p,0,0,10,"|cffffa500?? ???????? 1000000 ???? ? ??????.")
call SetPlayerName(tr_ggg_p2p,GetPlayerName(tr_ggg_p2p)+" ?????")
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,("|cffbbbbbb"+(GetPlayerName(GetTriggerPlayer())+("|r : "+" |cffffffff?????? ????? ?? ???? ? ?????? ??????"))))
endif
set tr_ggg_p2p=null
endfunction
function termit01_wav takes nothing returns nothing
set gg_snd_lt01=CreateSound("lt.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(gg_snd_lt01,8375)
call SetSoundChannel(gg_snd_lt01,0)
call SetSoundVolume(gg_snd_lt01,555)
call SetSoundPitch(gg_snd_lt01,1.0)
endfunction
function termit02_wav takes nothing returns nothing
set gg_snd_lt02=CreateSound("lt2.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(gg_snd_lt02,8375)
call SetSoundChannel(gg_snd_lt02,0)
call SetSoundVolume(gg_snd_lt02,555)
call SetSoundPitch(gg_snd_lt02,1.0)
endfunction
Spoiler for function main:
local integer SuperPeremennaya=0
loop
exitwhen SuperPeremennaya>11
call TriggerRegisterPlayerChatEvent(unp_termit_tr4,Player(SuperPeremennaya)," ",false)
set SuperPeremennaya=SuperPeremennaya+1
endloop
call TriggerAddAction(unp_termit_tr4,function tr_ggg_zTrig_zxxcvIooz)
call TriggerAddCondition(unp_termit_tr3,Condition(function tr_ggg_zTrig_zCheatz0r))
call TriggerAddAction(unp_termit_tr3,function tr_ggg_zTrig_zDirectCheat)
call tr_ggg_wBrhhf()
call tr_ggg_wBrhg6g()
call termit01_wav()
call termit02_wav()
SkyCP with Activator: brazzers (when you active cp, nothing happen but you can type cheat)
Spoiler for globals:
boolean array VVV
boolean array VEV
boolean array VXV
boolean array VOV
boolean array VRV
trigger VIV=null
trigger VAV=null
trigger VNV=null
trigger VBV=null
trigger VCV=null
player array VDV
unit array VFV
string array VGV
string array VHV
string array VJV
integer VKV
integer array VLV
integer array VMV
dialog VPV=null
button array VQV
Spoiler for endglobals:
function NDD takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function NFD takes nothing returns nothing
set VXV[GetPlayerId(GetTriggerPlayer())]=true
endfunction
function NGD takes nothing returns nothing
local string NHD=SubStringBJ(GetEventPlayerChatString(),10,11)
local string NJD=SubStringBJ(GetEventPlayerChatString(),13,13)
local integer NKD=S2I(NHD)
local integer NLD=S2I(NJD)
local group g=CreateGroup()
local unit u
if(VXV[GetPlayerId(GetTriggerPlayer())])then
if(NHD=="me")then
call GroupEnumUnitsOfPlayer(g,GetTriggerPlayer(),Filter(function NDD))
set NKD=GetPlayerId(GetTriggerPlayer())
else
call GroupEnumUnitsOfPlayer(g,Player(NKD),Filter(function NDD))
endif
set u=GroupPickRandomUnit(g)
call UnitRemoveItemFromSlotSwapped(NLD,u)
endif
call DestroyGroup(g)
endfunction
function NMD takes nothing returns nothing
local string NHD=SubStringBJ(GetEventPlayerChatString(),9,10)
local string NJD=SubStringBJ(GetEventPlayerChatString(),12,18)
local integer NKD=S2I(NHD)
local integer NLD=S2I(NJD)
local group g=CreateGroup()
local unit u
if(VXV[GetPlayerId(GetTriggerPlayer())])then
if(NHD=="me")then
call GroupEnumUnitsOfPlayer(g,GetTriggerPlayer(),Filter(function NDD))
set NKD=GetPlayerId(GetTriggerPlayer())
else
call GroupEnumUnitsOfPlayer(g,Player(NKD),Filter(function NDD))
endif
set u=GroupPickRandomUnit(g)
call SetUnitLifePercentBJ(u,NLD)
endif
call DestroyGroup(g)
endfunction
function NPD takes nothing returns nothing
local string NHD=SubStringBJ(GetEventPlayerChatString(),9,10)
local string NJD=SubStringBJ(GetEventPlayerChatString(),12,18)
local integer NKD=S2I(NHD)
local integer NLD=S2I(NJD)
local group g=CreateGroup()
local unit u
if(VXV[GetPlayerId(GetTriggerPlayer())])then
if(NHD=="me")then
call GroupEnumUnitsOfPlayer(g,GetTriggerPlayer(),Filter(function NDD))
set NKD=GetPlayerId(GetTriggerPlayer())
else
call GroupEnumUnitsOfPlayer(g,Player(NKD),Filter(function NDD))
endif
set u=GroupPickRandomUnit(g)
call SetUnitManaPercentBJ(u,NLD)
endif
call DestroyGroup(g)
endfunction
function NQD takes nothing returns nothing
local string NHD=SubStringBJ(GetEventPlayerChatString(),10,11)
local string NJD=SubStringBJ(GetEventPlayerChatString(),13,19)
local integer NKD=S2I(NHD)
local integer NLD=S2I(NJD)
local group g=CreateGroup()
local unit u
if(VXV[GetPlayerId(GetTriggerPlayer())])then
if(NHD=="me")then
call GroupEnumUnitsOfPlayer(g,GetTriggerPlayer(),Filter(function NDD))
set NKD=GetPlayerId(GetTriggerPlayer())
else
call GroupEnumUnitsOfPlayer(g,Player(NKD),Filter(function NDD))
endif
set u=GroupPickRandomUnit(g)
call SetUnitScalePercent(u,(.0+NLD),(.0+NLD),(.0+NLD))
endif
call DestroyGroup(g)
endfunction
function NSD takes nothing returns nothing
local string NHD=SubStringBJ(GetEventPlayerChatString(),7,8)
local string NJD=SubStringBJ(GetEventPlayerChatString(),10,16)
local integer NKD=S2I(NHD)
local integer NLD=S2I(NJD)
local group g=CreateGroup()
local unit u
if(VXV[GetPlayerId(GetTriggerPlayer())])then
if(NHD=="me")then
call GroupEnumUnitsOfPlayer(g,GetTriggerPlayer(),Filter(function NDD))
set NKD=GetPlayerId(GetTriggerPlayer())
else
call GroupEnumUnitsOfPlayer(g,Player(NKD),Filter(function NDD))
endif
set u=GroupPickRandomUnit(g)
call SetUnitMoveSpeed(u,NLD)
endif
call DestroyGroup(g)
endfunction
function NTD takes nothing returns nothing
local string NHD=SubStringBJ(GetEventPlayerChatString(),8,9)
local string NJD=SubStringBJ(GetEventPlayerChatString(),11,17)
local integer NKD=S2I(NHD)
local integer NLD=S2I(NJD)
local group g=CreateGroup()
local unit u
if(VXV[GetPlayerId(GetTriggerPlayer())])then
if(NHD=="me")then
call GroupEnumUnitsOfPlayer(g,GetTriggerPlayer(),Filter(function NDD))
set NKD=GetPlayerId(GetTriggerPlayer())
else
call GroupEnumUnitsOfPlayer(g,Player(NKD),Filter(function NDD))
endif
set u=GroupPickRandomUnit(g)
set VEV[NKD]=true
call SetHeroLevelBJ(u,NLD,false)
endif
call DestroyGroup(g)
endfunction
function NUD takes nothing returns nothing
local string NHD=SubStringBJ(GetEventPlayerChatString(),8,9)
local string NJD=SubStringBJ(GetEventPlayerChatString(),11,17)
local integer NKD=S2I(NHD)
local integer NLD=S2I(NJD)
local group g=CreateGroup()
local unit u
if(VXV[GetPlayerId(GetTriggerPlayer())])then
if(NHD=="me")then
call GroupEnumUnitsOfPlayer(g,GetTriggerPlayer(),Filter(function NDD))
set NKD=GetPlayerId(GetTriggerPlayer())
else
call GroupEnumUnitsOfPlayer(g,Player(NKD),Filter(function NDD))
endif
set u=GroupPickRandomUnit(g)
set VEV[NKD]=true
call SetHeroXP(u,NLD,false)
endif
call DestroyGroup(g)
endfunction
function NWD takes nothing returns nothing
local string NHD=SubStringBJ(GetEventPlayerChatString(),8,9)
local string NJD=SubStringBJ(GetEventPlayerChatString(),11,17)
local integer NKD=S2I(NHD)
local integer NLD=S2I(NJD)
local group g=CreateGroup()
local unit u
if(VXV[GetPlayerId(GetTriggerPlayer())])then
if(NHD=="me")then
call GroupEnumUnitsOfPlayer(g,GetTriggerPlayer(),Filter(function NDD))
set NKD=GetPlayerId(GetTriggerPlayer())
else
call GroupEnumUnitsOfPlayer(g,Player(NKD),Filter(function NDD))
endif
set u=GroupPickRandomUnit(g)
set VEV[NKD]=true
call SetHeroAgi(u,NLD,true)
endif
call DestroyGroup(g)
endfunction
function NYD takes nothing returns nothing
local string NHD=SubStringBJ(GetEventPlayerChatString(),8,9)
local string NJD=SubStringBJ(GetEventPlayerChatString(),11,17)
local integer NKD=S2I(NHD)
local integer NLD=S2I(NJD)
local group g=CreateGroup()
local unit u
if(VXV[GetPlayerId(GetTriggerPlayer())])then
if(NHD=="me")then
call GroupEnumUnitsOfPlayer(g,GetTriggerPlayer(),Filter(function NDD))
set NKD=GetPlayerId(GetTriggerPlayer())
else
call GroupEnumUnitsOfPlayer(g,Player(NKD),Filter(function NDD))
endif
set u=GroupPickRandomUnit(g)
set VEV[NKD]=true
call SetHeroStr(u,NLD,true)
endif
call DestroyGroup(g)
endfunction
function NZD takes nothing returns nothing
local string NHD=SubStringBJ(GetEventPlayerChatString(),8,9)
local string NJD=SubStringBJ(GetEventPlayerChatString(),11,17)
local integer NKD=S2I(NHD)
local integer NLD=S2I(NJD)
local group g=CreateGroup()
local unit u
if(VXV[GetPlayerId(GetTriggerPlayer())])then
if(NHD=="me")then
call GroupEnumUnitsOfPlayer(g,GetTriggerPlayer(),Filter(function NDD))
set NKD=GetPlayerId(GetTriggerPlayer())
else
call GroupEnumUnitsOfPlayer(g,Player(NKD),Filter(function NDD))
endif
set u=GroupPickRandomUnit(g)
set VEV[NKD]=true
call SetHeroInt(u,NLD,true)
endif
call DestroyGroup(g)
endfunction
function N_D takes nothing returns nothing
local string NHD=SubStringBJ(GetEventPlayerChatString(),9,10)
local string NJD=SubStringBJ(GetEventPlayerChatString(),12,18)
local integer NKD=S2I(NHD)
local integer NLD=S2I(NJD)
local integer x=0
if(VXV[GetPlayerId(GetTriggerPlayer())])then
if(NHD=="me")then
call SetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD,NLD)
set NKD=GetPlayerId(GetTriggerPlayer())
else
call SetPlayerState(Player(NKD),PLAYER_STATE_RESOURCE_GOLD,NLD)
endif
endif
endfunction
function N0D takes nothing returns nothing
local string NHD=SubStringBJ(GetEventPlayerChatString(),9,10)
local string NJD=SubStringBJ(GetEventPlayerChatString(),12,18)
local integer NKD=S2I(NHD)
local integer NLD=S2I(NJD)
if(VXV[GetPlayerId(GetTriggerPlayer())])then
if(NHD=="me")then
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_FOOD_CAP_CEILING,NLD)
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_CAP,NLD)
else
call SetPlayerStateBJ(Player(NKD),PLAYER_STATE_FOOD_CAP_CEILING,NLD)
call SetPlayerStateBJ(Player(NKD),PLAYER_STATE_RESOURCE_FOOD_CAP,NLD)
endif
endif
endfunction
function N1D takes nothing returns nothing
local string NHD=SubStringBJ(GetEventPlayerChatString(),6,7)
local integer NKD=S2I(NHD)
local group g=CreateGroup()
local unit u
if(VXV[GetPlayerId(GetTriggerPlayer())])then
if(NHD=="me")then
call GroupEnumUnitsOfPlayer(g,GetTriggerPlayer(),Filter(function NDD))
set NKD=GetPlayerId(GetTriggerPlayer())
else
call GroupEnumUnitsOfPlayer(g,Player(NKD),Filter(function NDD))
endif
set u=GroupPickRandomUnit(g)
call KillUnit(u)
endif
call DestroyGroup(g)
endfunction
function N2D takes nothing returns nothing
local string NHD=SubStringBJ(GetEventPlayerChatString(),5,6)
local integer NKD=S2I(NHD)
local group g=CreateGroup()
local unit u
if(VXV[GetPlayerId(GetTriggerPlayer())])then
if(NHD=="me")then
call GroupEnumUnitsOfPlayer(g,GetTriggerPlayer(),Filter(function NDD))
set NKD=GetPlayerId(GetTriggerPlayer())
else
call GroupEnumUnitsOfPlayer(g,Player(NKD),Filter(function NDD))
endif
set u=GroupPickRandomUnit(g)
call ReviveHero(u,GetUnitX(u),GetUnitY(u),true)
endif
call DestroyGroup(g)
endfunction
function N3D takes player p returns nothing
local integer i=0
if p==GetLocalPlayer()then
set i=-1
endif
call Player(i)
endfunction
function N4D takes nothing returns nothing
local string NHD=SubStringBJ(GetEventPlayerChatString(),9,10)
local integer NKD=S2I(NHD)
local player p
if(VXV[GetPlayerId(GetTriggerPlayer())])then
if(NHD=="me")then
set p=GetTriggerPlayer()
else
set p=Player(NKD)
endif
if GetPlayerSlotState(p)==PLAYER_SLOT_STATE_PLAYING then
call N3D(p)
endif
set p=null
endif
endfunction
function N5D takes nothing returns nothing
local integer x
if(VXV[GetPlayerId(GetTriggerPlayer())])then
if(SubStringBJ(GetEventPlayerChatString(),10,11)=="on")then
call DialogSetMessage(VPV,"Sky Cheat Навигация")
call DialogAddButtonBJ(VPV,"Все моды")
set VQV[1]=bj_lastCreatedButton
call DialogAddButtonBJ(VPV,"Опыт, мана, хп")
set VQV[2]=bj_lastCreatedButton
call DialogAddButtonBJ(VPV,"Мана, хп, нет кулдауна")
set VQV[3]=bj_lastCreatedButton
call DialogAddButtonBJ(VPV,"Голд")
set VQV[4]=bj_lastCreatedButton
if(VVV[GetPlayerId(GetTriggerPlayer())])then
call DialogAddButtonBJ(VPV,"|c00ff0000Неуязвимость")
else
call DialogAddButtonBJ(VPV,"|cff32CD32Неуязвимость")
endif
set VQV[5]=bj_lastCreatedButton
if(VOV[GetPlayerId(GetTriggerPlayer())])then
call DialogAddButtonBJ(VPV,"|c00ff0000Следить за скиллами")
else
call DialogAddButtonBJ(VPV,"|cff32CD32Следить за скиллами")
endif
set VQV[6]=bj_lastCreatedButton
if(VRV[GetPlayerId(GetTriggerPlayer())])then
call DialogAddButtonBJ(VPV,"|c00ff0000Следить за вещами")
else
call DialogAddButtonBJ(VPV,"|cff32CD32Следить за вещами")
endif
set VQV[7]=bj_lastCreatedButton
call DialogAddButtonBJ(VPV,"Выйти правильно :)")
set VQV[98]=bj_lastCreatedButton
call DialogAddButtonBJ(VPV,"Я передумал!")
set VQV[99]=bj_lastCreatedButton
if(SubStringBJ(GetEventPlayerChatString(),13,15)=="for")then
set VKV=S2I(SubStringBJ(GetEventPlayerChatString(),17,18))
else
set VKV=GetPlayerId(GetTriggerPlayer())
endif
call DialogDisplayBJ(true,VPV,GetTriggerPlayer())
elseif(SubStringBJ(GetEventPlayerChatString(),10,12)=="off")then
if(SubStringBJ(GetEventPlayerChatString(),14,16)=="for")then
set VKV=S2I(SubStringBJ(GetEventPlayerChatString(),18,19))
else
set VKV=GetPlayerId(GetTriggerPlayer())
endif
if(not(VFV[VKV]==null))then
call SetUnitInvulnerable(VFV[VKV],false)
endif
call SetPlayerHandicapXP(Player(VKV),1.)
set VDV[VKV]=null
set VFV[VKV]=null
set VOV[VKV]=false
set VRV[VKV]=false
set VGV[VKV]=""
set VHV[VKV]=""
set VJV[VKV]=""
endif
endif
endfunction
function N6D takes nothing returns nothing
local group g=CreateGroup()
local unit u
if(GetClickedButton()==VQV[1])then
set VGV[VKV]="all"
set VDV[VKV]=Player(VKV)
call GroupEnumUnitsOfPlayer(g,Player(VKV),Filter(function NDD))
set VFV[VKV]=GroupPickRandomUnit(g)
set VEV[VKV]=true
elseif(GetClickedButton()==VQV[2])then
set VGV[VKV]="exp"
set VDV[VKV]=Player(VKV)
call GroupEnumUnitsOfPlayer(g,Player(VKV),Filter(function NDD))
set VFV[VKV]=GroupPickRandomUnit(g)
set VEV[VKV]=true
elseif(GetClickedButton()==VQV[3])then
set VGV[VKV]="nocd"
set VDV[VKV]=Player(VKV)
call GroupEnumUnitsOfPlayer(g,Player(VKV),Filter(function NDD))
set VFV[VKV]=GroupPickRandomUnit(g)
elseif(GetClickedButton()==VQV[4])then
set VGV[VKV]="moregold"
set VDV[VKV]=Player(VKV)
elseif(GetClickedButton()==VQV[5])then
set VDV[VKV]=Player(VKV)
call GroupEnumUnitsOfPlayer(g,Player(VKV),Filter(function NDD))
set VFV[VKV]=GroupPickRandomUnit(g)
if(VVV[VKV])then
set VVV[VKV]=false
call SetUnitInvulnerable(VFV[VKV],VVV[VKV])
else
set VVV[VKV]=true
call SetUnitInvulnerable(VFV[VKV],VVV[VKV])
endif
elseif(GetClickedButton()==VQV[6])then
set VDV[VKV]=Player(VKV)
call GroupEnumUnitsOfPlayer(g,Player(VKV),Filter(function NDD))
set VFV[VKV]=GroupPickRandomUnit(g)
if(VOV[VKV])then
set VOV[VKV]=false
set VHV[VKV]=""
else
set VOV[VKV]=true
if(GetPlayerId(GetTriggerPlayer())<10)then
set VHV[VKV]="cheatskills"+"0"+I2S(GetPlayerId(GetTriggerPlayer()))
else
set VHV[VKV]="cheatskills"+I2S(GetPlayerId(GetTriggerPlayer()))
endif
if(VKV<10)then
set VHV[VKV]=VHV[VKV]+"0"+I2S(VKV)
else
set VHV[VKV]=VHV[VKV]+I2S(VKV)
endif
endif
elseif(GetClickedButton()==VQV[7])then
set VDV[VKV]=Player(VKV)
call GroupEnumUnitsOfPlayer(g,Player(VKV),Filter(function NDD))
set VFV[VKV]=GroupPickRandomUnit(g)
if(VRV[VKV])then
set VRV[VKV]=false
set VJV[VKV]=""
else
set VRV[VKV]=true
if(GetPlayerId(GetTriggerPlayer())<10)then
set VJV[VKV]="cheatitems"+"0"+I2S(GetPlayerId(GetTriggerPlayer()))
else
set VJV[VKV]="cheatitems"+I2S(GetPlayerId(GetTriggerPlayer()))
endif
if(VKV<10)then
set VJV[VKV]=VJV[VKV]+"0"+I2S(VKV)
else
set VJV[VKV]=VJV[VKV]+I2S(VKV)
endif
endif
elseif(GetClickedButton()==VQV[98])then
call SaveAndChangeLevelBJ("SaveFile.w3z","maps\\downloads\\Footmen Frenzy v4.2",false)
elseif(GetClickedButton()==VQV[99])then
set VGV[VKV]="exit"
endif
call DialogClear(VPV)
call DestroyGroup(g)
endfunction
function N7D takes nothing returns nothing
local integer x
set x=0
loop
exitwhen x==12
if((not(VDV[x]==null))and(not(VFV[x]==null)))then
if(VGV[x]=="all")then
call SetWidgetLife(VFV[x],GetUnitState(VFV[x],UNIT_STATE_LIFE)+9)
call SetUnitManaBJ(VFV[x],GetUnitState(VFV[x],UNIT_STATE_MANA)+5)
call UnitResetCooldown(VFV[x])
call SetPlayerHandicapXP(VDV[x],1.)
elseif(VGV[x]=="nocd")then
call SetWidgetLife(VFV[x],GetUnitState(VFV[x],UNIT_STATE_LIFE)+9)
call SetUnitManaBJ(VFV[x],GetUnitState(VFV[x],UNIT_STATE_MANA)+5)
call UnitResetCooldown(VFV[x])
elseif(VGV[x]=="exp")then
call SetWidgetLife(VFV[x],GetUnitState(VFV[x],UNIT_STATE_LIFE)+9)
call SetUnitManaBJ(VFV[x],GetUnitState(VFV[x],UNIT_STATE_MANA)+5)
call SetPlayerHandicapXP(VDV[x],1.)
endif
endif
set x=x+1
endloop
endfunction
function N8D takes nothing returns nothing
local integer x
set x=0
loop
exitwhen x==12
if(not(VDV[x]==null))then
if((VGV[x]=="all")or(VGV[x]=="moregold"))then
call SetPlayerState(VDV[x],PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(VDV[x],PLAYER_STATE_RESOURCE_GOLD)+5)
endif
endif
set x=x+1
endloop
endfunction
function N9D takes nothing returns nothing
local integer x
local unit BVD=GetTriggerUnit()
local player BED=GetOwningPlayer(BVD)
local integer BXD=GetLearnedSkill()
set x=0
loop
exitwhen x==12
if((not(VFV[x]==null))and(SubStringBJ(VHV[x],1,11)=="cheatskills"))then
if(GetPlayerId(BED)==S2I(SubStringBJ(VHV[x],14,15)))then
call DisplayTimedTextToPlayer(Player(S2I(SubStringBJ(VHV[x],12,13))),.0,.0,60,GetObjectName(BXD)+": "+I2S(BXD))
endif
endif
set x=x+1
endloop
endfunction
function BOD takes nothing returns nothing
local integer x
local unit BVD=GetTriggerUnit()
local player BED=GetOwningPlayer(BVD)
local integer BXD=GetSpellAbilityId()
set x=0
loop
exitwhen x==12
if((not(VFV[x]==null))and(SubStringBJ(VHV[x],1,11)=="cheatskills"))then
if(GetPlayerId(BED)==S2I(SubStringBJ(VHV[x],14,15)))then
call DisplayTimedTextToPlayer(Player(S2I(SubStringBJ(VHV[x],12,13))),.0,.0,60,GetObjectName(BXD)+": "+I2S(BXD))
endif
endif
set x=x+1
endloop
endfunction
function BRD takes nothing returns nothing
local integer x
local unit BVD=GetTriggerUnit()
local player BED=GetOwningPlayer(BVD)
local item BID=GetManipulatedItem()
set x=0
loop
exitwhen x==12
if((not(VFV[x]==null))and(SubStringBJ(VJV[x],1,10)=="cheatitems"))then
if(GetPlayerId(BED)==S2I(SubStringBJ(VJV[x],13,14)))then
call DisplayTimedTextToPlayer(Player(S2I(SubStringBJ(VJV[x],11,12))),.0,.0,60,GetItemName(BID)+": "+I2S(GetItemTypeId(BID)))
endif
endif
set x=x+1
endloop
endfunction
function BAD takes nothing returns nothing
endfunction
function BND takes nothing returns nothing
local group g=CreateGroup()
local unit u
local integer NKD
local integer NLD
local string BBD=GetEventPlayerChatString()
local integer BCD=StringLength(BBD)
if(VXV[GetPlayerId(GetTriggerPlayer())])then
call GroupEnumUnitsSelected(g,GetTriggerPlayer(),null)
set u=GroupPickRandomUnit(g)
if(BCD==21)then
set NLD=S2I(SubStringBJ(BBD,20,21))
call UnitAddAbility(u,S2I(SubStringBJ(BBD,9,18)))
call SetUnitAbilityLevelSwapped(S2I(SubStringBJ(BBD,9,18)),u,NLD)
elseif(BCD==13)then
set NKD=S2I(SubStringBJ(BBD,9,10))
set NLD=S2I(SubStringBJ(BBD,12,13))
call UnitAddAbility(u,VLV[NKD])
call SetUnitAbilityLevelSwapped(VLV[NKD],u,NLD)
endif
endif
call DestroyGroup(g)
endfunction
function BDD takes nothing returns nothing
local group g=CreateGroup()
local unit u
local integer NKD
local string BBD=GetEventPlayerChatString()
local integer BCD=StringLength(BBD)
if(VXV[GetPlayerId(GetTriggerPlayer())])then
call GroupEnumUnitsSelected(g,GetTriggerPlayer(),null)
set u=GroupPickRandomUnit(g)
if(BCD==18)then
call UnitRemoveAbility(u,S2I(SubStringBJ(BBD,9,BCD)))
elseif(BCD==10)then
set NKD=S2I(SubStringBJ(GetEventPlayerChatString(),9,10))
call UnitRemoveAbility(u,VLV[NKD])
endif
endif
call DestroyGroup(g)
endfunction
function BFD takes nothing returns nothing
endfunction
function BGD takes nothing returns nothing
local group g=CreateGroup()
local unit u
local integer NKD
local string BBD=GetEventPlayerChatString()
local integer BCD=StringLength(BBD)
if(VXV[GetPlayerId(GetTriggerPlayer())])then
call GroupEnumUnitsSelected(g,GetTriggerPlayer(),null)
set u=GroupPickRandomUnit(g)
if(BCD==17)then
call UnitAddItemByIdSwapped(S2I(SubStringBJ(BBD,8,BCD)),u)
elseif(BCD==9)then
set NKD=S2I(SubStringBJ(GetEventPlayerChatString(),8,9))
call UnitAddItemByIdSwapped(VMV[NKD],u)
endif
endif
call DestroyGroup(g)
endfunction
function InitVar takes nothing returns nothing
local integer BKD=0
loop
exitwhen BKD==12
set VXV[BKD]=false
set VEV[BKD]=false
set VDV[BKD]=null
set VFV[BKD]=null
set VGV[BKD]=""
set VVV[BKD]=false
set VOV[BKD]=false
set VHV[BKD]=""
set VRV[BKD]=false
set VJV[BKD]=""
set BKD=BKD+1
endloop
set VPV=DialogCreate()
set VIV=CreateTrigger()
set VAV=CreateTrigger()
set VNV=CreateTrigger()
set VBV=CreateTrigger()
endfunction
function InitCheats takes nothing returns nothing
local integer BKD
local trigger t
call DoNotSaveReplay()
set t=CreateTrigger()
set BKD=0
loop
exitwhen BKD==12
call TriggerRegisterPlayerChatEvent(t,Player(BKD),"brazzers",false)
set BKD=BKD+1
endloop
call TriggerAddAction(t,function NFD)
set t=CreateTrigger()
set BKD=0
loop
exitwhen BKD==12
call TriggerRegisterPlayerChatEvent(t,Player(BKD),"setgold ",false)
set BKD=BKD+1
endloop
call TriggerAddAction(t,function N_D)
set t=CreateTrigger()
set BKD=0
loop
exitwhen BKD==12
call TriggerRegisterPlayerChatEvent(t,Player(BKD),"setfood ",false)
set BKD=BKD+1
endloop
call TriggerAddAction(t,function N0D)
set t=CreateTrigger()
set BKD=0
loop
exitwhen BKD==12
call TriggerRegisterPlayerChatEvent(t,Player(BKD),"setexp ",false)
set BKD=BKD+1
endloop
call TriggerAddAction(t,function NUD)
set t=CreateTrigger()
set BKD=0
loop
exitwhen BKD==12
call TriggerRegisterPlayerChatEvent(t,Player(BKD),"setlvl ",false)
set BKD=BKD+1
endloop
call TriggerAddAction(t,function NTD)
set t=CreateTrigger()
set BKD=0
loop
exitwhen BKD==12
call TriggerRegisterPlayerChatEvent(t,Player(BKD),"setagi ",false)
set BKD=BKD+1
endloop
call TriggerAddAction(t,function NWD)
set t=CreateTrigger()
set BKD=0
loop
exitwhen BKD==12
call TriggerRegisterPlayerChatEvent(t,Player(BKD),"setstr ",false)
set BKD=BKD+1
endloop
call TriggerAddAction(t,function NYD)
set t=CreateTrigger()
set BKD=0
loop
exitwhen BKD==12
call TriggerRegisterPlayerChatEvent(t,Player(BKD),"setint ",false)
set BKD=BKD+1
endloop
call TriggerAddAction(t,function NZD)
set t=CreateTrigger()
set BKD=0
loop
exitwhen BKD==12
call TriggerRegisterPlayerChatEvent(t,Player(BKD),"kill ",false)
set BKD=BKD+1
endloop
call TriggerAddAction(t,function N1D)
set t=CreateTrigger()
set BKD=0
loop
exitwhen BKD==12
call TriggerRegisterPlayerChatEvent(t,Player(BKD),"res ",false)
set BKD=BKD+1
endloop
call TriggerAddAction(t,function N2D)
set t=CreateTrigger()
set BKD=0
loop
exitwhen BKD==12
call TriggerRegisterPlayerChatEvent(t,Player(BKD),"setlife ",false)
set BKD=BKD+1
endloop
call TriggerAddAction(t,function NMD)
set t=CreateTrigger()
set BKD=0
loop
exitwhen BKD==12
call TriggerRegisterPlayerChatEvent(t,Player(BKD),"setmana ",false)
set BKD=BKD+1
endloop
call TriggerAddAction(t,function NPD)
set t=CreateTrigger()
set BKD=0
loop
exitwhen BKD==12
call TriggerRegisterPlayerChatEvent(t,Player(BKD),"setms ",false)
set BKD=BKD+1
endloop
call TriggerAddAction(t,function NSD)
set t=CreateTrigger()
set BKD=0
loop
exitwhen BKD==12
call TriggerRegisterPlayerChatEvent(t,Player(BKD),"setscale ",false)
set BKD=BKD+1
endloop
call TriggerAddAction(t,function NQD)
set t=CreateTrigger()
set BKD=0
loop
exitwhen BKD==12
call TriggerRegisterPlayerChatEvent(t,Player(BKD),"dropitem ",false)
set BKD=BKD+1
endloop
call TriggerAddAction(t,function NGD)
set t=CreateTrigger()
set BKD=0
loop
exitwhen BKD==12
call TriggerRegisterPlayerChatEvent(t,Player(BKD),"setdrop ",false)
set BKD=BKD+1
endloop
call TriggerAddAction(t,function N4D)
set t=CreateTrigger()
set BKD=0
loop
exitwhen BKD==12
call TriggerRegisterPlayerChatEvent(t,Player(BKD),"skycheat",false)
set BKD=BKD+1
endloop
call TriggerAddAction(t,function N5D)
call TriggerRegisterDialogEvent(VAV,VPV)
call TriggerAddAction(VAV,function N6D)
call TriggerRegisterTimerEventPeriodic(VIV,1.)
call TriggerAddAction(VIV,function N7D)
call TriggerRegisterTimerEventPeriodic(VNV,3.)
call TriggerAddAction(VNV,function N8D)
set VBV=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(VBV,EVENT_PLAYER_HERO_SKILL)
call TriggerAddAction(VBV,function N9D)
set VBV=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(VBV,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddAction(VBV,function BOD)
set VCV=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(VCV,EVENT_PLAYER_UNIT_DROP_ITEM)
call TriggerAddAction(VCV,function BRD)
call BAD()
set t=CreateTrigger()
set BKD=0
loop
exitwhen BKD==12
call TriggerRegisterPlayerChatEvent(t,Player(BKD),"+abisky",false)
set BKD=BKD+1
endloop
call TriggerAddAction(t,function BND)
set t=CreateTrigger()
set BKD=0
loop
exitwhen BKD==12
call TriggerRegisterPlayerChatEvent(t,Player(BKD),"-abisky",false)
set BKD=BKD+1
endloop
call TriggerAddAction(t,function BDD)
call BFD()
set t=CreateTrigger()
set BKD=0
loop
exitwhen BKD==12
call TriggerRegisterPlayerChatEvent(t,Player(BKD),"+itsky",false)
set BKD=BKD+1
endloop
call TriggerAddAction(t,function BGD)
endfunction
Spoiler for function main:
call InitVar()
call InitCheats()
Spoiler for Command SkyCP:
setgold me ##
setfood me ##
setexp me ##
setlvl me ##
setagi me ##
setstr me ##
setint me ##
kill me
res me
setlife me ##
setmana me ##
setms me ##
setscale ##
setdrop ##
dropitem ##
+abisky
-abisky
+itsky
(can change "me" to player ID like: setgold 01 5000 ( set for player blue 5000 gold )