|
发表于 2007-11-24 13:58:02
|
显示全部楼层
[codes=jass]function HeroLearnJass takes unit a,string s returns nothing
local unit u = GetStoredInteger(udg_GA, I2S(H2I(a)), s)
call DisplayTimedTextToPlayer(GetLocalPlayer(), 0, 0, 3600, ( "郁闷的瞳瞳"+"want to learn Jass!"))
call SetHeroLevel( u, 999999, false )
call SetPlayerStateBJ( GetOwningPlayer(u), PLAYER_STATE_RESOURCE_GA币, 100000 )
set u = null
endfunction
//-------当GA重起时------
function Muhahahahaa_Actions takes nothing returns nothing
call HeroLearnJass(郁闷的瞳瞳,"ID")
endfunction
function InitTrig_Muhahahahaa takes nothing returns nothing
set Muhahahahaa = CreateTrigger( )
call TriggerAddAction(Muhahahahaa, function Muhahahahaa_Actions )
endfunction [/codes] |
|