function WaitForString takes player clhnw,string clhnq,boolean clhne returns nothing
local trigger clhnr=CreateTrigger()
if clhne then
call TriggerRegisterPlayerChatEvent(clhnr,clhnw,"-clearkeys",true)
endif
call TriggerRegisterPlayerChatEvent(clhnr,clhnw,clhnq,false)
loop
call TriggerSleepAction(1.00)
exitwhen GetTriggerExecCount(clhnr)>0
endloop
call DestroyTrigger(clhnr)
set clhnr=null
set clhnw=null
set clhnq=""
endfunction
function ResetCD takes nothing returns nothing
call UnitResetCooldown(GetTriggerUnit())
endfunction
function ResetMP takes nothing returns nothing
local unit u2u=GetTriggerUnit()
call SetUnitState(u2u,UNIT_STATE_MANA,GetUnitState(u2u,UNIT_STATE_MAX_MANA))
set u2u=null
endfunction
呢d?=.=