on *:TEXT:brcalc*:#: {
write -c brcalc.txt
write brcalc.txt msg $1 4-- Bombing Run4 $$1 with4 $$2 $+ $$3 jets. 4RAW (100% weapons) $4-
write brcalc.txt msg $1 4--7 $round($calc($$2 / 1.1),2) $+ $$3 @ 110% --10 $round($calc($$2 / 1.15),2) $+ $$3 @ 115% --7 $round($calc($$2 / 1.2),2) $+ $$3 @ 120% --10 $round($calc($$2 / 1.25),2) $+ $$3 @ 125% --7 $round($calc($$2 / 1.3),2) $+ $$3 @ 130%
write brcalc.txt msg $1 4--7 $round($calc($$2 / 1.35),2) $+ $$3 @ 135% --10 $round($calc($$2 / 1.4),2) $+ $$3 @ 140% --7 $round($calc($$2 / 1.45),2) $+ $$3 @ 145% --10 $round($calc($$2 / 1.5),2) $+ $$3 @ 150% --7 $round($calc($$2 / 1.55),2) $+ $$3 @ 155%
write brcalc.txt msg $1 4--7 $round($calc($$2 / 1.6),2) $+ $$3 @ 160% --10 $round($calc($$2 / 1.65),2) $+ $$3 @ 165% --7 $round($calc($$2 / 1.7),2) $+ $$3 @ 170%
write brcalc.txt msg $1 4-- Only send 33% of your jets MAX! Report what breaks!
write brcalc.txt msg $1 4-- Do not attack with less than 88% readiness. Readiness targets in topic.
.play $1 brcalc.txt
}
[code]
brcalc #channelname number(amount) KorM andwhatever$4-mightbe
if you want to be able to input the request yourself you might want to do it this way:
[code]
on *:TEXT:brcalc*:#: { brcalc $$1- }
alias brcalc {
write -c brcalc.txt
write brcalc.txt msg $1 4-- Bombing Run4 $$1 with4 $$2 $+ $$3 jets. 4RAW (100% weapons) $4-
write brcalc.txt msg $1 4--7 $round($calc($$2 / 1.1),2) $+ $$3 @ 110% --10 $round($calc($$2 / 1.15),2) $+ $$3 @ 115% --7 $round($calc($$2 / 1.2),2) $+ $$3 @ 120% --10 $round($calc($$2 / 1.25),2) $+ $$3 @ 125% --7 $round($calc($$2 / 1.3),2) $+ $$3 @ 130%
write brcalc.txt msg $1 4--7 $round($calc($$2 / 1.35),2) $+ $$3 @ 135% --10 $round($calc($$2 / 1.4),2) $+ $$3 @ 140% --7 $round($calc($$2 / 1.45),2) $+ $$3 @ 145% --10 $round($calc($$2 / 1.5),2) $+ $$3 @ 150% --7 $round($calc($$2 / 1.55),2) $+ $$3 @ 155%
write brcalc.txt msg $1 4--7 $round($calc($$2 / 1.6),2) $+ $$3 @ 160% --10 $round($calc($$2 / 1.65),2) $+ $$3 @ 165% --7 $round($calc($$2 / 1.7),2) $+ $$3 @ 170%
write brcalc.txt msg $1 4-- Only send 33% of your jets MAX! Report what breaks!
write brcalc.txt msg $1 4-- Do not attack with less than 88% readiness. Readiness targets in topic.
.play $1 brcalc.txt
}