PtokaX forum

Archive => Archived 5.0 boards => Request for scripts => Topic started by: UwV on 27 February, 2005, 22:18:28

Title: self regger
Post by: UwV on 27 February, 2005, 22:18:28
i was thinking
just a simple selfreg script ..

"!regme "

so users can regthemselves..
(with in profiles.dat  "4|Selfreg|32x0" )

.. please ?
Title:
Post by: bastya_elvtars on 28 February, 2005, 12:07:26
QuoteOriginally posted by UwV
i was thinking
just a simple selfreg script ..

"!regme "

so users can regthemselves..
(with in profiles.dat  "4|Selfreg|32x0" )

.. please ?

I bet you can make this script. Ask and I am going to help.
Title:
Post by: Pothead on 28 February, 2005, 13:05:55
--## Self Register 1.0
--## Secure Pass and Nick (thanks to RabidWombat)
--## Made by nErBoS
--## Updated to Lua 5 by Pothead
--## Commands;
--## !regme - Register the user who uses the command

sBot = "Reg-Bot"

function ChatArrival(user, data)
if (string.sub(data,1,1) == "<" or string.sub(data,1,5+strlen(sBot)) == "$To: "..sBot) then
data = string.sub(data,1,string.len(data)-1)
s,e,cmd = string.find(data, "%b<>%s+(%S+)")
if (cmd == "!regme") then
local s,e,pass = string.find(data, "%b<>%s+%S+%s+(%S+)")
if (pass == nil) then
user:SendData(sBot, "Syntax Error, !regme , you must write a password.")
elseif (string.find(pass, "[%c|\n\r]")) then
user:SendData(sBot, "Invalid Password. Try Again.")
elseif (string.find(user.sName, "[%c|\n\r]")) then
user:SendData(sBot, "Your nick is invalid. Please choose a new one.")
else
AddRegUser(user.sName, pass, 3)
SendToOps(sBot, "The user "..user.sName.." has registered himself.")
user:SendData(sBot, "You have been successufly registered with the pass: "..pass)
user:SendData(sBot, "Please reconnect and type your password.")
end
return 1
end
end
end

If you want them to reg to profile Level 4, just change sommit in here ;) (user.sName, pass, 3)
Title: thank you :0)
Post by: UwV on 28 February, 2005, 13:27:19
thanks .. Pothead

and BE also thanks for offering to help me do it  myself :0)
Title:
Post by: Loading on 25 June, 2005, 19:56:31
hello ppl
 can you make this script to make a pm to user after
register an also to Netfounder and Master and to send a message in mainchat to


like this:  ( Netfounder and Master  ) in pm

               
                  The User ( User Nick )
                  With the IP: ( IP )
                  With this Share: ( Share )
                  With this Connection: ( Connection )
                  With this Mode: ( Mode )
                  With this E-Mail: ( E-Mail )
                  With this Client: ( Client )
                 
                  Registered Imself
                  With the Pass: ( Pass )



( for the user ) in pm

               
                  You are Now Registered
                  With the Nick: ( User Nick )
                  With the pass: ( pass )
                  Your IP: ( IP )
                  Your Share: ( Share )
                  Your Connection: ( Connection )
                  Your Mode: ( Mode )
                  Your E-Mail: ( E-Mail )
                  Your Client: ( Client )
                 
( In MainChat )


 (\ ,_____,-/)
           _.-'-.( d\_/b ).-'-._
         /'.-'   ' .---. '   '-. \         The User ( User Nick ) Registered Imself
       /'  .' (=    (_)    =) '. \    
      /'  .',   -.__.-.__.-'  ,'. \          WELCOME TO BOP2BOP
     (     .'.   V       V  ; '.     )
    (      ::  -,__.-.__,-'  ::     )
   }     /  :.               .:' \     {
   }    /  :.                 :'  \    {
    }  (  (  :.              .: )  )   {
    (  (   (  :.             :' )   )  )
    (   (   \ :.           .: /   )   )
    (   (    \ :.         .:'/    )   )
     ) (       \ :.     .:'/'      ) (
     (   )_     )  :._.:' (     _(   )
     \  ' _)  .'            .  (_    /
      \  '_) /   .''   ''.   \ (_   /
        ''    \  (         )  /     ''
    ___      '.'.       .'.'     ___
  .      ''''''-- _)     (_'--''''''  
(_(_(___...--'''      '''--...___)_)_)
                             


It's possible to make this " litle" Modification ?

best regards

Loading
Title:
Post by: Dessamator on 25 June, 2005, 21:18:08
a script like that probably already exists, search, if u cant find it, maybe then somebody will make it .
Title:
Post by: Loading on 25 June, 2005, 21:52:33
hi

i can't find a script like that in this forum

cam somebody makeme one like this ?


best regards
loading
Title:
Post by: Loading on 26 June, 2005, 03:21:56
hello ppl
can anyone help me with this script ?

please....


best regards



Loading
Title:
Post by: Loading on 26 June, 2005, 14:09:58
Please

i can't find the script   :(

Please Help me
Title:
Post by: Loading on 26 June, 2005, 18:41:08
hello ppl

tanks man for the script

but the command don't do anything
 don't work  
 :(

best regards

Loading
Title:
Post by: Loading on 26 June, 2005, 21:34:01
hello ppl

i run the command !regme and do anything i turned off the self reg of my roboccop and restart the hub and the scripts and  the command don't do nothing no message in mainchat no message for the users and ops nothing at all

the command don't show in mainchat and the user is not registered

it is the problem

i'm running Ptokax 0.3.3.0.b17.04.nt.dbg and robocop v10.01e

best regards

Loading
Title:
Post by: Loading on 26 June, 2005, 21:36:47
hello ppl

i run the command !regme and do anything i turned off the self reg of my roboccop and restart the hub and the scripts and  the command don't do nothing no message in mainchat no message for the users and ops nothing at all
and is no error in the script , the script in ptokax don't stop because is no error in them

the command don't show in mainchat and the user is not registered

it is the problem

i'm running Ptokax 0.3.3.0.b17.04.nt.dbg and robocop v10.01e

best regards

Loading
Title:
Post by: Loading on 26 June, 2005, 23:40:56
ok man
 thanks for your time

i will wait

tanks very mutch man

best regards

Loading
Title:
Post by: Loading on 27 June, 2005, 03:57:25
hi were i can find it ? ( the tread )

i can't find it  :(

regards
Title:
Post by: Loading on 27 June, 2005, 12:31:28
thanks man for the link

best regards

Loading
Title:
Post by: badtrip on 27 June, 2005, 15:51:11
hello mutor,


can you added de TAG comand to the regme script
and clean the cat from the script

im have this one , but this script have a error , this one dont send the msg --> this nick it?s register try another one.

i have this one


--## Self Register 1.0
--## Secure Pass and Nick (thanks to RabidWombat)
--## Made by nErBoS
--## Updated to Lua 5 by Pothead
--## Commands;
--## !regme - Register the user who uses the command
--## TAG MSN BY ??????Hawk??????
--## tradu??o by Badtrip to portugues

sBot = "Reg-Bot"
sTag = "[pt]"
function ChatArrival(user, data)
data = string.sub(data,1,string.len(data)-1)
s,e,cmd = string.find(data, "%b<>%s+(%S+)")
if (cmd == "!regme") then
local s,e,pass = string.find(data, "%b<>%s+%S+%s+(%S+)")
if (pass == nil) then
user:SendData(sBot, "???? ERRO NO COMANDO PORQUE:, !regme , Tens que colocar uma password ????.")
elseif (string.find(pass, "[%c|\n\r]")) then
user:SendData(sBot, "???? Password invalida. Tenta de novo.????")
elseif (string.find(user.sName, "[%c|\n\r]")) then
user:SendData(sBot, "???? Nick invalido . Por favor escolhe outro nick.????")
else
AddRegUser(sTag..user.sName, pass, 3)
SendToOps(sBot, "???? O User "..user.sName.." Registou-se e agora ? um user registado ????.")
user:SendData(sBot, "???? Foste Registado com a password: ????"..pass )
user:SendData(sBot, "???? Por favor coloca a tag "..sTag.." ? frente do nick ? [PT]nick ? e reconecta usando a tua password.????")

                               
end
return 1
end
end

best regards