Hello, I haven't been around in a while
I have been scripting, almost everything for my script should work as I see, but it does not. The bug appears to be in this stretch of code:
code:
function ExtendPSM(psm)
{
spsm = psm;
if(psm.Length >= 129)
{
Messenger.MyPersonalMessage = psm.Substring(0,129);
MsgPlus.AddTimer('first',100);
}
else
{
Messenger.MyPersonalMessage = psm;
}
}
function OnEvent_Timer(TimerId)
{
if(TimerId=='first')
{
FurtherPSM(129);
MsgPlus.AddTimer('second',100);
}
if(TimerId=='second')
{
FurtherPSM(258);
MsgPlus.AddTimer('third',100);
}
if(TimerId=='third')
{
FurtherPSM(387);
MsgPlus.AddTimer('fourth',100);
}
if(TimerId=='fourth')
{
FurtherPSM(515);
}
}
function FurtherPSM(charFrom)
{
Messenger.MyPersonalMessage = spsm.Substring(charFrom,charFrom+129);
}
Does anybody see a bug there?
This is for the contest, so a prompt reply would be appreciated.