mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2014
Posts: 5
T
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Sep 2014
Posts: 5
Code:
	
on *:text:!CDoolars:#:{
  if ((%floodCDoolars) || ($($+(%,floodCDoolars.,$nick),2))) { return }
  set -u10 %floodCDoolars On
  set -u30 %floodCDoolars. $+ $nick On
  msg # $nick Magicly Gained $readini(C:\Users\Chain\Desktop\CDoolars.ini,$+(#,.,$nick),CDoolars)  Weird CDoolars.
}

on $*:text:/!CDoolars (add|remove)/Si:#:{
  if ($nick isop #) {
    if ($0 < 3) { msg # Insufficient parameters: Use !CDoolars <add|remove> <user> [number] | return }
    writeini -n C:\Users\Chain\Desktop\CDoolars.ini $+(#,.,$3) CDoolars $calc($readini(C:\Users\Chain\Desktop\CDoolars.ini,$+(#,.,$3),CDoolars) $iif($2 == add,+,-) $iif($4 isnum,$4,1))
    { msg $chan $3 Magicly Gained $readini(C:\Users\Chain\Desktop\CDoolars.ini,$+(#,.,$3),CDoolars) Weird CDoolars. }

  }
  else { msg $chan This command is only available to moderators. }
}
on !*:join:#chainofchane31:{
  $+(.timerpoints.,#,.,$nick) 0 300 add.pts $+(#,.,$nick)
  add.pts $+(#,.,$nick)
}
on !*:part:#chainofchane31:$+(.timerpoints.,#,.,$nick) off
alias -l add.pts {
  writeini -n C:\Users\Chain\Desktop\CDoolars.ini $1 CDoolars $calc($readini(C:\Users\Chain\Desktop\CDoolars.ini,$1,CDoolars) + 1)
}

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
What kind of while do you need for? and what is that you are trying to do and you need a while loop?


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Sep 2014
Posts: 5
T
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Sep 2014
Posts: 5
Using it to Spread points to everyone in Chat and Channel smile

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
What is your question, specifically? The information you have given us is very vague and to be honest I can't make any sense of what you're asking.

Joined: Sep 2014
Posts: 5
T
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Sep 2014
Posts: 5
Okay, My question is i want to use a !Cdoolars Add Everyone Command so everyone in the chat earns X Amount of Points/CDoolars like !CDoolars Add Everyone 100 and gives everyone 100 . Sorry if it sounds confusing..


Link Copied to Clipboard