20 lines
580 B
Plaintext
20 lines
580 B
Plaintext
|
#include "di_include"
|
||
|
void main()
|
||
|
{
|
||
|
string sOrder = di_ShuffleString("12345678");
|
||
|
string sOrder2 = "";
|
||
|
int i;
|
||
|
for(i=1; i<=8; i++)
|
||
|
{
|
||
|
string sChar = GetSubString(sOrder, i-1 , 1);
|
||
|
object oCrystal = GetObjectByTag("DI_C" + sChar);
|
||
|
DelayCommand(IntToFloat(i) ,ExecuteScript("di_cflash", oCrystal));
|
||
|
DelayCommand(IntToFloat(i), PlaySound("gui_magbag_full"));
|
||
|
sOrder2 = sChar + sOrder2;
|
||
|
}
|
||
|
|
||
|
// and just for a bit of added fun, make them play it back in reverse order!
|
||
|
|
||
|
SetLocalString(GetArea(OBJECT_SELF), "combination", sOrder2);
|
||
|
}
|