Amon_PRC8/_module/nss/di_pz2init.nss
Jaysyn904 c5cffc37af Initial Commit
Initial Commit [v1.01]
2025-04-03 19:00:46 -04:00

21 lines
675 B
Plaintext

#include "di_include"
void main()
{
string sSeedString = GetLocalString(OBJECT_SELF, "seedstring");
string sSoundString = GetLocalString(OBJECT_SELF, "soundstring");
if(sSeedString == "")
{
sSeedString = di_ShuffleString("123456");
SetLocalString(OBJECT_SELF, "seedstring", sSeedString);
sSoundString = di_ShuffleString("1234567890ABCDEFG");
SetLocalString(OBJECT_SELF, "soundstring", sSoundString);
SetLocalString(OBJECT_SELF, "sDisabled", IntToString(d6()));
}
int x;
for(x=1; x<=6; x++)
{
DelayCommand(IntToFloat(x * 2), di_PlaySound(GetSubString(sSoundString, x - 1, 1)));
}
}