Post reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
Name:
Email:
Subject:
Message icon:

Verification:

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: King_Hual
« on: February 11, 2011, 02:51:57 pm »

First: In the "Users" section of the scripts, type "owner:yournamehere"

Then:
Code: [Select]
on owner:TEXT:!addowner*:#: {
  /ruser $2-
  /auser owner $2-
  set %owners %owners $$2
  msg $chan  0,4 $nick  $+ Made 11,1 $+ $2 $+ 0,4 an Owner of me.
  notice $$2 Use !hcmds for my commands.
}

This is to add an owner.

Code: [Select]
on *:TEXT:!owners*:#: {
  notice $nick 0,4 $+ My owners are:11,1 $+ %owners
}
This is to see the owners list

Code: [Select]
on owner:TEXT:!delowner*:#:{
  if ($2 == yournicknamehere) {
    notice $nick What are you trying to do?! $2 is my master.
  }
  else {
    if ($count(%owners,$$2) > 0) {
      /ruser $$2
      set %owners $remove( %owners, $$2 )
      msg $chan 0,4 $+ $nick has removed $2 from my owners list.
      notice $$2 $nick has removed you from my owners list.
    }
    else {
      notice $nick $$2 isn't one of my owners.
    }
  }
}
This is to delete owners

Then, instead of for example:
Code: [Select]
on *:TEXT:!blabla*:#: {you can type
Code: [Select]
on owner:TEXT:!blabla*:#: {and the command will be for owners only.