Thank you hixxy, but it seems that script is still too fast. It posts only one message.

EDIT: i seem to have messed something up on first try, your solution works too hixxy, although its a bit too fast for what i need

Ive managed to work something around with timers though.
Code:
alias myb {
  set %tempchan $chan
  %bitka = $1
  set %kuda a
  if ($sock(myb)) { .sockclose myb }
  .sockopen myb www.erepublik.com 80
  var %wait = 0
  var %bleh = 0
  while (%bleh <= 4) {
    inc %wait 1
    .timer 1 %wait mab
    inc %bleh 1
  }
}

alias mab {
  if ($sock(myb)) { .sockclose myb }
  .sockopen myb www.erepublik.com 80
}



I would appreciate some help with making that alias repeat its job until i stop it. I would like some help with "stopping it" part.

If it cant be done, any insight on how to do it by for example .start and .stop commands if i install it on a bot.

Thanks

EDIT:

I found a "cheat". I set it to do a very high number of repetitions and just stop it by turning the timer off. While loop cant be stopped since it executes too fast but timer continues running.

Code:
alias endit {
  timer* off
}

Last edited by crreep; 17/03/11 12:54 AM.