mIRC Home    About    Download    Register    News    Help

Print Thread
#22371 04/05/03 10:53 PM
S
sidewinder
sidewinder
S
Hi guys!

I've been looking all over the web for a script that replies to a slap.

example:

lamer slaps SideWindeR around a bit with a large trout
SideWindeR defends the slap! I spit on your slap lamer, rich phy!

are there anyone who know how to make a script like that ? i'm totally lost when it comes to scripting frown

#22372 04/05/03 11:46 PM
P
PHMinistries
PHMinistries
P
on *:text:*slap*:#:/me defends the slap! I spit on your slap lamer, rich phy!
on *:action:*slap*:#:/me slaps $nick around a bit with a large trout

try something like those,
play around with it and customize it,

for more info try /help remote scripts
look into text and actions and notices,

lots of fun stuff smile

#22373 04/05/03 11:49 PM
Joined: Dec 2002
Posts: 416
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 416
This is only offered as a possibility of a code. Which you can
edit in any fashion to suit your own needs

Code:
  [color:red] 
on ^*:TEXT:*:#: {  if ((*slap* isin $1- ) || (trout isin $1- ) && ( $me isin $1- )) { msg # hey $nick Your vocabulary is to categorical for a person of my intellectual ability to comprehend! So if you mean to insinuate that I will tolerate your diabolical provications you are thoroughly mistaken! } }
 [/color]  

#22374 05/05/03 01:23 AM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
Code:
; -------------------------------------------------------------------------------------------------
; Anti-Action

on 1:ACTION:$(* $+ $me $+ *):#: {
  /set -u0 %keys slap smack trout shoot hit oozy gun
  /set -u0 %a 1
  while (%a <= $numtok(%keys, 32)) {
    if (($gettok(%keys, %a, 32) isin $1-) && ($me isop $chan)) {
      /describe $chan defends against $2 $+ 's attack.
      .timerkick2 1 3 /describe $chan gets out volume 1 (of 12) of "Windows Exploits For Dummies", and nails $nick with it.
      .timerkick3 1 5 /kick $chan $nick Baam!
      return
    }
    /inc -u0 %a
  }
}


Thats mine. Add triggers words to the %keys variable

#22375 08/05/03 06:25 PM
S
ShadowWlf
ShadowWlf
S
Or, could do like I have with

on *:ACTION:*slap*:#:describe # $read slaps.txt


where you have a txt file called slaps.txt with different responses in it and it will randomly choose one to respond with

ShadowWlf


Link Copied to Clipboard