Sorry for the delay, here's the correct code:
- script maintown -1,{
OnInit:
bindatcmd "maintown",strnpcinfo(3)+"::OnAtcommand";
end;
OnAtcommand:
if(gettimetick(2) < cooldowntime) {
dispbottom "Please wait "+(cooldowntime - gettimetick(2))+" seconds.";
end;
}
atcommand "@warp prontera 158 144";
set cooldowntime, gettimetick(2) + 5;
end;
}