|
楼主 |
发表于 2008-8-1 19:35:20
|
显示全部楼层
那个坏的。。J没有了。。。
只有那段自定义的函数,也是刚学的。。
[codes=jass]
function H2I takes handle h returns integer
return h
return 0
endfunction
function I2U takes integer i returns unit
return i
return null
endfunction
function H2S takes handle h returns string
return I2S(H2I(h))
endfunction
function GetUnit takes string pTable,string pKey returns unit
return GetStoredInteger(udg_GC,pTable,pKey)
return null
endfunction
function SetInteger takes string pTable,string pKey,integer pData returns nothing
call StoreInteger(udg_GC,pTable,pKey,pData)
endfunction
function Flush takes string pTable returns nothing
call FlushStoredMission(udg_GC,pTable)
endfunction
function d takes nothing returns nothing
local timer t = GetExpiredTimer()
local string s = H2S(t)
local unit u=I2U(GetStoredInteger(udg_GC,s,"NongFu"))
local location d1 = GetUnitLoc(u)
local location d2 = PolarProjectionBJ(d1, 12.00, GetUnitFacing(u))
call SetUnitPositionLoc( u, d2 )
call CreateNUnitsAtLoc( 1, 'e003', Player(10), d2, bj_UNIT_FACING )
call UnitApplyTimedLife( GetLastCreatedUnit(), 'BHwe', 0.01 )
call RemoveLocation(d1)
call RemoveLocation(d2)
set d1=null
set d2=null
set t = null
endfunction
function c takes unit u returns nothing
local timer t = CreateTimer()
local string s = H2S(t)
call SetInteger(s,"NongFu",H2I(u))
call TimerStart(t, 0.01, true, function d)
call TriggerSleepAction( 0.50 )
call PauseTimer( t )
call DestroyTimer(t)
endfunction
[/codes]
感觉不是我的自定义有问题,就是我的WE编辑器有问题,我用的red_wolf,加上wow8专用编辑器,还有个DND什么的.
还有就是能力有限想不到了。。 |
|