Top

Punch Script


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  0.0 (of 0 scores)
Date Added  Nov 04, 2009
Last Updated  Nov 04, 2009
Tags  action  mirc  punch 

Introduction

My first Script.

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

Enjoy!

Grab the Code

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

Comments

  (12)  RSS
TriNetLabs
Comments: 8
 
mIRC Snippet:  Punch Script
Posted on Nov 5, 2009 12:55 am
................



...What.


Jethro_
Comments: 436
 
mIRC Snippet:  Punch Script
Posted on Nov 5, 2009 2:50 am
Here is an improved alternative to your existing code:
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.
Ghost-writer
Comments: 255
 
mIRC Snippet:  Punch Script
Posted on Nov 5, 2009 6:14 am
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 :)
SnoooP
Comments: 340
 
mIRC Snippet:  Punch Script
Posted on Nov 5, 2009 7:10 am
Code:

msg $chan $me winds up

wouldnt that be better using describe and not msg.
Code:

MSG: <Bertrum> Bertrum winds up

or
Code:

Describe: * Bertrum winds up


If you want to change it just use:
Code:

.describe $chan winds up
Jethro_
Comments: 436
 
mIRC Snippet:  Punch Script
Posted on Nov 5, 2009 11:34 am
Ghost-writer, why would you need to use ini for this sort of script?
Ghost-writer
Comments: 255
 
mIRC Snippet:  Punch Script
Posted on Nov 5, 2009 4:35 pm
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.)
SketchDrawer
Comments: 5
 
mIRC Snippet:  Punch Script
Posted on Nov 5, 2009 8:42 pm
@Jethro: Thanks. Yeah I know it is amateurish guys but it was my first post on hawkee :P.
Jethro_
Comments: 436
 
mIRC Snippet:  Punch Script
Posted on Nov 5, 2009 11:43 pm
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.
3nigmat1c
Comments: 15
 
mIRC Snippet:  Punch Script
Posted on Nov 17, 2009 12:50 pm
@Jethro_ your dictionary sucks.. Get a new one...

Cool script
Jethro_
Comments: 436
 
mIRC Snippet:  Punch Script
Posted on Nov 17, 2009 1:10 pm
@3nigmat1c, did you wake up on the wrong side of bed this morning? What have I done to you?
3nigmat1c
Comments: 15
 
mIRC Snippet:  Punch Script
Posted on Nov 18, 2009 3:45 am
I was kidding :p
SnoooP
Comments: 340
 
mIRC Snippet:  Punch Script
Posted on Nov 18, 2009 8:15 am
Code:

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

LOL

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom