Bot / NPC / AMB / Fsay Dialog

By Scakk on May 14, 2007

This dialog is for those that like to use the ambiance , bot ( say act ) , npc ( npc & npca ) and the fsay / faction commands alot.

Image

menu channel { 
  [AMB|BS|FSAY|NPC]: $iif(!$dialog(notyou), dialog -mied notyou notyou, dialog -va notyou notyou) 
}
dialog notyou {
  title "AMB|BS|FSAY|NPC"
  size -1 -1 300 205
  button "Ambiance" 1, 210 10 85 25
  edit "", 11, 10 12 180 20, center autohs
  button "Bot Say", 2, 210 45 85 25 
  edit "", 12, 10 47 180 20, center autohs
  button "Bot Act", 3, 210 82 85 25
  edit "", 13, 10 84 180 20, center autohs
  text "Nick", 8, 20 125 20 15, center
  edit "", 14, 45 122 100 20, center autohs 
  edit "", 15, 155 122 100 20, center autohs
  edit "", 16, 20 152 260 20, center autohs
  button "NPC", 4, 20 175 50 25
  button "NPCA", 5, 90 175 50 25
  button "Fsay", 6, 160 175 50 25 
  button "Faction", 7, 230 175 50 25
  button "R", 9, 260 122 20 20

}
on *:dialog:notyou:*:*: { 
  if ($devent == init) { did -ra notyou 15 $active | did -b notyou 1-7,15,16 }
  if ($devent == edit) { 
    if ($did(11)) { did -e notyou 1 }
    if ($did(12)) { did -e notyou 2 }
    if ($did(13)) { did -e notyou 3 }
    if ($did(14)) { did -e notyou 15,16 }
    if (!$did(14)) { did -b notyou 15,16 }
    if (($did(15)) && ($left($did(15),1) == $chr(35)) && ($did(14))) { did -e notyou 16 }
    if ($left($did(15),1) != $chr(35)) { did -b notyou 4-7,16 }
    if ($did(16)) { did -e notyou 4-7 }
    if (!$did(16)) { did -b notyou 4-7 }
  }
  if ($devent == sclick) { 
    if ($did == 1) { ambiance $active : $did(11) | did -r notyou 11 | did -b notyou 1 } 
    if ($did == 2) { bs SAY $active $did(12) | did -r notyou 12 | did -b notyou 2 }
    if ($did == 3) { bs ACT $active $did(13) | did -r notyou 13 | did -b notyou 3 } 
    if ($did == 4) { npc $did(15) $did(14) $did(16) | did -r notyou 16 | did -b notyou 4-7 }
    if ($did == 5) { npca $did(15) $did(14) $did(16) | did -r notyou 16 | did -b notyou 4-7 }
    if ($did == 6) { fsay $did(15) $did(14) $did(16) | did -r notyou 16 | did -b notyou 4-7 }
    if ($did == 7) { faction $did(15) $did(14) $did(16) | did -r notyou 16 | did -b notyou 4-7 }
    if ($did == 9) { did -ra notyou 15 $active }
  }
}

Comments

Sign in to comment.
vaseline28   -  Jun 22, 2008

@Xlbrag: Yes:

DarkStar.Caelestia.net , Immertot.Caelestia.net , Aurora.Caelestia.net , Apollo.Caelestia.net ,
Unknown.Caelestia.net , Leviathan.Caelestia.net , Niflheim.caelestia.net & TirNaNog.caelestia.net

 Respond  
Xlbrag   -  Jun 22, 2008

er, Niflheim.caelestia.net & TirNaNog.caelestia.net too, right?

 Respond  
NiveusLuna   -  Apr 15, 2008

Oh, how useful this script is :P. Didn\'t rate as 10 because there is always room for improvement.

 Respond  
Lindrian   -  May 14, 2007

Ive seen you do dialogs before, you know how it works. Try to extent them, with more functions, better coding and such. Right now, its just plain dialog with plain functions, should add that little extra on top of it ;)

 Respond  
Scakk   -  May 14, 2007

I use them on Caelestia.Net

The servers are

DarkStar.Caelestia.net , Immertot.Caelestia.net , Aurora.Caelestia.net , Apollo.Caelestia.net ,
Unknown.Caelestia.net , Leviathan.Caelestia.net , Niflheim.caelestia.net & TirNaNog.caelestia.net


The Fsay/Faction commands allow you to speak as another person ( the nick will not be underlined - are usable by IRCops only ).
The NPC , NPCA commands allow you to speak as another person ( the nick will be underlined )
The bs say / bs act allow you to speak through the channel bot as the bot.
The amb command will start the sentece like

Hello there. I hope that helps.
 Respond  
xDaeMoN   -  May 14, 2007

Im not familiar with these commands. You should specify what network/servers this would work.

 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.