📄 elf.ai
字号:
call v9b(2,6,107)
set va2=2
endfunction
function vab takes nothing returns nothing
if tier==3 then
if v5b>7 then
call v77(2,110,65)
endif
call v77(4,116,50)
call v77(10,114,50)
call v77(10,107,50)
call v77(1,hero[1],80)
call v77(1,hero[2],60)
call v9d(1,138,60)
call v9d(1,134,60)
call v9d(1,135,60)
call v9d(1,133,60)
call v9d(3,164,35)
call v9d(3,162,36)
elseif tier==2 then
if v5b>7 then
call v77(1,110,50)
endif
call v77(4,116,40)
call v77(6,114,50)
call v77(6,107,50)
call v77(1,122,10)
call v77(1,hero[1],80)
call v77(1,hero[2],60)
call v9d(1,138,60)
call v9d(1,134,60)
call v9d(2,164,20)
call v9d(2,162,21)
else
call v77(6,116,30)
call v77(6,107,60)
call v77(1,121,10)
call v77(1,hero[1],80)
endif
endfunction
function vac takes nothing returns nothing
call v9b(2,3,107)
call v9b(2,1,110)
call v9b(2,2,116)
set va2=2
endfunction
function vad takes nothing returns nothing
if tier==3 then
if v5b>7 then
call v77(2,110,70)
endif
call v77(3,111,50)
call v77(8,113,55)
call v77(8,116,60)
call v77(6,110,60)
call v77(1,hero[1],80)
call v77(1,hero[2],60)
call v9d(1,139,70)
call v9d(2,167,40)
call v9d(1,136,35)
call v9d(3,165,35)
call v9d(3,163,36)
call v9d(1,133,64)
elseif tier==2 then
if v5b>7 then
call v77(1,110,70)
endif
call v77(6,113,55)
call v77(2,111,40)
call v77(5,116,60)
call v77(5,110,60)
call v77(1,122,10)
call v77(1,hero[1],80)
call v77(1,hero[2],60)
call v9d(1,139,68)
call v9d(1,136,40)
call v9d(2,165,25)
call v9d(2,163,26)
call v9d(1,167,30)
else
call v77(6,116,50)
call v77(2,110,60)
call v77(1,121,50)
call v77(1,hero[1],80)
call v9d(1,139,35)
endif
endfunction
function vae takes nothing returns nothing
call v9b(2,3,107)
call v9b(2,4,108)
set va2=2
endfunction
function vaf takes nothing returns nothing
if tier==3 then
if v5b>7 then
call v77(2,110,70)
endif
call v77(20,108,10)
call v77(6,116,60)
call v77(1,hero[1],80)
call v77(1,hero[2],70)
call v77(1,hero[3],60)
call v9d(2,166,56)
call v9d(3,165,35)
call v9d(3,163,36)
elseif tier==2 then
if v5b>7 then
call v77(1,110,60)
endif
call v77(12,108,10)
call v77(4,116,60)
call v77(1,122,50)
call v77(1,hero[1],80)
call v77(1,hero[2],60)
call v9d(1,166,38)
call v9d(2,165,25)
call v9d(2,163,26)
else
call v77(5,116,30)
call v77(6,107,60)
call v77(1,121,50)
call v77(1,hero[1],80)
endif
endfunction
function vb0 takes nothing returns nothing
call v9b(2,5,107)
set va2=2
endfunction
function vb1 takes nothing returns nothing
if tier==3 then
if v5b>7 then
call v77(2,110,50)
endif
call v77(15,114,10)
call v77(6,117,40)
call v77(1,hero[1],80)
call v77(1,hero[2],70)
call v77(1,hero[3],60)
call v9d(3,165,35)
call v9d(3,163,36)
call v9d(1,137,50)
elseif tier==2 then
if v5b>7 then
call v77(1,110,45)
endif
call v77(4,107,40)
call v77(4,114,10)
call v77(1,117,12)
call v77(1,122,50)
call v77(1,hero[1],20)
call v77(1,hero[2],10)
call v9d(2,165,25)
call v9d(2,163,26)
call v9d(1,137,30)
else
call v77(8,107,40)
call v77(1,121,50)
call v77(1,hero[1],49)
endif
endfunction
function vb2 takes nothing returns nothing
call v9b(2,3,107)
call v9b(2,3,113)
set va2=2
endfunction
function vb3 takes nothing returns nothing
if tier==3 then
if v5b>7 then
call v77(2,110,50)
endif
call v77(10,113,10)
call v77(8,117,40)
call v77(1,hero[1],80)
call v77(1,hero[2],70)
call v77(1,hero[3],60)
call v9d(3,165,35)
call v9d(3,163,36)
call v9d(1,137,50)
call v9d(1,136,38)
elseif tier==2 then
if v5b>7 then
call v77(1,110,40)
endif
call v77(4,107,40)
call v77(4,113,10)
call v77(1,117,12)
call v77(1,122,50)
call v77(1,hero[1],20)
call v77(1,hero[2],10)
call v9d(2,165,30)
call v9d(2,163,21)
call v9d(1,137,20)
call v9d(1,136,16)
else
call v77(8,107,30)
call v77(1,hero[1],49)
call v77(1,121,50)
endif
endfunction
function vb4 takes nothing returns nothing
call v9b(2,6,107)
set va2=2
endfunction
function vb5 takes nothing returns nothing
if tier==3 then
if v5b>7 then
call v77(2,110,60)
call v9d(1,139,60)
elseif v5b>16 then
call v77(4,110,60)
call v9d(1,139,63)
endif
call v77(31,107,10)
call v77(1,hero[1],80)
call v77(1,hero[2],75)
call v77(1,hero[3],70)
call v9d(1,134,70)
call v9d(1,135,65)
call v9d(1,131,40)
call v9d(3,164,35)
call v9d(3,162,36)
elseif tier==2 then
if v5b>7 then
call v77(1,110,60)
call v9d(1,139,50)
endif
call v77(18,107,30)
call v77(1,122,10)
call v77(1,hero[1],80)
call v77(1,hero[2],70)
call v9d(1,131,20)
call v9d(1,134,60)
call v9d(2,164,20)
call v9d(2,162,25)
else
call v77(12,107,30)
call v77(1,121,43)
call v77(1,hero[1],80)
endif
endfunction
function vb6 takes nothing returns nothing
call v9b(2,4,107)
call v9b(2,2,111)
set va2=2
endfunction
function vb7 takes nothing returns nothing
if tier==3 then
if v5b>7 then
call v77(2,110,55)
endif
call v77(9,107,40)
call v77(10,111,25)
call v77(1,hero[1],80)
call v77(1,hero[2],70)
call v77(1,hero[3],60)
call v9d(2,167,50)
call v9d(3,165,50)
call v9d(3,163,51)
call v9d(3,164,40)
call v9d(3,162,41)
call v9d(1,134,40)
call v9d(1,135,40)
elseif tier==2 then
if v5b>7 then
call v77(1,110,50)
endif
call v77(7,107,40)
call v77(8,111,30)
call v77(1,122,10)
call v77(1,hero[1],80)
call v77(1,hero[2],60)
call v9d(1,167,57)
call v9d(2,165,56)
call v9d(2,163,57)
call v9d(2,164,20)
call v9d(2,162,21)
call v9d(1,134,40)
else
call v77(8,107,40)
call v77(1,121,50)
call v77(1,hero[1],80)
endif
endfunction
function vb8 takes nothing returns nothing
call vb9()
call vba()
call vbb()
call v9a()
set vbc=vbd[vbe]+v1a[v4b]
set vbf=vc0[vbe]+v1b[v4b]
call vc1()
if v4b<4 then
if v4b<2 then
if v4b<1 then
call vb6()
else
call va1()
endif
else
if v4b<3 then
call va8()
else
call vb4()
endif
endif
else
if v4b<6 then
if v4b<5 then
call vac()
else
call va4()
endif
else
if v4b<8 then
if v4b<7 then
call vb0()
else
call vb2()
endif
else
if v4b<9 then
call vaa()
else
call vae()
endif
endif
endif
endif
endfunction
function vc2 takes nothing returns nothing
call v9c()
if vc3 then
call va6(2,48,true,0,63,1000)
call v77(1,hero[1],100)
call v77(1,vc4,98)
endif
if v4b>=v21 then
call v87()
else
if v4b<4 then
if v4b<2 then
if v4b<1 then
call vb7()
else
call va3()
endif
else
if v4b<3 then
call va9()
else
call vb5()
endif
endif
else
if v4b<6 then
if v4b<5 then
call vad()
else
call va7()
endif
else
if v4b<8 then
if v4b<7 then
call vb1()
else
call vb3()
endif
else
if v4b<9 then
call vab()
else
call vaf()
endif
endif
endif
endif
endif
endfunction
function vc5 takes nothing returns nothing
if vc6 then
loop
exitwhen v8f(hero[1])>0
call Sleep(2*vc7)
endloop
endif
call vc8(0,2)
loop
loop
exitwhen not vc9 and not(CaptainRetreating()and vca)
exitwhen vcb
call CaptainGoHome()
call Sleep(2*vc7)
endloop
call vcc()
if vc6 then
call vcd()
call v32("RACIAL ATTACK: Heroes Are Ready")
endif
exitwhen vcb
if vce then
call v32("RACIAL ATTACK: Not allowed to attack setting is on")
else
if vcf and vd0 then
call v8e()
set vb=false
loop
exitwhen vb
call Sleep(vc7)
call v32("RACIAL ATTACK: Assigning Peons")
endloop
endif
call v8a(false)
call vd1()
set v93=0
endif
call Sleep(vc7)
endloop
endfunction
function vd2 takes integer vd3 returns nothing
if TownHasMine(vd3)then
call HarvestGold(vd3,5)
endif
endfunction
function vd4 takes nothing returns nothing
call ClearHarvestAI()
call vd2(0)
if not vd5 then
call vd2(1)
call vd2(2)
call vd2(3)
endif
if vcf then
if v98 then
call HarvestWood(0,v94(v8f(v90)-v93,v99)+v8f(v96))
else
call HarvestWood(0,v94(v8f(v90)-v93,1)+v8f(v96))
endif
set vb=true
elseif vd5 then
call HarvestWood(0,20)
endif
endfunction
function vd6 takes nothing returns nothing
if vcf or vd7 or vd5 then
call vd4()
else
call vd8()
endif
endfunction
function vd9 takes nothing returns nothing
local integer x=R2I(I2R(-v17[v4b]*(4-v97(3,tier)))/(3*vc7*v94(vda-1,1)))
local integer vdb=0
loop
exitwhen vcb
call vd6()
if x>2 then
set x=0
call v49()
endif
if vdc!=v4b then
set vdc=v4b
call v60()
if v4b<=49 then
set x=R2I(I2R(-v17[v4b]*(4-v97(3,tier)))/(3*vc7*v94(vda-1,1)))
endif
call vdd()
call vb8()
call vde(vdf())
call ve0(vdf())
endif
set vdb=ve1()
if tier!=vdb then
set tier=vdb
call vdd()
endif
call vc2()
call Sleep(3*vc7)
call vd6()
call Sleep(3*vc7)
set x=x+1
endloop
endfunction
function main takes nothing returns nothing
set ve2=3
call v29()
set ve3=1
call ve4()
set ve5=200
set ve6=120
set ve7=80
set ve8=2
set ve9=1
set vea=2
set veb=8
set vec=1
set ved=400
set vee=280
set vef=200
set vf0=300
set vf1=200
set vf2=11
set vf3=16
set vf4=18
set vf5=6
set vf6=11
set v52=1500
set v53=3
set vf7=3
set vf8=8
set vf9=9
set vfa=3
set vfb=10
set vfc=4
set vfd=7
set vfe=8
set vff=20
set v4d=-1
set v100=true
set vd5=true
set v101=106
set v102=129
set v35=false
set v31=false
set v64=3
set v103=0
set v104=0
set vcf=false
set v105=false
set vd7=false
set v106=false
set v107=false
set v108=true
set v109=false
set v10a=1000
set v10b='Amil'
set v10c='Amic'
set v10d="militia"
set v10e="peasant"
set v10f=false
set v33=true
set v34=50
set v110=15
set v111='earc'
set vc4=0
set vd0=true
set v112=false
set v113=0
set v114=1500
set v115=false
set v116=4
set v117=0
set v118=850
set v119=0
set v11a=0
set v36=50
set v11b=11
set v11c=false
set v3b=2
set v11d=2
call v2f()
call v22()
call v24()
call v26()
call v11e()
call v11f()
call v3d()
call v120()
call v121()
call v122()
set v4c=v123()
set v4b=v4c
call v124("Strategy",v125())
call v62()
if v35 then
call v37()
endif
call v88()
call v60()
call vb8()
call AMAI(function v126,function vd9,function vc5)
call v127()
endfunction
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -