WelComeBoT For All
 

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

WelComeBoT For All

Started by D-J Valhala, 03 December, 2003, 11:16:54

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

D-J Valhala

Can enyone postme a WelcomeBoT For All

(HubOwner,Master,Super OP.Operator,ViP)

tnx  :D
My PsyIsrael Network
==================
--=[PsyIsrael DC Hub]=--
--=[PsyIsrael Website]=--
==================

kepp

-----------------------------------------------
--# Made by kepp
--# Welcome-Bot
-----------------------------------------------

BotName = "?==?"
HubOwner = "Name_of_the_hub_owner"

                function NewUserConnected(user)
                      if user.iProfile == 2 then
                               DoWelcomeVIP(user)
                end
    end

                function OpConnected(user)
                      if user.iProfile == 1 then
                               DoWelcomeOP(user)
                      elseif user.iProfile == 0 then
                               DoWelcomeMaster(user)
                      elseif user.sName == HubOwner then
                               DoWlcHubOwn(user)
                end
    end

                function DoWelcomeVIP(user)
                         SendToAll(BotName, "Welcome "..user.sName.." Psst, This Dude is Important!!")
       end

                function DoWelcomeOP(user)
                         SendToAll(BotName, "Welcome "..user.sName.." Psst, Beware this beast")
       end

                function DoWelcomeMaster(user)
                         SendToAll(BotName, "Welcome "..user.sName.." Psst, Beware this beast")
       end

                function DoWlcHubOwn(user)
                         SendToAll(BotName, "HubOwner "..user.sName.." Just entered the hub")
          end

Not tested...
Guarding    

D-J Valhala

thenk you dude but i need the will welcome and good bey (where is the  super OP welcome?)

 :D
My PsyIsrael Network
==================
--=[PsyIsrael DC Hub]=--
--=[PsyIsrael Website]=--
==================

D-J Valhala

i want it toO be somthing like that
-----------------------------------------------------------------------
--=The HubOwner (user name) Has Entered The Hub=--
--=The Super OP (user name) Has Entered The Hub=--
--=The Operator  (user name) Has Entered The Hub=--
--=The [ViP] (user name) Has Entered The Hub=--
-----------------------------------------------------------------------
--=The HubOwner (user name) Has Left The Hub=--
--=The Super OP (user name) Has Left The Hub=--
--=The Operator  (user name) Has Left The Hub=--
--=The [ViP] (user name) Has Left The Hub=--
-----------------------------------------------------------------------

tnx  :P
My PsyIsrael Network
==================
--=[PsyIsrael DC Hub]=--
--=[PsyIsrael Website]=--
==================

kepp

*** Update...
Though, I have no idea what your Profile index is...
i guess you could take it from it's name, But im not so sure and therefor waiting for someone that actually knows...

-----------------------------------------------
--# Made by kepp
--# Welcome-Bot
-----------------------------------------------

BotName = "?==?"
HubOwner = "Name_of_the_hub_owner"

                function NewUserConnected(user)
                      if user.iProfile == 2 then
                               DoWelcomeVIP(user)
                end
    end

                function OpConnected(user)
                      if user.iProfile == 1 then
                               DoWelcomeOP(user)
                      elseif user.iProfile == 0 then
                               DoWelcomeMaster(user)
                      elseif user.sName == HubOwner then
                               DoWlcHubOwn(user)
                end
    end

                function OpDisconnected(user)
                SendToAll("Bye bye "..user.sName)
                end
                
                function UserDisconnected(user)
                            if user.iProfile == 2 then
                                  DoSayGoodByeVIP(user)
             end
    end

                function DoWelcomeVIP(user)
                         SendToAll(BotName, "Welcome "..user.sName.." Psst, This Dude is Important!!")
       end

                function DoWelcomeOP(user)
                         SendToAll(BotName, "Welcome "..user.sName.." Psst, Beware this beast")
       end

                function DoWelcomeMaster(user)
                         SendToAll(BotName, "Welcome "..user.sName.." Psst, Beware this beast")
       end

                function DoWlcHubOwn(user)
                         SendToAll(BotName, "HubOwner "..user.sName.." Just entered the hub")
          end

                function DoSayGoodByeVIP(user)
                      SendToAll(BotName, "Bye bye "..user.sName)
    end
Guarding    

D-J Valhala

i want it toO be somthing like that
-----------------------------------------------------------------------
--=The HubOwner (user name) Has Entered The Hub=--
--=The Super OP (user name) Has Entered The Hub=--
--=The Operator (user name) Has Entered The Hub=--
--=The [ViP] (user name) Has Entered The Hub=--
-----------------------------------------------------------------------
--=The HubOwner (user name) Has Left The Hub=--
--=The Super OP (user name) Has Left The Hub=--
--=The Operator (user name) Has Left The Hub=--
--=The [ViP] (user name) Has Left The Hub=--
-----------------------------------------------------------------------

tnx :P
My PsyIsrael Network
==================
--=[PsyIsrael DC Hub]=--
--=[PsyIsrael Website]=--
==================

kepp

HubOwner = "Name_of_the_hub_owner"

                function NewUserConnected(user)
                      if user.iProfile == 2 then
                               DoWelcomeVIP(user)
                end
    end

                function OpConnected(user)
                      if user.iProfile == 1 then
                               DoWelcomeOP(user)
                      elseif user.iProfile == 0 then
                               DoWelcomeMaster(user)
                      elseif user.sName == HubOwner then
                               DoWlcHubOwn(user)
                end
    end

                function OpDisconnected(user)
                   if user.iProfile == 0 then
                            DoSayGoodbyeMaster(user)
                   elseif user.iProfile == 1 then
                            DoSayGoodByeOP(user)
                   elseif user.sName == HubOwner then
                            ByeByeHubOwner(user)
                end
end
                
                function UserDisconnected(user)
                            if user.iProfile == 2 then
                                  DoSayGoodByeVIP(user)
             end
    end

                function DoWelcomeVIP(user)
                         SendToAll("-= The VIP "..user.sName.." Has Entered the hub =-")
       end

                function DoWelcomeOP(user)
                         SendToAll("-= The OP "..user.sName.." Has Entered the hub =-")
       end

                function DoWelcomeMaster(user)
                         SendToAll("-= The Master "..user.sName.." Has Entered the hub =-")
       end

                function DoSayGoodbyeMaster(user)
                         SendToAll("-= The Master "..user.sName.." has left the hub =-")
       end

                function DoSayGoodByeOP(user)
                         SendToAll("-= The OP "..user.sName.." Has left the hub =-")
       end

                function ByeByeHubOwner(user)
                         SendToAll("-= The Hubowner "..user.sName.." Has left the hub =-")
       end

                function DoWlcHubOwn(user)
                         SendToAll("-= The VIP "..user.sName.." Has Entered the hub =-")
          end

                function DoSayGoodByeVIP(user)
                      SendToAll("-= The VIP "..user.sName.." Has Entered the hub =-")
    end
Guarding    

pHaTTy

not really neccasary for functions for sent....
Resistance is futile!

D-J Valhala

#8
you forget the most importent welcome  lol
-----------------------------------------------------------------------
--=The Super OP (user name) Has Entered The Hub=--

--=The Super OP (user name) Has Left The Hub=--
-----------------------------------------------------------------------

and the BoT Name

thank you man you are gr8 :-P
My PsyIsrael Network
==================
--=[PsyIsrael DC Hub]=--
--=[PsyIsrael Website]=--
==================

kepp

I know phatty, but im practicing :)

D-J Valhala, i know why i forgot it, as i don't know for sure how to do so..
if i can get it via the profile's name or if i have to go through it's index...
Either or, i think i will need profile_Name/indx
Guarding    

D-J Valhala

The script work very GooD man BuT you forget the most importent welcome lol
-----------------------------------------------------------------------
--=The Super OP (user name) Has Entered The Hub=--

--=The Super OP (user name) Has Left The Hub=--
-----------------------------------------------------------------------

and the BoT Name

thank you man you are gr8 :-P
My PsyIsrael Network
==================
--=[PsyIsrael DC Hub]=--
--=[PsyIsrael Website]=--
==================

kepp

Ok, here's an Update, As i've said before i don't know what index and i don't know what name your profile name has..
Check out the Scripting Manual in "doc" folder

?ou can see that the size is not as big as the last one.
but does exactly the same...
Reason was, I wanted to learn something, and thanks to you i know it worked :)

BotName = "Your Bot Name here"
HubOwner = "Name_of_the_hub_owner"

                function NewUserConnected(user)
                      if user.iProfile == 2 then
                                  SendToAll(BotName, "-= The VIP "..user.sName.." Has Entered the hub =-")
                      elseif user.iProfile == 1 then
                                  SendToAll(BotName, "-= The OP "..user.sName.." Has Entered the hub =-")
                      elseif user.iProfile == 0 then
                                  SendToAll(BotName, "-= The Master "..user.sName.." Has Entered the hub =-")
                      elseif user.sName == HubOwner then
                                  SendToAll(BotName, "-= The HubOwner "..HubOwner.." Has Entered the hub =-")
                end
    end

  
                function UserDisconnected(user)
                            if user.iProfile == 2 then
                                        SendToAll(BotName, "-= The VIP "..user.sName.." Has Left the hub =-")
                            elseif user.iProfile == 1 then
                                        SendToAll(BotName, "-= The OP "..user.sName.." Has Left the hub =-")
                            elseif user.iProfile == 0 then
                                        SendToAll(BotName, "-= The Master "..user.sName.." Has Left the hub =-")
                            elseif user.sName == Hubwner then
                                        SendToAll(BotName, "-= The Hubowner "..user.sName.." Has Left the hub =-")
                   end
    end
Guarding    

D-J Valhala

#12
N/P my freind but i think that you smoke too much WeeeeeeeD =)

you make the
HubOwner Welcome
HubOwner bey bey
Master Welcome
Master bey bey
OP Welcome
OP bey bey
ViP Welcome
ViP bey bey

But Where is the
Super OP Welcome??????????
Super OP bey bey???????????
loooooooooooooooooooool

:-)
My PsyIsrael Network
==================
--=[PsyIsrael DC Hub]=--
--=[PsyIsrael Website]=--
==================

kepp

I won't even mention it again, Read the post above your comment and you'll see..
Guarding    

D-J Valhala

the profile name is "Super OP"
 8)
My PsyIsrael Network
==================
--=[PsyIsrael DC Hub]=--
--=[PsyIsrael Website]=--
==================

kepp

Check it out, i don't know if it works

BotName = "Your Bot Name here"
HubOwner = "Name_of_the_hub_owner"
sOP = GetProfileIdx("Super OP")

                function NewUserConnected(user)
                      if user.iProfile == 2 then
                                  SendToAll(BotName, "-= The VIP "..user.sName.." Has Entered the hub =-")
                      elseif user.iProfile == 1 then
                                  SendToAll(BotName, "-= The OP "..user.sName.." Has Entered the hub =-")
                      elseif user.iProfile == 0 then
                                  SendToAll(BotName, "-= The Master "..user.sName.." Has Entered the hub =-")
                      elseif user.sName == HubOwner then
                                  SendToAll(BotName, "-= The HubOwner "..HubOwner.." Has Entered the hub =-")
                      elseif user.sName == sOP then
                                  SendToAll(BotName, "-= The Super OP "..HubOwner.." Has Entered the hub =-")
                end
    end

  
                function UserDisconnected(user)
                            if user.iProfile == 2 then
                                        SendToAll(BotName, "-= The VIP "..user.sName.." Has Left the hub =-")
                            elseif user.iProfile == 1 then
                                        SendToAll(BotName, "-= The OP "..user.sName.." Has Left the hub =-")
                            elseif user.iProfile == 0 then
                                        SendToAll(BotName, "-= The Master "..user.sName.." Has Left the hub =-")
                            elseif user.sName == Hubwner then
                                        SendToAll(BotName, "-= The Hubowner "..user.sName.." Has Left the hub =-")
                            elseif user.sName == sOP then
                                        SendToAll(BotName, "-= The Super OP "..user.sName.." Has Left the hub =-")
                   end
    end
Guarding    

D-J Valhala

nope not woking
------------------------
(tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx tnx)
My PsyIsrael Network
==================
--=[PsyIsrael DC Hub]=--
--=[PsyIsrael Website]=--
==================

kepp

then im affraid i can't help you unless i know the index
Guarding    

D-J Valhala

i dont know m8 pleas explain me what you need and i write it in here
My PsyIsrael Network
==================
--=[PsyIsrael DC Hub]=--
--=[PsyIsrael Website]=--
==================

plop

QuoteOriginally posted by D-J Valhala
i dont know m8 pleas explain me what you need and i write it in here
every profile has a number.
for example:
master = 0
operator = 1
vip = 2
registered user = 3
unreg user = -1
he would like 2 know what number your superop level has.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

D-J Valhala

i dont understed what you mean
i'm sorry toO bother you dude
and i'm sorry for my lame english :P
My PsyIsrael Network
==================
--=[PsyIsrael DC Hub]=--
--=[PsyIsrael Website]=--
==================

tezlo

open Profiles.dat find SuperOP and post the number in front of it.. 4 5 6 ?

D-J Valhala

Super OP|11110100011001111111000000000000
My PsyIsrael Network
==================
--=[PsyIsrael DC Hub]=--
--=[PsyIsrael Website]=--
==================

kepp

0|Master|11111111111111111111000000000000
^

That is the number i want
Guarding    

D-J Valhala

0|Master|11111111111111111111000000000000
1|Operator|11110100001001111111000000000000
2|VIP|10000000000001011000000000000000
3|Reg|10000000000000000000000000000000
4|Super OP|11110100011001111111000000000000
My PsyIsrael Network
==================
--=[PsyIsrael DC Hub]=--
--=[PsyIsrael Website]=--
==================

SMF spam blocked by CleanTalk