Hello

Sorry I didn't reply straight away but I was creating the new script...... I didn't realise that this would be going into your mIRC client and just thought it would be going into a bots client.

The difference being on a bot you yourself can use !addID but if you place it in your mIRC then doing !addID will not trigger the event (you cant trigger your own scripts like that)

So now I have changed this so it will work for you, please see new commands and now as it is going into you mIRC on the /add and /del you don't need ($nick == isop) as no one else can trigger it.

Commands

/addID <ID NUMBER> <Reason>
/DelID <ID NUMBER>
/ShowID <ID NUMBER>
!ShowID <ID NUMBER>

All the / commands are for you and the ! commands are for everyone else. To use !ShowID the user must be opped.

Code:
alias AddID {
  if ($1 == $null) { .echo Command incomplete. Syntax: /AddID <ID Number> <Reason> | halt }
  if ($1 !== $null) {
    if ($readini(IDList.ini, $1, Reason) !== $null) { .echo ID Number $1 has already created with reason " $readini(IDList.ini, $1, Reason) " | halt }
    else { 
      writeini -n IDList.ini $1 ID $1 
      writeini -n IDList.ini $1 Reason $2-
      .echo You have added ID number $1 - $2- 
    }
  }
}
alias DelID {
  if ($1 == $null) { .notice $nick Command incomplete. Syntax: /DelID <ID Number>. | halt }
  if ($1 !== $null) {
    if ($readini(IDList.ini, $1, ID) == $null) { .echo There is no ID Number $1 to delete! | halt }
    else {
      .remini IDList.ini $1
      .echo  You have deleted ID number $1 
    }
  }
}
alias ShowID {
  if ($1 == $null) { .notice $nick Command incomplete. Syntax: /ShowID <ID Number>.  | halt }
  if ($1 !== $null) {
    if ($readini(IDList.ini, $1, ID) == $null) { .echo Sorry but there is no ID $1 to show | halt }
    if ($readini(IDList.ini, $1, ID) !== $null) { .echo ID number $1 - $readini(IDList.ini, $1, Reason)  | halt }
  }
}
on *:Text:*:#: {
  if ($1 == !ShowID) {
    if ($2 == $null) { .notice $nick Command incomplete. Syntax: !ShowID <ID Number>.  | halt }
    if ($2 !== $null) {
      if ($nick !isop $chan) { .notice $nick You must be opped to use this commands | halt }
      if ($readini(IDList.ini, $2, ID) == $null) { .notice $nick Sorry but there is no ID $1 to show | halt }
      if ($readini(IDList.ini, $2, ID) !== $null) { .notice $nick ID number $2 - $readini(IDList.ini, $2, Reason) | halt }
    }
  }
}


Sorry for the delay / confusion, This should of been my first question to whom's client it was going in.

Last edited by jaystew; 12/01/14 09:06 PM.