Punch Script

By SketchDrawer on Nov 04, 2009

My first Script.

So, this is a very easy and simple script I made,
you just !punch NickYouWantToPunch and it punches them.

Enjoy!

on *:text:!punch *:#:{
  if ($2 ison $chan) {
    msg $chan $me winds up
    describe $chan has punched $2 for $nick !
  }
}

Comments

Sign in to comment.
SnoooP   -  Nov 18, 2009
@Jethro_ your dictionary sucks.. Get a new one...

LOL

 Respond  
3nigmat1c   -  Nov 18, 2009

I was kidding :p

 Respond  
Jethro   -  Nov 17, 2009

@3nigmat1c, did you wake up on the wrong side of bed this morning? What have I done to you?

 Respond  
3nigmat1c   -  Nov 17, 2009

@Jethro_ your dictionary sucks.. Get a new one...

Cool script

 Respond  
Jethro   -  Nov 05, 2009

The word "amateurish" is not in my dictionary. We should know what's like to be new and to have been there at one point. It's part of the learning process that we must go through in order to get better at scripting. Keep up the good work and you'll be outdoing yourself over the long haul.

 Respond  
SketchDrawer   -  Nov 05, 2009

@Jethro: Thanks. Yeah I know it is amateurish guys but it was my first post on hawkee :P.

 Respond  
Ghost-writer   -  Nov 05, 2009

jethro im saying in generel :| & $readini can be used for floodpro or some other things like $nick has punched $readini(punch.ini, punch, $nick) $iif($readini(punch.ini,punch,$nick) != 1,people.,person.)

 Respond  
Jethro   -  Nov 05, 2009

Ghost-writer, why would you need to use ini for this sort of script?

 Respond  
SnoooP   -  Nov 05, 2009
msg $chan $me winds up

wouldnt that be better using describe and not msg.

MSG: <Bertrum> Bertrum winds up

or

Describe: * Bertrum winds up

If you want to change it just use:

.describe $chan winds up
 Respond  
Ghost-writer   -  Nov 05, 2009

ehh.. this is pretty.. beginnerish.. but good job. keep working on it, learn a view variables maybe writeini and $readini a few $iif statements and your good to go :)

 Respond  
Jethro   -  Nov 05, 2009

Here is an improved alternative to your existing code:

alias -l punch {
  .msg $chan $me winds up
  .describe $chan has punched %2 for $nick $+ ! | unset %2
}
on *:TEXT:$(!punch*):#: {
  if (!%floodprotection) {
    set -z %floodprotection 3
    set %2 $2 | $iif(%2 ison #,$punch,.msg $v2 No such person as $v1 on $v2 $+ !)
  }
}

Flood protection is added to prevent command scrolling and abuse. A warning message is sent when a user you want to punch is not on the channel.

 Respond  
TriNetLabs   -  Nov 05, 2009

................

...What.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.