So by saying ?trig ?owner ?home ?phrase or ?whoami will give you information
saying '!CMD Try' will tell you that the script is working
on *:TEXT:*:#: {
if ( $me == %bname ) {
var %pwrofuser = %pwr [ $+ [ $nick ] ]
if ( $1 == ?trig ) { msg $chan the trigger is ' %trig ' }
if ( $1 == ?phrase ) { msg $chan the phrase is ' %phrase ' }
if ( $1 == ?home ) { msg $chan my home is ' %chan ' }
if ( $1 == ?owner ) { msg $chan the owner is ' %owner ' }
if ( %pwrofuser >= 0 ) {
if ( $1 == ?whoami ) {
msg $chan you ( $+ $nick ) have %pwr [ $+ [ $nick ] ] power
}
if ( $1 == %trig $+ [ %phrase ] ) {
if ( $2 == try ) { msg $nick Pass! }
}
}
}
;###NOTES###
;DO NOT ADD THIS THESE ARE NOTES
; ON THE LINE 'if ( $2 == try ) { msg $nick Pass! }'
; You may continue to add lines to do other functions
;ALSO ON YOUR VARIABLE PAGE YOU WILL NEED TO ADD:
;you can replace anything after the space in a variable
;on the variable %pwr(YOUR_NICK_NAME)
;change YOUR_NICK_NAME to your actual nickname
;Take Away the parenthesis
;DO NOT ADD A SPACE BETWEEN %pwr AND YOUR NICK
;THE FOLLOWING IS WHAT YOU NEED TO ADD
;END OF NOTES
;###END OF NOTES###
%trig !
%phrase CMD
%chan #THE_NAME_OF_YOUR_CHAN
%owner YOUR_NICK_NAME
%pwr(YOUR_NICK_NAME) 0
Hey guys thanks for the advice and criticism believe it or not i like it. keep commenting.
I fixed the code as you requested. Its open source yes. I removed the tutorial stuff and I added the on text event. I forgot to mension that you need to add it to your REMOTE section
anyways thanks. I'll post more soon. I would have responded sooner but I Lost ALL of my code :( and this helped me get some of it back, anyways THANKS