This is a script used for a bot.
An example of how to use it and what it does:
[11:04:12AM] [Kelpie] Attack gino
[11:04:14AM] TreeServ slaps gino with his e-Peen0r which is 29.903294 inches (75.954367 cm) erect! Largest erection ever was 33.977706 inches (86.303373 cm)!
Attack is the command used.
This is an altered version of the script.
Enjoy.
On *:TEXT:Attack *:#: {
if ($2 ison $chan) {
var %up = $uptime(system,3)
var %in = $sqrt($calc(0.0005 * %up))
var %cm = %in * 2.540
if ((%ePenis.record !isnum) || (%ePenis.record < %up)) {
set %ePenis.record %up
}
var %r.in = $sqrt($calc(0.0005 * %ePenis.record))
var %r.cm = %r.in * 2.540
%in = $round(%in,50)
%cm = $round(%cm,50)
%r.in = $round(%r.in,50)
%r.cm = $round(%r.cm,50)
describe $chan slaps $2 with his e-Peen0r which is %in inches ( $+ %cm cm) erect! $& Largest erection ever was %r.in inches ( $+ %r.cm cm)!
}
on *:exit:{
if ((%ePenis.record !isnum) || (%ePenis.record < $uptime(system,3))) {
set %ePenis.record $uptime(system,3)
}
It seems to have some issues with the inches numbers though, and I don't know why.
In your example the current inches of 29.903294 and the largest erection of 33.977706 is different.
For me, the current one is always the same as the largest one, everytime.
And it grows each time I attack someone, updating both the current and the largest to the exact same number growth each time.
Example:
[02:03] * CookieBOT slaps Kaitou[Kid] with his e-Peen0r which is 4.474763 inches (11.365898 cm) erect! Largest erection ever was 4.474763 inches (11.365898 cm)!
[02:03] * CookieBOT slaps kyuubisubs with his e-Peen0r which is 4.475992 inches (11.36902 cm) erect! Largest erection ever was 4.475992 inches (11.36902 cm)!
[02:06] * CookieBOT slaps Kaitou[Kid] with his e-Peen0r which is 4.486145 inches (11.394808 cm) erect! Largest erection ever was 4.486145 inches (11.394808 cm)!
[02:06] * CookieBOT slaps AriGold|Away with his e-Peen0r which is 4.486591 inches (11.395941 cm) erect! Largest erection ever was 4.486591 inches (11.395941 cm)!
[02:29] * CookieBOT slaps AriGold|Away with his e-Peen0r which is 4.560373 inches (11.583347 cm) erect! Largest erection ever was 4.560373 inches (11.583347 cm)!
Anyone know how to correct this or maybe this is how it's supposed to be?
I'm not a scripting pro or anything, so I might be missing something lol :P
Something like this maybe
on *:text:!epenis *:#: {
if ($2 ison $chan) {
var %up = $uptime(system,3)
var %in = $sqrt($calc(0.0005 * %up))
var %cm = %in * 2.540
if ((%ePenis.record !isnum) || (%ePenis.record < %up)) {
set %ePenis.record %up
}
var %r.in = $sqrt($calc(0.0005 * %ePenis.record))
var %r.cm = %r.in * 2.540
%in = $round(%in,50)
%cm = $round(%cm,50)
%r.in = $round(%r.in,50)
%r.cm = $round(%r.cm,50)
describe $chan slaps $2 with his e-Peen0r which is %in inches ( $+ %cm cm) erect! $& Largest erection ever was %r.in inches ( $+ %r.cm cm)!
}
else {
msg $chan You can't attack someone who isn't here.
}
}
on *:exit:{
if ((%ePenis.record !isnum) || (%ePenis.record < $uptime(system,3))) {
set %ePenis.record $uptime(system,3)
}
}