Aucun50 commented on a Page, Custom Greet Module for Staff Bot 3  -  Apr 03, 2009

All of those on dialogs can be put into one like:

on *:DIALOG:greets:sclick:7: {
  set %hi. $+ $did(4) $did(6)
  did -b greets 7
  did -ra greets 8 Delete
}
on *:DIALOG:greets:sclick:2: {
  did -ra greets 4 $did(2).seltext
  did -era greets 6 $var(%hi.*,$did(2).sel).value
  did -e greets 8-10
}

into

on *:DIALOG:greets:sclick:*: {
  if ($did == 7) {
    did -ra greets 4 $did(2).seltext
    did -era greets 6 $var(%hi.*,$did(2).sel).value
    did -e greets 8-10
  }
  elseif ($did == $2) {
    did -ra greets 4 $did(2).seltext
    did -era greets 6 $var(%hi.*,$did(2).sel).value
    did -e greets 8-10
  }
}

Yours works the same just looks nicer with less on dialogs :)

Nice Script btw

 Respond  
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.