Top

Runescape !grats script

Please Register to submit score.
Average Score  0.0
Scores Submitted  0
Date Added  Mar 20, 2008
Last Updated  Mar 20, 2008
Tags  congratulations  criminal  grats  gratz  runescape  script 

Introduction

Another easy, but useful script I made.. Called !gratz/!grats
If you read the title I think that would explain everything...
This is a script for RuneScape, if a player types ?gratz or ?grats
and $2 is between/or 1-99 and $3 is a runescape skill,
your bot will grats him/her.

The triggers are ?

How to get:
copy the code & paste in remote ( Alt + R )

If you don't like it, and you want to flame me, Please don't..
I'm pretty new in this stuff and still learning every second.
I hardly know mIRC and NNscript for 1.5 months..
Thanks :)

If you think this code got leached, No.
I created it with my own fingers ;)

UPDATE:
Some of the skills didn't work, So I had to remake it all over.
it works fine now.


Grab the Code

Comments

  (10)  RSS
napa182
Comments: 640
 
Posted on Mar 20, 2008 12:55 pm
wow thats a real mess of if statements.. =/
look into /help $istok
this

Code:
if ($3 == attack) || if ($3 == att) || if ($3 == strength) || if ($3 == str) {


can be done like this

Code:
if ($istok(attack att strength str,$3,32)) {


and for the

Code:
if ($3- == $null) {


you can use

Code:
if (!$3-) {


and for the

Code:
if ($2 >= 100) || if ($2 <= 0) {


can be done like this

Code:
if ($2 !isnum 1-99) {
napa182
Comments: 640
 
Posted on Mar 20, 2008 1:21 pm
you can do it like this so you dont need both those parts
Code:
on $*:TEXT:/^[.!@](grats|gratz)/Si:#:{
  var %rss attack,att,strength,str,defence,def,range,prayer,pray,magic,mage,runecrafting,rc,construction,cs,hitpoints,hp,thieving,thief,fletching,fletch,slayer,slay,hunter,hunt,mining,smithing,smith,fishing,fish,cooking,cook,firemaking,fm,woodcutting,wc,farming,farm,summoning,sum,summon
  if (!$3-) { .notice $nick 04• 1G14ratz4 [1H14alted4][1 P14lease follow the syntax. 4] | .timer 1 2 .notice $nick  04• 1G14ratz 4[1S14yntax4][7 !Gratz <Level> <RuneScapeSkill>4 ]  }
  if ($2 !isnum 1-99) { .notice $nick  04• 1G14ratz 4[1H14alted4][1 T14he level must be between 1-99 4] | halt }
  if ($istok(%rss,$3,44)) {  .describe $chan  04• 1g14ratz 4[3OMG!4][7 Congratulations 14on4 $2 4 $3 6 $nick ! 4] }
  elseif ($istok(agility agil herblore herb,$3,32)) || (!$istok(%rss,$3,44)) { .notice $nick  04• 1g14ratz 4[1H14ALTED4][3 $3 14Isn't a runescape skill! 4] }
}

just one of many ways
mountaindew
Comments: 1303
 
Posted on Mar 20, 2008 1:59 pm
Quote:

you can do it like this so you dont need both those parts
Code:

on $*:TEXT:/^[.!@](grats|gratz)/Si:#:{
  var %rss attack,att,strength,str,defence,def,range,prayer,pray,magic,mage,runecrafting,rc,construction,cs,hitpoints,hp,thieving,thief,fletching,fletch,slayer,slay,hunter,hunt,mining,smithing,smith,fishing,fish,cooking,cook,firemaking,fm,woodcutting,wc,farming,farm,summoning,sum,summon
  if (!$3-) { .notice $nick 04• 1G14ratz4 [1H14alted4][1 P14lease follow the syntax. 4] | .timer 1 2 .notice $nick  04• 1G14ratz 4[1S14yntax4][7 !Gratz <Level> <RuneScapeSkill>4 ]  }
  if ($2 !isnum 1-99) { .notice $nick  04• 1G14ratz 4[1H14alted4][1 T14he level must be between 1-99 4] | halt }
  if ($istok(%rss,$3,44)) {  .describe $chan  04• 1g14ratz 4[3OMG!4][7 Congratulations 14on4 $2 4 $3 6 $nick ! 4] }
  elseif ($istok(agility agil herblore herb,$3,32)) || (!$istok(%rss,$3,44)) { .notice $nick  04• 1g14ratz 4[1H14ALTED4][3 $3 14Isn't a runescape skill! 4] }
}

just one of many ways

or
Code:

on $*:TEXT:/^[.!@]grat[sz]/Si:#:{
napa182
Comments: 640
 
Posted on Mar 20, 2008 2:44 pm
ture
criminal
Comments: 80
 
Posted on Mar 20, 2008 3:31 pm
Thanks guys :)
that's what I mean.. getting helped and people giving advice ... :D instead of flaming =)
thanks for that on $*:TEXT:/^[.!@]grat[sz]/Si:#: {
i didnt know how to set more than one : but now i do :)
oh and napa, i readed the $istok =) thanks =D

but I got a question :
how do you guys post comments with ' code ' or ' quote ' ?
mountaindew
Comments: 1303
 
Posted on Mar 20, 2008 3:49 pm
Code:

[code]
;mirc code
[/code]

[quote]
what the nick wrote
[/quote]

EL
Comments: 556
 
Posted on Mar 20, 2008 4:08 pm
or just google BBCodes.http://bbcodextra.extenzilla.org/index.php?lang=eng&sez=2
criminal
Comments: 80
 
Posted on Mar 21, 2008 6:34 am
Thx guys, still waiting too change it, maybe there are more people with good advice =)
mountaindew
Comments: 1303
 
Posted on Mar 21, 2008 8:28 am
This could be simplified a LOT, with all those if ($3 == farming) etc...

You could do something like
Code:

if ($regex($3,/(agil(ity)?|herb(lore)?|thei[vf](ing)?|fletch(ing)?|slay(er)?|hunt(er)?|mining|smith(ing)?|fish(ing)?|cook(ing)?|firemaking|fm|wc|woodcutting|farm(ing)?|sum(mon)(ing)?)/i)) {
  .describe $chan  04• 1g14rats 4[3OMG!4][7 Congratulations 14on4 $2 4 $3 6 $nick ! 4]
}

or if you don't know regex, you could always use $istok

and rather than making two on texts, you could do
Code:

on $*:text:/?grat[sz]/Si:#:{

or
Code:

on *:text:grat*:#:{
  if ($istok(grats gratz,$1,32)) {
criminal
Comments: 80
 
Posted on Mar 22, 2008 12:46 pm
Thanks :) ill remind that

Please Register or Login to start posting comments.
Bottom