Script Help?

Need help with something? Anything? Post here.

Moderators: Tier 3 Mods, Tier 1 Mods, Tier 2 Mods

Forum rules
Need help with something? Anything? Post here.
User avatar
Lebo
Junior Member
Junior Member
Posts: 176
Joined: June 3rd, 2008, 4:04 pm
Location: England

Script Help?

Post by Lebo »

I want to know how to make a script that counts how many times it has been used.
Example: Lebo pokes $$1 with an extra long bagguette [I've poked <NumberCounter> People with this here snack!!]
Help appreciated.
Plus if its needed i use mIRC.
Thanks again, Lebo. :)
Image
[22:16:10] <&tsumutant> [NR] [Page] igotu110: its not very welcoming to hear people talk to you about cocks and w/e else
User avatar
Drkpwn3r
Member
Member
Posts: 343
Joined: January 28th, 2004, 3:06 pm
Location: Cincinnati, OH

Re: Script Help?

Post by Drkpwn3r »

Code: Select all

if ( %somenumber == $null ) {
  %somenumber = 0
}
else {
  inc %somenumber
}
Replace %somenumber with your desired variable name and you're set, also use the same variable at "[I've poked " $+ %somenumber $+ " people with this here snack!!]" (pretty sure that's right) if you wish to display the value in a message.
Just make sure no scripts you have running use the variable you're going to be using, otherwise it may not turn out too pretty for either your script or the other one. ;)
User avatar
Lebo
Junior Member
Junior Member
Posts: 176
Joined: June 3rd, 2008, 4:04 pm
Location: England

Re: Script Help?

Post by Lebo »

Thanks mate :D
Image
[22:16:10] <&tsumutant> [NR] [Page] igotu110: its not very welcoming to hear people talk to you about cocks and w/e else
Post Reply

Return to “TGN Help Desk”