Top

Energy Sword

Please Register to submit score.
Average Score  1.0
Scores Submitted  1
Date Added  Mar 26, 2008
Last Updated  Mar 26, 2008
Tags  energy  esword  halo  sword 

Introduction

If you can't tell from the topic, it's a little script I made while I was bored that references the Energy Swords the Elites use in the Halo series.

Pretty easy to operate, just type `esword or !esword <target nick> to activate it. Also put in a couple lines of code to limit the people you can attack to those that are in the channel.

One thing though before you get going with it, replace the <yourname> on line 3 with your usual operating nick, otherwise you will be vulnerable. Have fun with it, just don't use it on ops unless you want to get into trouble.

Grab the Code

Comments

  (4)  RSS
Andrew-|
Comments: 5
 
Posted on Mar 27, 2008 7:42 am
If the local variable %sword is assigned the value 9000, what will be the outcome? :?

Because there are two possible outcomes, why don't you use $r(1,2) and if (%sword == 1) { ... } else { ... }?
Zaiba91
Comments: 3
 
Posted on Mar 27, 2008 3:43 pm
well, thats one way of going about it .-.
ShAmPi
Comments: 7
 
Posted on Mar 31, 2008 8:25 pm
Well he uses var %sword $rand(1,9999999) because he want's to show some random damage :)

And if it's lower than 9000 it doesn't kill him :)
So if you use another var for damage only and 1,2 for the output, it wouldn't fit right.

But indeed he should have done if (%sword =< 9000)


Nontheless I would do it different as well :)
jonesy44
Comments: 347
 
Posted on Mar 31, 2008 8:38 pm
on $*:text:/^[`!](esword)/Si:#: {
if ($2 == $me) || ($2 == <YourName>) {
msg $chan I will not kill myself/him!
halt
}
if ($2 !ison $chan) {
msg $chan Can't seem to find them, $nick $+ .
halt
}
else {
var %sword = $rand(1,9999999)
.timer 1 3 describe $chan rushes at $2 with an Energy Sword drawn!
.timer 1 5 describe $chan connects with $2 $+ , causing %sword damage!
if (%sword > 9000) {
if (!%pwned) {
set %pwned 0
}
inc %pwned
.timer 1 8 describe $chan watches $2 die drowning in his own blood. ( $+ %pwned people pwned.)
}
if (%sword <= 9000) {
if (!%unpwned) {
set %unpwned 0
}
inc %unpwned
.timer 1 8 describe $chan watches $2 get up, barely alive! ( $+ %unpwned unpwned people.)
}
}
}

Please Register or Login to start posting comments.
Bottom