This script will trigger on anyones use of the trigger !alch (not !alch* because this is a common runescape bot command to check alchemy returns) and it will select a random person from the channel and 'cast high level alchemy' on them, gaining between 1 and 10,000 "GP". At the end of the script it will output how much its gained, how many people it has 'alched' and the average income from 'alching' people.
Kind of a useless, fun script. Alias form included too.
on *:text:!alch:#:{
set %gp $rand(1,10000)
inc %totalgained %gp
inc %alch
describe $chan casts high level alchemy on $nick($chan,$r(1,$nick($chan,0))) and gains %gp GP. (Total GP Gained: %totalgained $+ ) (People Alched: %alch $+ ) (Average: $calc((%totalgained)/%alch) $+ )
unset %gp
}
alias humanalch {
set %gp $rand(1,10000)
inc %totalgained %gp
inc %alch
describe $chan casts high level alchemy on $nick($chan,$r(1,$nick($chan,0))) and gains %gp GP. (Total GP Gained: %totalgained $+ ) (People Alched: %alch $+ ) (Average: $calc((%totalgained)/%alch) $+ )
unset %gp
}