Intro Bot
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Intro Bot

Started by dkt, 05 June, 2005, 23:20:07

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dkt

I want a Script to show intro for users.
I dont want any outros for users.
Can someone make it for me ?

jiten

QuoteOriginally posted by dkt
I want a Script to show intro for users.
I dont want any outros for users.
Can someone make it for me ?
Search the forum for "logonmsg". Maybe that's what you're looking for, if I understood your request.

Best regards,

jiten

damo

there you go moded from the intro outro bot


-- Random-In-Outro changed by damo

BOTName = "BOT NAME HERE"
Version = "Random-Inro 0.1"
BotInfo = "$MyINFO $ALL "..BOTName.." <++V:0.1 Random-Inro,?+?:Troubadour> $ $Metal speed"..string.char(1).."$Random-Inro@dhq-eurotopia.no-ip.com$"
sHubName = frmHub:GetHubName()

function Main()
   frmHub:RegBot(BOTName)
end

function OpConnected(user)
      SendToAll( RandomEntryMsg(user))
end

function OpDisconnected(user)
      SendToAll( RandomExitMsg(user))
end

function NewUserConnected(user)
   if user.iProfile == 2 then
      SendToAll(BOTName, RandomVIPMsgConnect(user))
   elseif user.iProfile == nil then
      user:SendPM(user.sName,BOTName.."Welcome to the "..sHubName.."" )
   end
end

function UserDisconnected(user)
   if user.iProfile == 2 then
      SendToAll( RandomVIPMsgExit(user))
   end
end

function RandomEntryMsg(user)
   local randomSeed = math.random(11)
   if randomSeed == 1 then
      return user.sName.." has entered the hub. Please behave cause he is always ready to kick some ....!"
   elseif randomSeed == 2 then
      return user.sName.." has entered the hub. Let's all cheer for him for 5 minutes!"
   elseif randomSeed == 3 then
      return user.sName.." has entered the spotlights."
   elseif randomSeed == 4 then
      return "\r\n\r\n                \\ ~ ~ //\r\n                  ( 0-0 )\r\n----oOO-------(_)--------------------------\r\nI       "..user.sName.."      I\r\n     I           Is peeking at you    I\r\n-------------------oOO----------------------\r\n               I__I__I\r\n                I I  I I\r\n           nooO Ooo"
   elseif randomSeed == 5 then
      return "Looking around in the doorway "..user.sName.." greetz all users with 'Wassup kids.'"
   elseif randomSeed == 6 then
      return "Please give him a big welcome! "..user.sName.." has entered the hub.!"
   elseif randomSeed == 7 then
      return "Here is "..user.sName..". Now there's somebody who knows all!!!"
   elseif randomSeed == 8 then
      return user.sName..". Arrives Yelling And Screaming Like A Maniac."
   elseif randomSeed == 9 then
      return user.sName..". Arrives Ranting And Raving About Aliens Or Some Such Rot."
   elseif randomSeed == 10 then
      return user.sName..". Runs Around The Hub Screaming And Then Leaps Out The Window."
   elseif randomSeed == 11 then
      return "With A Crazed Look In Their Eyes "..user.sName..". Arrives."
   end
end

function RandomVIPMsgConnect(user)
   local randomSeed = math.random(4)
   if randomSeed == 1 then
      return user.sName.." rocks the hub with his presence."
   elseif randomSeed == 2 then
      return "Walking down the stairs "..user.sName.." enters the hub!"
   elseif randomSeed == 3 then
      return user.sName.." is about to get the party started ..."
   elseif randomSeed == 4 then
      return user.sName.." is happy to be a member of this cool hub!"
   end
end

SMF spam blocked by CleanTalk