collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Fixed Alts.php for 0.3.4  (Read 6708 times)

0 Members and 2 Guests are viewing this topic.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Fixed Alts.php for 0.3.4
« on: June 25, 2007, 02:52:42 am »
This is the Alts.php found in the Modules Folder
You only need this if you have Usealts on under security Settings
  • This will Prevent Any 1 adding an Alt with Higher User/Admin level to there name giving them the higher level
  • This is also Prevent the use of !altadmin on any 2 characters unless the person doing it has same or better admin level.
  • Useing !altadmin will Override the Req for main to be same or higher than alt

30/06/07
Fixed Bug were normal !alts add command wasnt working

01/07/07
Got SVN version and Altered the settings to set so it works with 0.3.4
« Last Edit: August 01, 2007, 04:22:21 pm by Temar »

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Fixed Alts.php for 0.3.4
« Reply #1 on: June 30, 2007, 08:46:59 pm »
Modified slightly to allow disabling if desired and committed to SVN.
BeBot Founder and Fixer Kingpin

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Fixed Alts.php for 0.3.4
« Reply #2 on: July 01, 2007, 12:13:10 am »
ive looked as SVN and it looks like it still does the check
Code: [Select]
        if ($security)

        {

            // Check if the Alt being Added has Higher Security

            if ($this -> bot -> security -> get_access_level($name) < $this -> bot -> security -> get_access_level($alt))

            {

                return "##error##Character ##highlight##$alt##end## is Higher User Level and Cannot be Added as your Alt.##end##";

            }

        }
even if its !altadmin
which means the owner cant add an alt with admin to a main with nothing for example

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Fixed Alts.php for 0.3.4
« Reply #3 on: July 01, 2007, 01:16:44 am »
Fixed (i think) :P
BeBot Founder and Fixer Kingpin

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Fixed Alts.php for 0.3.4
« Reply #4 on: July 01, 2007, 02:14:20 am »
ok i got the SVN version altered the settings to set to work with 0.3.4
but
Quote
[Leet] Chris05: !alts
[Leet] Leetboss2: ' Chris05'  (214 /  11 Doctor) -

not posting my alts
« Last Edit: July 01, 2007, 02:32:13 am by Chris96 »

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Fixed Alts.php for 0.3.4
« Reply #5 on: July 01, 2007, 03:39:43 am »
Working here on a clean SVN working copy.

What settings did you alter?
BeBot Founder and Fixer Kingpin

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Fixed Alts.php for 0.3.4
« Reply #6 on: July 01, 2007, 04:04:15 am »
the word settings
Code: [Select]
$this -> bot -> set -> create("Alts", "Security", TRUE, "Should security restrictions be enabled to prevent users from gaining higher access levels by adding alts with higher access level when Usealts for the security module is enabled?");
}
im running 0.3.4 with few slight changes not svn

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Fixed Alts.php for 0.3.4
« Reply #7 on: July 01, 2007, 04:11:11 am »
if i wanted to download the entire SVN version whats best way to do it?

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Fixed Alts.php for 0.3.4
« Reply #8 on: July 01, 2007, 04:14:32 am »
Best way is to use a SVN client like SmartSVN.

I might consider setting up a nightly snapshot, but i really dont think there is enough demant to warrant it atm.
BeBot Founder and Fixer Kingpin

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Fixed Alts.php for 0.3.4
« Reply #9 on: July 01, 2007, 04:32:32 am »
i got wat u said how do i set it up?

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Fixed Alts.php for 0.3.4
« Reply #10 on: July 01, 2007, 04:43:40 am »
Double click the install icon? :P

Project -> Checkout -> Manage (repository) -> Add
Access method: http
server name: svn.shadow-realm.org
Repo path: svn/BeBot/

From there on out you just select trunk and where to store. You'll have your own clean working copy.
BeBot Founder and Fixer Kingpin

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Fixed Alts.php for 0.3.4
« Reply #11 on: July 01, 2007, 04:49:46 am »
Got it Thx  ;D

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Fixed Alts.php for 0.3.4
« Reply #12 on: July 01, 2007, 12:39:58 pm »
I might consider setting up a nightly snapshot, but i really dont think there is enough demant to warrant it atm.
Doubt it's needed in the long run, there is not that much daily development most of the time.

Though right now releasing 0.3.5 as another release candidate wouldn't harm.

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 555
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal