Top

Pie Script


mIRC Code
+ 0 likes
Please Register to submit score.
Average Score  2.0
Scores Submitted  1
Date Added  May 21, 2007
Last Updated  Dec 09, 2007
Tags  pie 
  Bookmark and Share

Introduction

Usage: let people to type !pie <nickname> to throw a pie at someone.
To throw it at someone you can type !pie <nickname>.

Enabling/Disabling: If someone keeps abusing this script you can Right click on the channel menu and click Disable/Enable Pie to turn it on/off.

Note: you dont have to turn off all of your remotes when enabling/disabling the script!!!

If you need any help with the script just PM me or email me at Clueless222@gmail.com

Where to put it: Put this Snippet in your Remotes and save as .mrc

There is also a pretty good Description in the code[well i think its a good description] as well.

Grab the Code

Comments

  (3)  RSS
cantseeme
Comments: 48
 
mIRC Snippet:  Pie Script
Posted on May 21, 2007 5:45 pm
Firstly, there are a couple things I would change:
1) instead of all these line cosuming if statements(will also make script REALLY short and compact) make one a text file and put these in there)
Code:

on *:text:!pie*:#pie: {
   if ($2 == $me) { describe $chan $read(c:\\users\\mark\\pie.txt) at $nick OPPZ. }
else if ($2 == $null) {
describe $chan $read(c:\\users\\mark\\pie.txt) and laughs.
}
else {
describe $chan $read(c:\\users\\mark\\pie.txt) at $2 and laughs.
}



Oh and p.s. I DONT UNDERSTAND WHY YOU HAVE THE SAME CODE LIKE THREE TIMES??
Don\'t forget to change the channel name to yours and the correct file path.
The goal in coding is to have the shortest,quickest, most efficent code possible.
Clueless
Comments: 11
 
mIRC Snippet:  Pie Script
Posted on Jun 6, 2007 3:36 am
The first and second part of the code is for other people to use.
The third part is for you to use. To use it YOU type !pie <someone\'s nickname> and you throw a pie at them.

And also im not that good of a scriptor and im still learning how to use more complex commands. So when i get better they will start looking more clean. :P
mountaindew
Comments: 1,547
 
mIRC Snippet:  Pie Script
Posted on Dec 10, 2007 8:31 pm
Code:

  if ($2 != $null) {
    /set %throw.pie $rand(1,8)
    if ((%throw.pie == 1)) /describe $chan throws a blueberry pie at $2- and laughs saying it was from $nick $+ .
    if ((%throw.pie == 2)) /describe $chan throws a cherry pie at $2- and laughs saying it was from $nick $+ .
    if ((%throw.pie == 3)) /describe $chan throws a normal pie at $2- and laughs saying it was from $nick $+ .
    if ((%throw.pie == 4)) /describe $chan throws an apple pie at $2- and laughs saying it was from $nick $+ .
    if ((%throw.pie == 5)) /describe $chan throws a pumpkin pie at $2- and laughs saying it was from $nick $+ .
    if ((%throw.pie == 6)) /describe $chan throws a sweet potato pie at $2- and laughs saying it was from $nick $+ .
    if ((%throw.pie == 7)) /describe $chan throws an apple cinnamon pie at $2- and laughs saying it was from $nick $+ .
    if ((%throw.pie == 8)) /describe $chan throws a chicken pot pie at $2- and laughs saying it was from $nick $+ .
  }

like cantseeme said, it can be simplified a lot

i would do
Code:

  if (!$2) describe $chan throws a $gettok(blueberry|cherry|normal|apple|pumpkin|sweet potato|apple cinnamon|chicken pot,$r(1,8),124) pie at $nick and laughs $+ .

Please Register or Login to start posting comments.
Bottom