Garbagebag

By RevJohn Straub on May 11, 2009

this script i have been working on for about a week its sorta a giveaway script i ran it on my mirc and it worked so i thought i would post it see what you all thought could also be used as a santa's bag

on *:text:!Garbagebag:#:{
set %GB $rand(1,3)
if (%GB == 1) { describe # pulls a Small gift out of his Garbagebag and Tosses it at $nick }
if (%GB == 2) { describe # pulls a few packages out of his Garbagebag it hit's $nick in the chest }
if (%GB == 3) { describe # pulls out a huge Gift and tosses it to $nick }
unset %gb
}

Comments

Sign in to comment.
Prelude   -  May 16, 2009

...They all do...

 Respond  
Jonesy44   -  May 16, 2009

lmao Nem, i want you ;)

 Respond  
Prelude   -  May 16, 2009

Oh lol i didnt expect a reply, tisk tisk AJ.

[6:37:PM:Fri] * Nemesis changes topic to '[17:40] <@Jonesy44> suck my dick <-- fag'

Getting your lil wee wee touched by men seems to be a recurring theme recently with you AJ. I may have to roll over and wake up your mum and have a lil chat ^_^.

LOL nah its all in good fun boys, if you take any offense to what ''I'' say, you're slow, I just know most of you so I razz a bit. But yeah picken ''CODES'' apart when ppl are ''new'' to any coding language or putting them down Is a bit lame, unless your a fucckin prodigy and was born with the know;edge, the 99% of us have to LEARN what we are doing. So that's why instead of ripping newer coders a new one or say, ''you're doing it wrong'' is crap, you went through the same thing, so help these ppl out, It'll feel good to pass some knowledge on and know they don't have to go through the shiit you did, amirite?. So as Cheiron said, the good scriptors should be the only ones RESALLY listened to. lol there are exceptions of course, ppl like weasel for example;p. Im here for moral support, those who DO know who I'am know I'll help if need be, but most you got this under control. So im here for moral support.

As for the code:
i agree with ''mkbln7'' AND Napa about the .txt use, the simple $read at random from a file is better then making thes separate lines of code, add some flood protection (which you should do here as well) simple doesn't have to be to complicated


on *:TEXT:*!Trigger:#: {  
if (%gvar) { halt } 
set -u5 %gvar on
.msg $chan $read($shortfn($mircdir) $+ gb.txt)
}
)

or throw in Napa's flood pro:

 if (!$($(%,bagflood,.,$nick),2) { set -u3 $+(%,bagflood,.,$nick) on 

Up to you. Then you dont have to worry about fools spaming ya, after that if you feel froggy you can add text event triggers so the ppl in your channel can ADD more responses. Or just you or who you trust not to be a douche. Lots of things you can expand on here really. But some simple stuff.

P.s: ...I won't really wake her up AJ.

 Respond  
Jonesy44   -  May 16, 2009

RevJohn Straub, we coo'? I'm up for a good ol' e-hug >..

 Respond  
Kirby   -  May 15, 2009

Stop giving me notices!!!
OMG!?!? ;o

 Respond  
napa182   -  May 15, 2009

yawns...

he said that as a joke cuz of what jonesy said to Dan so get over it...

 Respond  
MaxEvans   -  May 15, 2009

I agree fully with you, Cheiron. To me bashing is very immature and stupid. I respect all the ones who know more than me, and I learn from their advice. =]

 Respond  
Cheiron   -  May 15, 2009

jonesy is one of the more respected scripters here on hawkee alongside napa, nathan and a few others.. if slips of the tongue can be ignored that is.... for we all have our moments of bashing other people. their coding is to be learned from and they can help you alot.

 Respond  
MaxEvans   -  May 15, 2009

Umm, Rev, jonesy's scripts are really good. So don't go bashing him.

 Respond  
Jonesy44   -  May 15, 2009

lol, have you even looked at any of my scripts?

 Respond  
RevJohn Straub   -  May 15, 2009

jonesy44 my 5 year old makes better scripts then you and Weasel together

 Respond  
Jonesy44   -  May 15, 2009

Prelude, on yer knees, get suckin

 Respond  
Prelude   -  May 14, 2009

Really Kirbeh_fails?, you're gunna mock someone for having a life?, other then learning a useless coding language?, lol you have balls. Ima be lite today, so as for the rest of you that think this code sucks LOL guess what?!?!, this is where you ALL started (myself included;p), just cause you're no longer a ''noob'' doesn't mean you should think you're bad ass. Think of how much time you waste?, honestly grow up, it's supposed to be FUN, most of you take it too serious. >D.

@Weasel: ''it's knock knock time Rico!'', moron you can't even post snippets correctly you fú©k, go play and stop trolling and tryin to make friends on the internet.

For those that try to help, well done.

P.s: AJ stfu;p

 Respond  
Kirbeh_Pr0nz   -  May 14, 2009

/me claps.
Im a Highschool student taking care of my parents and nephew.
Anyone else having a Dr. Phil moment?

 Respond  
RevJohn Straub   -  May 14, 2009

i have a 5 year old son to raise not to include my resturant that i own and run and then there is a catering business that i also run

 Respond  
WorldDMT   -  May 14, 2009

no point in useing a txt file for 3 lines

yes i say that because i saw the comment of Cheiron i saw 12 lines

and i give an exemple if he want add more words

 Respond  
Jonesy44   -  May 14, 2009

lol,fe.

 Respond  
napa182   -  May 14, 2009

jonesy44, RevJohn Straub is new to scripting..

 Respond  
Jonesy44   -  May 14, 2009

"working on for about a week" are you kidding me?

 Respond  
napa182   -  May 14, 2009

no point in useing a txt file for 3 lines. just go with the tokens for this. unless you are going to add a ton more lines then yeah a txt would work better.

also add some flood pros to it maybe sothing like this as an example:

on $*:text:/^@bag$/iS:#:{
  if (!$($+(%,bagflood,.,$nick),2)) {
    set -u3 $+(%,bagflood,.,$nick) on
    describe # pulls $gettok(a Small gift.a few packages.a huge Gift,$r(1,3),46) out of his Bag and Tosses it at $nick
  }
}
 Respond  
WorldDMT   -  May 14, 2009

that a was say before

but i also say the $read identifier is better for this case

 Respond  
mkbln7   -  May 14, 2009

You can actually make the script part of this shorter if you use a .txt file.
For instance, say you used the filename gb.txt

on *:text:!Garbagebag:#: {
msg $chan $read($shortfn($mircdir) $+ gb.txt)
}

But that would only be really good if you were going to add more than 3 lines to it.

 Respond  
RevJohn Straub   -  May 13, 2009

no weasel you can if he wanted a snipit im sure he would have made it himself

 Respond  
Weasel   -  May 13, 2009

Max, WTC??
i think penguins of madagascar thing is creative, can i have a direct link to post a snippet?

 Respond  
Kirby   -  May 13, 2009

i used an alias just for make the code more readable u can make the goto into the event

i used goto to get easer street without too much calculate conditions to find the true

but i also say the $read identifier is better for this case
To be honest, you would only use $read for reading typically larger amounts of information. Otherwise, I think tokens would be better than making a separate alias for it. It's just what I think.
Also, instead of $strip($1) that you used, you could just change the text event a bit:

on $*:text:/^[.!@]garbagebag/Si:#: {

All the characters [.!@] is unnecessary, but I put it there as an extra precaution; not everybody likes to use the same trigger.

 Respond  
MaxEvans   -  May 13, 2009

Yw =]

 Respond  
RevJohn Straub   -  May 13, 2009

ty Max

 Respond  
MaxEvans   -  May 13, 2009

Only difference is, this has a bit more creativity.

 Respond  
PATX   -  May 13, 2009

Weasel: this is the same thing u make...

 Respond  
WorldDMT   -  May 13, 2009

Why would you make a separate alias just for that? Thus, it's using an unnecessary goto loop...

i used an alias just for make the code more readable u can make the goto into the event

i used goto to get easer street without too much calculate conditions to find the true

but i also say the $read identifier is better for this case

 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.