Can enyone postme a WelcomeBoT For All
(HubOwner,Master,Super OP.Operator,ViP)
tnx :D
-----------------------------------------------
--# 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...
thenk you dude but i need the will welcome and good bey (where is the super OP welcome?)
:D
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
*** 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
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
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
not really neccasary for functions for sent....
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
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
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
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
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
:-)
I won't even mention it again, Read the post above your comment and you'll see..
the profile name is "Super OP"
8)
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
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)
then im affraid i can't help you unless i know the index
i dont know m8 pleas explain me what you need and i write it in here
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
i dont understed what you mean
i'm sorry toO bother you dude
and i'm sorry for my lame english :P
open Profiles.dat find SuperOP and post the number in front of it.. 4 5 6 ?
Super OP|11110100011001111111000000000000
0|Master|11111111111111111111000000000000
^
That is the number i want
0|Master|11111111111111111111000000000000
1|Operator|11110100001001111111000000000000
2|VIP|10000000000001011000000000000000
3|Reg|10000000000000000000000000000000
4|Super OP|11110100011001111111000000000000
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 =-")
elseif user.iProfile == 4 then
SendToAll(BotName, "-= The Super OP "..user.sName.." 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.iProfile == 4 then
SendToAll(BotName, "-= The Super OP "..user.sName.." Has Left the hub =-")
end
end
Here's an correct Welcome bot...
notice my "bug/fix" line to learn something, ment to users
that can't LUA that well...
--[ Welcome Bot ]--
-------------------
-- Originally By: kepp
-- Modified By:NightLitch
-- Added OpConnected(user),OpDisconnected(user) so Op's message's get sended...
BotName = "BOTER"
HubOwner = "Name_of_the_hub_owner"
function NewUserConnected(user)
if user.iProfile == 2 then
SendToAll(BotName, "-= The VIP "..user.sName.." Has Entered the hub =-")
end
end
function UserDisconnected(user)
if user.iProfile == 2 then
SendToAll(BotName, "-= The VIP "..user.sName.." Has Left the hub =-")
end
end
function OpConnected(user)
if 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.iProfile == 4 then
SendToAll(BotName, "-= The Super OP "..user.sName.." Has Entered the hub =-")
end
end
function OpDisconnected(user)
if 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.iProfile == 4 then
SendToAll(BotName, "-= The Super OP "..user.sName.." Has Left the hub =-")
end
end
-- By: NightLitch
/NL
I have no problems displaying the messages via NewUserConnected() :S
If you're right that reminds me of a ruitn control of my bot to see how i got it to work :S
kepp thenk you for writing the scrip you rulzzzzzzz!!!
NightLitch thenk you for Modifieding the script the script work very GooD !!!!! :-))))))))))
thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!!
thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!! thenk you both !!!!!!!!!!
--------------------------------------------------------------------
and againe thenk you both very very very moch you both RULEZZZZZZZZZZZZZZZZZZZZZZZZZZ!!!!!!!!!!
--------------------------------------------------------------------
can you add too the script mor walcome?
like the Super ViP welcome
and HubRunner OP welcome?
---------------------------------------------------------------------
0|Master|11111111111111111111000000000000
1|Operator|11100100001001111111000000000000
2|VIP|10000000000001011000000000000000
3|Reg|10000000000000000000000000000000
4|Super OP|11110100011001111111000000000000
5|HubRunner OP|00000000000000000000000000000000
6|Super VIP|00000000000000000000000000000000
---------------------------------------------------------------------
and the +help commend like from a TXT file for the Super OP HubRunner OP Super VIP?
10X :-)
yeahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
i'm rulesssssssssssssssssssssssssssssssssssss
--[ Welcome BoT ]--
-------------------
-- Originally By: kepp
-- Modified By:NightLitch
-- Added OpConnected(user),OpDisconnected(user) so Op's message's get sended...
-- Modified By:D-J-Valhala
-- Added "Super ViP" "HubRunner OP" "welcome"
BotName = "BoT_Name_Here"
HubOwner = "HubOwner_Name_Here"
function NewUserConnected(user)
if user.iProfile == 2 then
SendToAll(BotName, " --= The [ViP] "..user.sName.." Has Entered The Hub =--")
elseif user.iProfile == 6 then
SendToAll(BotName, " --= The [Super ViP] "..user.sName.." 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 == 6 then
SendToAll(BotName, " --= The [Super ViP] "..user.sName.." Has Left The Hub =--")
end
end
function OpConnected(user)
if user.iProfile == 1 then
SendToAll(BotName, " --= The Operator "..user.sName.." Has Entered The Hub =--")
elseif user.iProfile == 0 then
SendToAll(BotName, " --= The HubOwner "..user.sName.." Has Entered The Hub =--")
elseif user.sName == HubOwner then
SendToAll(BotName, " --= The HubOwner "..HubOwner.." Has Entered The Hub =--")
elseif user.iProfile == 4 then
SendToAll(BotName, " --= The Super OP "..user.sName.." Has Entered The Hub =--")
elseif user.iProfile == 5 then
SendToAll(BotName, " --= The HubRunner OP "..user.sName.." Has Entered The Hub =--")
end
end
function OpDisconnected(user)
if user.iProfile == 1 then
SendToAll(BotName, " --= The Operator "..user.sName.." Has Left The Hub =--")
elseif user.iProfile == 0 then
SendToAll(BotName, " --= The HubOwner "..user.sName.." Has Left The Hub =--")
elseif user.sName == Hubwner then
SendToAll(BotName, " --= The Hubowner "..user.sName.." Has Left The Hub =--")
elseif user.iProfile == 4 then
SendToAll(BotName, " --= The Super OP "..user.sName.." Has Left The Hub =--")
elseif user.iProfile == 5 then
SendToAll(BotName, " --= The HubRunner OP "..user.sName.." Has Left The Hub =--")
end
end
-- By: D-J-Valhala
-------------------------------------------------
But if someone can post me the +help commend like from a TXT file ONLY for "Super OP" "HubRunner OP" "Super VIP"?
10X :-)
Here is a new one with Help....
--[ Welcome BoT ]--
-------------------
-- Originally By: kepp
-- Modified By:NightLitch
-- Added OpConnected(user),OpDisconnected(user) so Op's message's get sended...
-- Modified By:D-J-Valhala
-- Added "Super ViP" "HubRunner OP" "welcome"
-- Modified By: NightLitch
-- Added: Help command for levels: Super Vip, HubRunner OP and Super OP
BotName = "BoT_Name_Here"
HubOwner = "HubOwner_Name_Here"
command = "+help"
SupVipText = "SupVipHelp.txt"
SupOpText = "SupOpHelp.txt"
HubRunText = "HubRunText.txt"
function NewUserConnected(user)
if user.iProfile == 2 then
SendToAll(BotName, " --= The [ViP] "..user.sName.." Has Entered The Hub =--")
elseif user.iProfile == 6 then
SendToAll(BotName, " --= The [Super ViP] "..user.sName.." 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 == 6 then
SendToAll(BotName, " --= The [Super ViP] "..user.sName.." Has Left The Hub =--")
end
end
function OpConnected(user)
if user.iProfile == 1 then
SendToAll(BotName, " --= The Operator "..user.sName.." Has Entered The Hub =--")
elseif user.iProfile == 0 then
SendToAll(BotName, " --= The HubOwner "..user.sName.." Has Entered The Hub =--")
elseif user.sName == HubOwner then
SendToAll(BotName, " --= The HubOwner "..HubOwner.." Has Entered The Hub =--")
elseif user.iProfile == 4 then
SendToAll(BotName, " --= The Super OP "..user.sName.." Has Entered The Hub =--")
elseif user.iProfile == 5 then
SendToAll(BotName, " --= The HubRunner OP "..user.sName.." Has Entered The Hub =--")
end
end
function OpDisconnected(user)
if user.iProfile == 1 then
SendToAll(BotName, " --= The Operator "..user.sName.." Has Left The Hub =--")
elseif user.iProfile == 0 then
SendToAll(BotName, " --= The HubOwner "..user.sName.." Has Left The Hub =--")
elseif user.sName == Hubwner then
SendToAll(BotName, " --= The Hubowner "..user.sName.." Has Left The Hub =--")
elseif user.iProfile == 4 then
SendToAll(BotName, " --= The Super OP "..user.sName.." Has Left The Hub =--")
elseif user.iProfile == 5 then
SendToAll(BotName, " --= The HubRunner OP "..user.sName.." Has Left The Hub =--")
end
end
function DataArrival(user, data)
if( strsub(data, 1, 1) == "<" ) then
s,e,cmd = strfind( data, "%b<>%s+(%S+)%s*")
cmd=strsub(cmd,1,strlen(cmd)-1)
if (cmd== command) then
if user.iProfile == 6 then
ReadText(SupVipText)
return 1
elseif user.iProfile == 4 then
ReadText(SupOpText)
return 1
if user.iProfile == 5 then
ReadText(HubRunText)
return 1
end
end
end
end
function ReadText(file)
readfrom(file)
while 1 do
line = read()
if line == nil then break end
user:SendPM(BotName,line)
end
readfrom()
end
Haven't tested it, so plz do and tell me if there is errors...
nope now working dude sorry
but the trigers will work?
----------------------------------------------------------
OP + HubRunner OP + Super OP trigres
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
? OPERATOR COMMANDS ?--------------------? These Commands go in to Mainchat & PM to Bot ?
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
? !kick
- Kick a user with a reason (x Times then banned)
? !nickban - Ban from offline user's
? !timeban - Timeban a user with a reason, followed by kick
? !banip - Permanently ban IP address (if user is offline)
? !unban - Unban IP address or Nick
? !warn - Will give a warning to the user in PM (x Times then banned)
? !drop - Silent kick with tempban
? !getinfo - Displays basic info on user with given nick
? !ipinfo - Show all on/offline users with that ip
? !iprangeinfo - Show all on/offline users within that iprange
? !userinfo - Show all visits of that user
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
? OPERATOR COMMANDS ?--------------------? These Commands go in to Mainchat & PM to Bot ?
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
? !hconfig - Show current hub config
? !hstat - Show current hub statics
? !info - Shows all info about a user
? !offline - Sets a offline message to a selected user
? !online - Sets a online check to a selected user
? !slots - Show free slots or nothing for all free slots
? !help - Show your commands
? !reguser - Register user as [Regged]
? !regvip - Register user as [VIP]
? !deluser - Remove a user from registeredUsers.dat (Reg/VIP)
? !repass - Change your own password, Only for (Reg/VIP/OP/Master)
? !upgrade - Upgrade status of a [Reg] user to [VIP] status
? !showreg - Show the users from the selected profile (just !showreg - will show all profiles)
? !getkicks - Get number of kicks from users
? !getwarns - Get number of warns from users
? !showkicklog - Show list of kicked nicks/IP addresses
? !showbanlog - Show list of banned nicks/IP addresses
? !showtimebanlog - Show list of Time Banned nicks/IP addresses
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
? USER COMMANDS ?--------------------? These Commands go in to Mainchat to LsD_-_BoT ?
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
? +rd - Show new Releases
? +add - Add a new Release (Description = --=<<>>=--)
? !rules - Show the hub rules
? !network - Show hubs on the network
? !faq - Shows faq about DC++
? !version - Show script version
? !jump - Show available redirect addresses on the Network
? !myhubtime - Show your online time (Only Reg/VIPs)
? !tophubbers - Show most online users in the hub (Only Reg/VIPs)
? !report - Report faker to all OP's in PM
? !slots - Show free slots (Only Reg/VIPs)
? !getaways - Show all away messages (Only Reg/VIPs)
? !away - Put the away message
? !back - Be back after an away
? !seen - Show last online/offline information (Only Reg/VIPs)
? !regme - Reg's your self to this fine Hub
? !repass - Change your own password (Only Reg/VIPs)
? !myip - Shows your currently IP number
? !userhelp - Show this help
trigers part 2
"SuperVIP"
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
? USER COMMANDS ?--------------------? These Commands go in to Mainchat to LsD_-_BoT ?
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
? +rd - Show new Releases
? +add
- Add a new Release (Description = --=<<>>=--)
? !rules - Show the hub rules
? !faq - Shows faq about DC++
? !version - Show script version
? !myhubtime - Show your online time (Only Reg/VIPs)
? !tophubbers - Show most online users in the hub (Only Reg/VIPs)
? !report - Report faker to all OP's in PM
? !slots - Show free slots (Only Reg/VIPs)
? !getaways - Show all away messages (Only Reg/VIPs)
? !away - Put the away message
? !back - Be back after an away
? !seen - Show last online/offline information (Only Reg/VIPs)
? !repass - Change your own password (Only Reg/VIPs)
? !myip - Shows your currently IP number
? !userhelp - Show this help
-------------------------------------------------------------------
maybe a script that whan Super OP HubRunner OP do ! help he will see the op commends?
SuperVIP !help = usercommens?
but the trigers will work?
Those Commands looks like robocop!
By the way, It's not !help" that will cause you to get all OP / Master commands in Robocop!
The Welcome Bot has +help
yes i know it's robocop but i added 3 more profiles on the ptokax and the robocop do not know that so whan the added profiles do !help thay get nothing + all the robocop trigers not work fot the new profiles
how can i fix it?