thankyou
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here

NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Author Topic: AutoReg  (Read 11682 times)

Offline LouK

  • Full Member
  • ***
  • Posts: 119
    • The Sni:{Per}:Jum Clan
Re: AutoReg
« Reply #30 on: June 13, 2013, 07:15:21 PM »
Sorry but.. wha do you mean? I tried to use that and didn't feel any change

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: AutoReg
« Reply #31 on: June 14, 2013, 08:13:18 PM »
line 144

change
Code: [Select]
if sclient.maskedGroup:
by
Code: [Select]
if sclient.maskedGroup.level !=0:
PtitBigorneau

Offline LouK

  • Full Member
  • ***
  • Posts: 119
    • The Sni:{Per}:Jum Clan
Re: AutoReg
« Reply #32 on: June 16, 2013, 03:49:17 PM »
Sorry ptit, but I keep having the same problem. When I add:

Code: [Select]
        if sclient:
           
            if sclient.maskedGroup.level !=0:
                 
                cgroup = sclient.maskedGroup.name
                cconnect = random.choice(('18', '9', '1', '16', '2', '13', '7', '4', '6'))
                clevel = sclient.maskedGroup.level
               
            else:
       
                cgroup = self.gnamelevel0
                cconnect = sclient.connections
                clevel = sclient.maxLevel
           
            cmd.sayLoudOrPM(client, '%s^7 connected ^6%s ^7times. ^2%s^7 [^1%s^7] '%(sclient.exactName, cconnect, cgroup, clevel)) 
       
        else:
            return False
It keeps displaying the first cconnect(random) if the player is masked or not

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: AutoReg
« Reply #33 on: June 16, 2013, 07:16:29 PM »
sorry

Code: [Select]
if sclient.maskLevel != 0:
PtitBigorneau

Offline LouK

  • Full Member
  • ***
  • Posts: 119
    • The Sni:{Per}:Jum Clan
Re: AutoReg
« Reply #34 on: June 16, 2013, 08:00:28 PM »
Yep that works thanks!

Just a note: now I had to change the cgroup at the "else" to:

Code: [Select]
sclient.maxGroup.name

Cheers!

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: AutoReg
« Reply #35 on: March 04, 2016, 09:17:38 AM »
BigBrotherBot(B3) < 1.10

Download -> Plugin-Autoreg-1.4.2

BigBrotherBot(B3) >= 1.10

Download -> Plugin-Autoreg-1.5
PtitBigorneau

 


Rate this page +1 at Google Search

anything