|
|
楼主 |
发表于 2010-7-19 13:43:24
|
显示全部楼层
JASS代码,变量名我已经替换掉了
==================================================================
function Trig_Run_Save_Actions takes nothing returns nothing
set qqmf[GetConvertedPlayerId(GetTriggerPlayer())] = true
if ( Trig_Run_Save_Func003C() ) then
return
else
endif
set 玩家序号 = GetConvertedPlayerId(GetTriggerPlayer())
set 字符C = ( R2I(字符A[玩家序号]) + R2I(字符B[玩家序号]) )
set 字符D = 字符E[玩家序号]
set 字符F = 字符G[玩家序号]
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 24
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set 字符H[GetForLoopIndexA()] = SubStringBJ(字符I[玩家序号], GetForLoopIndexA(), GetForLoopIndexA())
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 24
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 26
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
if ( Trig_Run_Save_Func013Func001Func001001() ) then
set 字符H[GetForLoopIndexA()] = SubStringBJ(字符J, GetForLoopIndexB(), GetForLoopIndexB())
else
call DoNothing( )
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 24
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 43
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
if ( Trig_Run_Save_Func015Func001Func001001() ) then
set 字符K = GetForLoopIndexA()
else
call DoNothing( )
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set 字符L = ""
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 字符K
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set 字符L = ( 字符L + 字符H[GetForLoopIndexA()] )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set 字符M = GetRandomInt(1, ayux)
set 字符N = 字符O[字符M]
set 字符P = 字符Q[GetConvertedPlayerId(GetTriggerPlayer())]
set 字符R = S2I(SubStringBJ(字符N, 1, 1))
call TriggerExecute( hh6c )
set 密码X[1] = mavx[( ( 字符P / 46656 ) + 1 )]
set 字符P = ModuloInteger(字符P, 46656)
set 字符R = S2I(SubStringBJ(字符N, 5, 5))
call TriggerExecute( hh6c )
set 密码X[2] = mavx[( ( 字符P / 1296 ) + 1 )]
set 字符P = ModuloInteger(字符P, 1296)
set 字符R = S2I(SubStringBJ(字符N, 10, 10))
call TriggerExecute( hh6c )
set 密码X[3] = mavx[( ( 字符P / 36 ) + 1 )]
set 字符P = ModuloInteger(字符P, 36)
set 字符R = S2I(SubStringBJ(字符N, 15, 15))
call TriggerExecute( hh6c )
set 密码X[4] = mavx[( 字符P + 1 )]
set 字符S = ( ( 10 * 字符G[GetConvertedPlayerId(GetTriggerPlayer())] ) + 字符E[GetConvertedPlayerId(GetTriggerPlayer())] )
set 字符R = S2I(SubStringBJ(字符N, 2, 2))
call TriggerExecute( hh6c )
set 密码X[5] = mavx[( ( 字符S / 36 ) + 1 )]
set 字符R = S2I(SubStringBJ(字符N, 6, 6))
call TriggerExecute( hh6c )
set 密码X[6] = mavx[( ModuloInteger(字符S, 36) + 1 )]
set 字符R = S2I(SubStringBJ(字符N, 11, 11))
call TriggerExecute( hh6c )
set 密码X[7] = mavx[字符K]
set 字符T = 0
set 字符R = 1
call TriggerExecute( mhlp )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 字符K
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 43
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
if ( Trig_Run_Save_Func056Func001003001() ) then
set 字符T = ( 字符T + GetForLoopIndexB() )
else
call DoNothing( )
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set 字符R = S2I(SubStringBJ(字符N, 3, 3))
call TriggerExecute( hh6c )
set 密码X[8] = mavx[( ( 字符T / 36 ) + 1 )]
set 字符R = S2I(SubStringBJ(字符N, 7, 7))
call TriggerExecute( hh6c )
set 密码X[9] = mavx[( ModuloInteger(字符T, 36) + 1 )]
set 字符T = 0
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 9
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set 字符R = S2I(SubStringBJ(字符N, ( GetForLoopIndexA() + 2 ), ( GetForLoopIndexA() + 2 )))
call TriggerExecute( hh6c )
set bj_forLoopBIndex = 1
set bj_forLoopBIndexEnd = 36
loop
exitwhen bj_forLoopBIndex > bj_forLoopBIndexEnd
if ( Trig_Run_Save_Func065Func003003001() ) then
set 字符T = ( 字符T + GetForLoopIndexB() )
else
call DoNothing( )
endif
set bj_forLoopBIndex = bj_forLoopBIndex + 1
endloop
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set 字符R = S2I(SubStringBJ(字符N, 4, 4))
call TriggerExecute( hh6c )
set 密码X[10] = mavx[( ( 字符T / 36 ) + 1 )]
set 字符R = S2I(SubStringBJ(字符N, 9, 9))
call TriggerExecute( hh6c )
set 密码X[11] = mavx[( ModuloInteger(字符T, 36) + 1 )]
set 密码X[12] = SubStringBJ(rzzv, 字符M, 字符M)
set pre_code最终密码 = ""
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set pre_code最终密码 = ( pre_code最终密码 + 密码X[GetForLoopIndexA()] )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 11
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Run_Save_Func077Func001001() ) then
set 字符U[GetForLoopIndexA()] = 10
else
if ( Trig_Run_Save_Func077Func001003001() ) then
set 字符U[GetForLoopIndexA()] = 11
else
set 字符U[GetForLoopIndexA()] = S2I(SubStringBJ(字符N, ( GetForLoopIndexA() + 20 ), ( GetForLoopIndexA() + 20 )))
endif
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set 字符U[12] = 12
set code最终密码 = ""
set pre_code最终密码 = ""
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set pre_code最终密码 = ( pre_code最终密码 + 密码X[字符U[GetForLoopIndexA()]] )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set code最终密码 = ( SubStringBJ(pre_code最终密码, 1, 6) + ( "-" + ( SubStringBJ(pre_code最终密码, 7, 9) + ( SubStringBJ(pre_code最终密码, 12, 12) + SubStringBJ(pre_code最终密码, 10, 11) ) ) ) )
call DisplayTimedTextToForce( GetForceOfPlayer(GetTriggerPlayer()), 300.00, ( "你的存档密码为: |cffffff00" + ( code最终密码 + "|r" ) ) )
set oynp[GetConvertedPlayerId(GetTriggerPlayer())] = code最终密码
endfunction |
|