📄 elf.ai
字号:
set v3e[v2]=v3e[v2]+0
set v3e[v6]=v3e[v6]+0
set v3e[v3]=v3e[v3]+0
set v3e[v9]=v3e[v9]+0
set v3e[v5]=v3e[v5]+0
set v3e[va]=v3e[va]+0
set v3e[v7]=v3e[v7]+0
set v3e[v8]=v3e[v8]+0
set v3e[v4]=v3e[v4]+0
set v3e[v1]=v3e[v1]+0
endif
if v46[2]>0 then
set v3e[v2]=v3e[v2]+0
set v3e[v6]=v3e[v6]+0
set v3e[v3]=v3e[v3]+0
set v3e[v9]=v3e[v9]+0
set v3e[v5]=v3e[v5]+0
set v3e[va]=v3e[va]+0
set v3e[v7]=v3e[v7]+0
set v3e[v8]=v3e[v8]+0
set v3e[v4]=v3e[v4]+0
set v3e[v1]=v3e[v1]+0
endif
if v46[3]>0 then
set v3e[v2]=v3e[v2]+0
set v3e[v6]=v3e[v6]+0
set v3e[v3]=v3e[v3]+0
set v3e[v9]=v3e[v9]+0
set v3e[v5]=v3e[v5]+0
set v3e[va]=v3e[va]+0
set v3e[v7]=v3e[v7]+0
set v3e[v8]=v3e[v8]+0
set v3e[v4]=v3e[v4]+0
set v3e[v1]=v3e[v1]+0
endif
if v46[4]>0 then
set v3e[v2]=v3e[v2]+0
set v3e[v6]=v3e[v6]+0
set v3e[v3]=v3e[v3]+0
set v3e[v9]=v3e[v9]+0
set v3e[v5]=v3e[v5]+0
set v3e[va]=v3e[va]+0
set v3e[v7]=v3e[v7]+0
set v3e[v8]=v3e[v8]+0
set v3e[v4]=v3e[v4]+0
set v3e[v1]=v3e[v1]+0
endif
if v40>2 then
call v47(3)
endif
call v48()
endfunction
function v49 takes nothing returns nothing
local real array rp
if not v4a or v4b!=v4c or v4d>-1 or v4e()>=85 or v4f()<v50 then
return
endif
call v3d()
call v51()
set v3e[v4b]=v3e[v4b]+v52+v53*v4e()
set v3e[v2]=0
set v3e[v6]=0
set v3e[v3]=0
set v3e[v9]=0
set v3e[v5]=0
set v3e[va]=0
set v3e[v7]=0
set v3e[v8]=0
set v3e[v4]=0
set v3e[v1]=0
set rp[v2]=rp[v2]+0*v54
set rp[v6]=rp[v6]+-6*v54
set rp[v3]=rp[v3]+1*v54
set rp[v9]=rp[v9]+1*v54
set rp[v5]=rp[v5]+-1*v54
set rp[va]=rp[va]+0*v54
set rp[v7]=rp[v7]+1*v54
set rp[v8]=rp[v8]+-1*v54
set rp[v4]=rp[v4]+1*v54
set rp[v1]=rp[v1]+-8*v54
set rp[v2]=rp[v2]+0*v55
set rp[v6]=rp[v6]+0*v55
set rp[v3]=rp[v3]+0*v55
set rp[v9]=rp[v9]+0*v55
set rp[v5]=rp[v5]+0*v55
set rp[va]=rp[va]+1*v55
set rp[v7]=rp[v7]+-1*v55
set rp[v8]=rp[v8]+1*v55
set rp[v4]=rp[v4]+1*v55
set rp[v1]=rp[v1]+1*v55
set rp[v2]=rp[v2]+0*v56
set rp[v6]=rp[v6]+0*v56
set rp[v3]=rp[v3]+0*v56
set rp[v9]=rp[v9]+0*v56
set rp[v5]=rp[v5]+1*v56
set rp[va]=rp[va]+0*v56
set rp[v7]=rp[v7]+1*v56
set rp[v8]=rp[v8]+1*v56
set rp[v4]=rp[v4]+-1*v56
set rp[v1]=rp[v1]+0.4*v56
set rp[v2]=rp[v2]+0*v57
set rp[v6]=rp[v6]+0*v57
set rp[v3]=rp[v3]+0*v57
set rp[v9]=rp[v9]+-3*v57
set rp[v5]=rp[v5]+0*v57
set rp[va]=rp[va]+-1*v57
set rp[v7]=rp[v7]+-3*v57
set rp[v8]=rp[v8]+0*v57
set rp[v4]=rp[v4]+0*v57
set rp[v1]=rp[v1]+0*v57
set rp[v2]=rp[v2]+0*v58
set rp[v6]=rp[v6]+0*v58
set rp[v3]=rp[v3]+0*v58
set rp[v9]=rp[v9]+0*v58
set rp[v5]=rp[v5]+0*v58
set rp[va]=rp[va]+0*v58
set rp[v7]=rp[v7]+0*v58
set rp[v8]=rp[v8]+0*v58
set rp[v4]=rp[v4]+0*v58
set rp[v1]=rp[v1]+0*v58
set rp[v2]=rp[v2]+0*v59
set rp[v6]=rp[v6]+0*v59
set rp[v3]=rp[v3]+0*v59
set rp[v9]=rp[v9]+0*v59
set rp[v5]=rp[v5]+0*v59
set rp[va]=rp[va]+-1*v59
set rp[v7]=rp[v7]+0*v59
set rp[v8]=rp[v8]+0*v59
set rp[v4]=rp[v4]+0*v59
set rp[v1]=rp[v1]+0*v59
set rp[v2]=rp[v2]+0*v5a
set rp[v6]=rp[v6]+0*v5a
set rp[v3]=rp[v3]+0*v5a
set rp[v9]=rp[v9]+0*v5a
set rp[v5]=rp[v5]+0*v5a
set rp[va]=rp[va]+0*v5a
set rp[v7]=rp[v7]+0*v5a
set rp[v8]=rp[v8]+0*v5a
set rp[v4]=rp[v4]+0*v5a
set rp[v1]=rp[v1]+0*v5a
set rp[v2]=rp[v2]+0*v5b
set rp[v6]=rp[v6]+0*v5b
set rp[v3]=rp[v3]+0*v5b
set rp[v9]=rp[v9]+0*v5b
set rp[v5]=rp[v5]+1*v5b
set rp[va]=rp[va]+0*v5b
set rp[v7]=rp[v7]+0*v5b
set rp[v8]=rp[v8]+0*v5b
set rp[v4]=rp[v4]+1*v5b
set rp[v1]=rp[v1]+0*v5b
set rp[v2]=rp[v2]+0*v5c
set rp[v6]=rp[v6]+2*v5c
set rp[v3]=rp[v3]+0*v5c
set rp[v9]=rp[v9]+0*v5c
set rp[v5]=rp[v5]+0*v5c
set rp[va]=rp[va]+0*v5c
set rp[v7]=rp[v7]+0*v5c
set rp[v8]=rp[v8]+0*v5c
set rp[v4]=rp[v4]+-1*v5c
set rp[v1]=rp[v1]+1*v5c
set rp[v2]=rp[v2]+0*v5d
set rp[v6]=rp[v6]+0*v5d
set rp[v3]=rp[v3]+0*v5d
set rp[v9]=rp[v9]+0*v5d
set rp[v5]=rp[v5]+0*v5d
set rp[va]=rp[va]+0*v5d
set rp[v7]=rp[v7]+0*v5d
set rp[v8]=rp[v8]+0*v5d
set rp[v4]=rp[v4]+0*v5d
set rp[v1]=rp[v1]+0*v5d
set rp[v2]=rp[v2]+0*v5e
set rp[v6]=rp[v6]+0*v5e
set rp[v3]=rp[v3]+1*v5e
set rp[v9]=rp[v9]+1*v5e
set rp[v5]=rp[v5]+0*v5e
set rp[va]=rp[va]+0.5*v5e
set rp[v7]=rp[v7]+0*v5e
set rp[v8]=rp[v8]+0.5*v5e
set rp[v4]=rp[v4]+0.5*v5e
set rp[v1]=rp[v1]+0*v5e
set v3e[v2]=v3e[v2]+R2I(rp[v2])
set v3e[v6]=v3e[v6]+R2I(rp[v6])
set v3e[v3]=v3e[v3]+R2I(rp[v3])
set v3e[v9]=v3e[v9]+R2I(rp[v9])
set v3e[v5]=v3e[v5]+R2I(rp[v5])
set v3e[va]=v3e[va]+R2I(rp[va])
set v3e[v7]=v3e[v7]+R2I(rp[v7])
set v3e[v8]=v3e[v8]+R2I(rp[v8])
set v3e[v4]=v3e[v4]+R2I(rp[v4])
set v3e[v1]=v3e[v1]+R2I(rp[v1])
call v5f()
endfunction
function v60 takes nothing returns nothing
set v61[0]=1
set v61[1]=2
set v61[2]=3
set v61[3]=1
set v61[4]=1
set v61[5]=-1
set v61[6]=-2
set v61[7]=-1
set v61[8]=0
set v61[9]=1
set v61[10]=-1
set v61[11]=-1
endfunction
function v62 takes nothing returns nothing
local integer i=0
set v63=v64+v65
if v66 and v67[0]then
call v68()
else
set v69=v65
endif
set v6a[0]=10
set v6b[0]=30
set v6a[1]=11
set v6b[1]=25
set v6a[2]=12
set v6b[2]=5
loop
exitwhen i>v63
set v6c[i]=v6a[i]
set i=i+1
endloop
call v6d()
call v6e(v1c[v4b],v1d[v4b])
if v42>0 then
set v6b[0]=v6b[0]+0
set v6b[1]=v6b[1]+0
set v6b[2]=v6b[2]+0
endif
if v45[0]>0 then
set v6b[0]=v6b[0]+0
set v6b[1]=v6b[1]+0
set v6b[2]=v6b[2]+0
endif
if v45[1]>0 then
set v6b[0]=v6b[0]+0
set v6b[1]=v6b[1]+0
set v6b[2]=v6b[2]+0
endif
if v46[1]>0 then
set v6b[0]=v6b[0]+0
set v6b[1]=v6b[1]+0
set v6b[2]=v6b[2]+0
endif
if v45[2]>0 then
set v6b[0]=v6b[0]+0
set v6b[1]=v6b[1]+0
set v6b[2]=v6b[2]+0
endif
if v46[2]>0 then
set v6b[0]=v6b[0]+0
set v6b[1]=v6b[1]+0
set v6b[2]=v6b[2]+0
endif
if v45[3]>0 then
set v6b[0]=v6b[0]+0
set v6b[1]=v6b[1]+0
set v6b[2]=v6b[2]+0
endif
if v46[3]>0 then
set v6b[0]=v6b[0]+0
set v6b[1]=v6b[1]+0
set v6b[2]=v6b[2]+0
endif
if v45[4]>0 then
set v6b[0]=v6b[0]+0
set v6b[1]=v6b[1]+0
set v6b[2]=v6b[2]+0
endif
if v46[4]>0 then
set v6b[0]=v6b[0]+0
set v6b[1]=v6b[1]+0
set v6b[2]=v6b[2]+0
endif
set v6b[0]=v6b[0]+0
set v6b[1]=v6b[1]+0
set v6b[2]=v6b[2]+0
set v6f=v70()
set v6b[0]=v6b[0]-0
set v6b[1]=v6b[1]-0
set v6b[2]=v6b[2]-0
set v6b[0]=v6b[0]+0
set v6b[1]=v6b[1]+0
set v6b[2]=v6b[2]+0
call v6e(v1e[v4b],v1f[v4b])
call v71()
set v6b[0]=v6b[0]-0
set v6b[1]=v6b[1]-0
set v6b[2]=v6b[2]-0
set v6b[0]=v6b[0]+0
set v6b[1]=v6b[1]+0
set v6b[2]=v6b[2]+0
call v72()
endfunction
function v73 takes nothing returns nothing
local integer v74=0
set v74=v75(114)
if v74>=v76 then
set v4b=v4c
else
call v77(v76,114,90)
endif
endfunction
function v78 takes nothing returns nothing
local integer v79=0
set v79=v75(117)
if v79>=v7a then
set v4b=v4c
else
call v77(v7a,117,90)
endif
endfunction
function v7b takes nothing returns nothing
local integer v7c=0
set v7c=v75(107)
if v7c>=v7d then
set v4b=v4c
else
call v77(v7d,107,90)
endif
endfunction
function v7e takes nothing returns nothing
local integer v7f=0
set v7f=v75(116)
if v7f>=v80 then
set v4b=v4c
else
call v77(v80,116,90)
endif
endfunction
function v81 takes nothing returns nothing
local integer v82=0
set v82=v75(128)
if v82>=v83 then
set v4b=v4c
else
call v77(v83,128,90)
endif
endfunction
function v84 takes nothing returns nothing
local integer v85=0
set v85=v75(124)
if v85>=v86 then
set v4b=v4c
else
call v77(v86,124,90)
endif
endfunction
function v87 takes nothing returns nothing
if v4b==50 then
call v73()
elseif v4b==51 then
call v78()
elseif v4b==52 then
call v7b()
elseif v4b==53 then
call v7e()
elseif v4b==54 then
call v81()
elseif v4b==55 then
call v84()
endif
endfunction
function v88 takes nothing returns nothing
if hero[1]==10 then
call v89(1,1,1)
elseif hero[2]==10 then
call v89(2,1,2)
elseif hero[3]==10 then
call v89(3,1,3)
endif
if hero[1]==11 then
call v89(1,2,1)
elseif hero[2]==11 then
call v89(2,2,2)
elseif hero[3]==11 then
call v89(3,2,3)
endif
if hero[1]==12 then
call v89(1,3,1)
elseif hero[2]==12 then
call v89(2,3,2)
elseif hero[3]==12 then
call v89(3,3,3)
endif
endfunction
function v8a takes boolean inj returns nothing
set wave=wave+1
call v8b()
if inj then
call RemoveInjuries()
endif
call v8c(hero[1])
call v8c(hero[2])
call v8c(hero[3])
call v8c(107)
call v8c(108)
call v8c(109)
call v8c(110)
call v8c(111)
call v8c(112)
call v8c(113)
call v8c(114)
call v8c(115)
call v8c(116)
call v8c(117)
call v8d()
endfunction
function v8e takes nothing returns nothing
local integer gn=v8f(v90)
local integer wood=v91()
if wood>v92 then
set vc=true
elseif wood<v92 then
set vc=false
endif
if vc then
set v93=gn-1
elseif wave==1 then
set v93=v94(4,gn-2)
elseif wave==2 then
set v93=v94(5,gn-2)
elseif wood<v95 then
set v93=gn-v94(4-(4*v8f(v96)),0)
elseif wood>v95 and wood<v92/2 then
set v93=gn-v94(3-(4*v8f(v96)),0)
else
set v93=gn-v94(2-(4*v8f(v96)),0)
endif
set v93=v97(v94(v93,0),gn-1)
if not v98 and wood<v95 then
set v99=1
else
set v99=1
endif
endfunction
function v9a takes nothing returns nothing
call v9b(1,1,116)
endfunction
function v9c takes nothing returns nothing
if v8f(107)>4 and v8f(114)>2 then
call v9d(1,138,80)
endif
call v77(2,v9e,50)
if GetPlayerRace(v9f)!=RACE_UNDEAD and v8f(116)>5 then
call va0(1,0,true,4,0.75,0,true,50,80)
endif
endfunction
function va1 takes nothing returns nothing
call v9b(2,2,116)
call v9b(2,4,107)
set va2=2
endfunction
function va3 takes nothing returns nothing
if tier==3 then
if v5b>7 then
call v77(2,110,60)
endif
call v77(8,116,60)
call v77(3,111,50)
call v77(5,113,55)
call v77(2,117,20)
call v77(1,hero[1],80)
call v77(1,hero[2],60)
call v77(1,hero[3],40)
call v9d(2,167,40)
call v9d(1,136,35)
call v9d(1,133,60)
call v9d(3,164,40)
call v9d(3,162,41)
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(8,116,60)
call v77(5,113,55)
call v77(1,110,20)
call v77(1,122,10)
call v77(1,hero[1],80)
call v77(1,hero[2],60)
call v9d(1,136,35)
call v9d(2,164,20)
call v9d(2,162,21)
call v9d(2,165,35)
call v9d(2,163,36)
else
call v77(8,116,50)
call v77(6,107,60)
call v77(1,121,10)
call v77(1,hero[1],80)
endif
endfunction
function va4 takes nothing returns nothing
call va5(475,170,0,119,60)
call va6(1,127,false,1,128,60)
call v9b(2,4,116)
call v9b(2,1,113)
set va2=2
endfunction
function va7 takes nothing returns nothing
if tier==3 then
if v5b>7 then
call v77(2,110,60)
endif
call v77(16,116,30)
call v77(8,113,20)
call v77(1,hero[1],90)
call v77(1,hero[2],60)
call v9d(1,136,35)
call v9d(1,133,50)
call v9d(3,164,40)
call v9d(3,162,41)
call v9d(3,165,30)
call v9d(3,163,31)
elseif tier==2 then
if v5b>7 then
call v77(1,110,60)
endif
call v77(8,116,50)
call v77(4,113,50)
call v77(1,122,10)
call v77(1,hero[1],80)
call v77(1,hero[2],60)
call v9d(1,136,35)
call v9d(2,164,20)
call v9d(2,162,21)
call v9d(2,165,10)
call v9d(2,163,11)
else
call v77(8,116,50)
call v77(1,121,10)
call v77(1,hero[1],80)
endif
endfunction
function va8 takes nothing returns nothing
call va5(475,170,0,119,60)
call va6(1,127,false,1,128,60)
call v9b(2,3,116)
call v9b(2,2,113)
set va2=2
endfunction
function va9 takes nothing returns nothing
if tier==3 then
if v5b>7 then
call v77(2,110,65)
endif
call v77(3,111,50)
call v77(8,113,55)
call v77(8,116,70)
call v77(1,hero[1],80)
call v77(1,hero[2],60)
call v9d(2,167,40)
call v9d(1,136,35)
call v9d(3,165,35)
call v9d(3,163,36)
call v9d(1,134,30)
call v9d(1,135,30)
elseif tier==2 then
if v5b>7 then
call v77(1,110,60)
endif
call v77(6,113,55)
call v77(2,111,40)
call v77(6,116,70)
call v77(1,122,10)
call v77(1,hero[1],80)
call v77(1,hero[2],60)
call v9d(1,136,40)
call v9d(2,165,25)
call v9d(2,163,26)
call v9d(1,167,30)
call v9d(1,134,30)
else
call v77(8,116,40)
call v77(1,121,10)
call v77(1,hero[1],80)
endif
endfunction
function vaa takes nothing returns nothing
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -