Human Alchemy (RS Themed Script)

By Jelly on Apr 09, 2009

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.

Image

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
}

Comments

Sign in to comment.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.