Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:start: {
- if ($hget(score,$nick)) { hmake score }
- cs hmake mtime 50
- cs hmake rtime 50
- }
- on $*:TEXT:/^[.!@]login/Si:#chanspy: {
- if ($chan == #BNC) { halt }
- if (%loggedin [ $+ [ $nick ] ] == Yes) {
- notice $nick (10ERROR1): You are already logged in, to logout type !logout | halt
- }
- set %login $nick
- ns status $nick
- }
- on *:NOTICE:*:?: {
- if ($nick == NickServ) {
- if (%login) {
- if (*3* iswm $1-) {
- notice %login (10LOGIN1): You are now logged in with the address:10 $address(%login,2)
- set %loggedin $+ %login Yes
- unset %login
- }
- else {
- notice %login (10ERROR1): You are not identified, please do10 /ns identify password 1to login.
- unset %login
- }
- }
- }
- }
- on $*:TEXT:/^[.!@]logout/Si:#chanspy: {
- if ($chan == #BNC) { halt }
- if (%loggedin [ $+ [ $nick ] ] == No) {
- notice $nick (10ERROR1): You arent even logged in! To login do !login provided your identified with NickServ | halt
- }
- if (%loggedin [ $+ [ $nick ] ] == Yes) {
- notice $nick (10LOGOUT1): You have been logged out!
- }
- set %loggedin $+ $nick No
- }
- On $*:TEXT:/^[!@.](grab|take)/Si:#: {
- if (%loggedin [ $+ [ $nick ] ] == Yes) {
- if ($hget(score,$nick)) == $null) {
- if ($hget(wtime,$nick)) { .notice $nick $logo2(NOTICE) 14You must wait7 $duration($hget(wtime,$nick)) 14before using this command again.
- halt
- }
- var %X $rand(30,60)
- hinc -m ($hget(score,$nick)) Treats %X if
- .notice $nick $logo2(NOTICE) 14You got7 %X 14sweets from the jar, You now have7 $hget($+(Totals.,$nick),Treats) 14sweets!
- hadd -z wtime $nick $r(30,60)
- }
- }
- On $*:TEXT:/^[!@.](rob)/Si:#: {
- if (%loggedin [ $+ [ $nick ] ] == Yes) {
- if ($hget(score,$nick)) == $null) {
- if ($hget(rtime,$nick)) { .notice $nick $logo2(NOTICE) 14You must wait7 $duration($hget(wtime,$nick)) 14before using this command again.
- halt
- }
- var %X $rand(30,60)
- hinc -m ($hget(score,$nick)) Treats %X if
- .notice $nick $logo2(NOTICE) 14You got7 %X 14sweets from the jar, You now have7 $hget($+(Totals.,$nick),Treats) 14sweets!
- hadd -z rtime $nick $r(750,900)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement