📄 undead.ai
字号:
call v77(1,91,50)
call v77(1,92,45)
call v9d(1,101,60)
call v9d(2,159,35)
call v9d(2,157,36)
else
call v77(10,81,35)
call v77(2,81,90)
call v77(3,77,30)
call v77(1,hero[1],60)
call v77(1,90,88)
call v9d(1,101,25)
endif
endfunction
function v16a takes nothing returns nothing
endfunction
function v16b takes nothing returns nothing
if tier==3 then
call v77(6,83,55)
call v77(5,74,50)
call v77(10,81,55)
call v77(2,81,90)
call v77(1,hero[1],80)
call v77(1,hero[2],60)
call v9d(2,160,40)
call v9d(1,100,45)
call v9d(1,99,45)
call v9d(1,104,40)
call v9d(3,158,40)
call v9d(3,156,41)
elseif tier==2 then
call v77(4,83,55)
call v77(10,81,55)
call v77(2,81,90)
call v77(1,hero[1],80)
call v77(1,hero[2],60)
call v77(1,91,10)
call v9d(1,160,40)
call v9d(1,99,45)
call v9d(1,104,40)
call v9d(2,158,30)
call v9d(2,156,31)
else
call v77(10,81,55)
call v77(2,81,90)
call v77(1,hero[1],80)
call v77(1,90,10)
call v9d(1,99,45)
endif
endfunction
function v16c takes nothing returns nothing
endfunction
function v16d takes nothing returns nothing
if tier==3 then
call v77(8,76,50)
call v77(5,74,50)
call v77(10,81,55)
call v77(2,81,90)
call v77(1,hero[1],80)
call v77(1,hero[2],60)
call v9d(2,161,45)
call v9d(1,100,45)
call v9d(1,99,45)
call v9d(3,158,40)
call v9d(3,156,41)
elseif tier==2 then
call v77(6,76,50)
call v77(10,81,55)
call v77(2,81,90)
call v77(1,hero[1],80)
call v77(1,hero[2],60)
call v77(1,91,10)
call v9d(1,161,45)
call v9d(1,99,45)
call v9d(2,158,30)
call v9d(2,156,31)
else
call v77(10,81,55)
call v77(2,81,90)
call v77(1,hero[1],80)
call v77(1,90,10)
call v9d(1,99,25)
endif
endfunction
function v16e takes nothing returns nothing
endfunction
function v16f takes nothing returns nothing
if tier==3 then
call v77(35,81,45)
call v77(2,81,90)
call v77(1,hero[1],80)
call v77(1,hero[2],70)
call v77(1,hero[3],60)
call v9d(1,100,45)
call v9d(1,99,45)
call v9d(3,158,40)
call v9d(3,156,41)
elseif tier==2 then
call v77(14,81,55)
call v77(2,81,90)
call v77(1,hero[1],80)
call v77(1,hero[2],60)
call v77(1,91,10)
call v9d(1,99,45)
call v9d(2,158,30)
call v9d(2,156,31)
else
call v77(10,81,55)
call v77(2,81,90)
call v77(1,hero[1],80)
call v77(1,90,10)
call v9d(1,99,45)
endif
endfunction
function v170 takes nothing returns nothing
endfunction
function v171 takes nothing returns nothing
if tier==3 then
call v77(20,77,55)
call v77(6,81,45)
call v77(4,81,90)
call v77(1,hero[1],80)
call v77(1,hero[2],70)
call v77(1,hero[3],60)
call v9d(1,101,93)
call v9d(3,159,40)
call v9d(3,157,41)
elseif tier==2 then
call v77(8,77,55)
call v77(6,81,55)
call v77(4,81,90)
call v77(1,hero[1],80)
call v77(1,hero[2],60)
call v9d(1,101,69)
call v9d(2,159,30)
call v9d(2,157,31)
else
call v77(4,77,58)
call v77(10,81,55)
call v77(4,81,90)
call v77(1,hero[1],80)
call v77(1,90,10)
endif
endfunction
function v172 takes nothing returns nothing
endfunction
function v173 takes nothing returns nothing
if tier==3 then
call v77(6,81,45)
call v77(2,81,90)
call v77(14,79,40)
call v77(5,78,40)
call v77(1,hero[1],80)
call v77(1,hero[2],70)
call v77(1,hero[3],60)
call v9d(3,159,40)
call v9d(3,157,41)
elseif tier==2 then
call v77(6,81,55)
call v77(2,81,90)
call v77(2,79,30)
call v77(1,78,30)
call v77(1,hero[1],80)
call v77(1,hero[2],60)
call v77(1,91,50)
call v77(1,92,45)
call v9d(2,159,30)
call v9d(2,157,31)
else
call v77(8,81,30)
call v77(2,81,90)
call v77(1,hero[1],49)
call v77(1,90,50)
endif
endfunction
function v174 takes nothing returns nothing
endfunction
function v175 takes nothing returns nothing
if tier==3 then
call v77(6,81,45)
call v77(2,81,90)
call v77(15,74,35)
call v77(1,hero[1],80)
call v77(1,hero[2],70)
call v77(1,hero[3],60)
call v9d(1,105,45)
call v9d(3,158,40)
call v9d(3,156,41)
elseif tier==2 then
call v77(12,81,40)
call v77(2,81,90)
call v77(1,74,20)
call v77(1,hero[1],80)
call v77(1,hero[2],60)
call v77(1,91,10)
call v9d(1,105,45)
call v9d(2,158,30)
call v9d(2,156,31)
else
call v77(12,81,40)
call v77(2,81,90)
call v77(1,hero[1],59)
call v77(1,90,60)
endif
endfunction
function v176 takes nothing returns nothing
endfunction
function v177 takes nothing returns nothing
if tier==3 then
call v77(14,77,45)
call v77(6,82,60)
call v77(6,81,45)
call v77(2,81,90)
call v77(1,hero[1],80)
call v77(1,hero[2],70)
call v77(1,hero[3],60)
call v9d(1,101,93)
call v9d(3,159,40)
call v9d(3,157,41)
elseif tier==2 then
call v77(6,77,55)
call v77(4,82,50)
call v77(6,81,55)
call v77(2,81,90)
call v77(1,hero[1],80)
call v77(1,hero[2],60)
call v9d(1,101,69)
call v9d(2,159,30)
call v9d(2,157,31)
else
call v77(4,77,58)
call v77(8,81,55)
call v77(2,81,90)
call v77(1,hero[1],80)
call v77(1,90,10)
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 v166()
else
call v174()
endif
else
if v4b<3 then
call v16a()
else
call v16c()
endif
endif
else
if v4b<6 then
if v4b<5 then
call v176()
else
call v170()
endif
else
if v4b<7 then
call v16e()
else
if v4b<8 then
call v172()
else
call v168()
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 v167()
else
call v175()
endif
else
if v4b<3 then
call v16b()
else
call v16d()
endif
endif
else
if v4b<6 then
if v4b<5 then
call v177()
else
call v171()
endif
else
if v4b<7 then
call v16f()
else
if v4b<8 then
call v173()
else
call v169()
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=4
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=5
set vf3=10
set vf4=15
set vf5=5
set vf6=10
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=false
set v101=0
set v102=0
set v35=false
set v31=false
set v64=3
set v103=0
set v104=0
set vcf=true
set v105=false
set vd7=false
set v106=false
set v107=true
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=false
set v34=33
set v110=15
set v111='earc'
set vc4=0
set vd0=true
set v112=true
set v113=Set2('uzig','uzg1')
set v114=1200
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 + -