L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2008, 12:54:48 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.3.x Custom/Unofficial Modules > Topic: Fixed Alts.php for 0.3.4
Pages: [1]   Go Down
« previous next »
Print
Author Topic: Fixed Alts.php for 0.3.4  (Read 691 times)
0 Members and 1 Guest are viewing this topic.
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 841



WWW
Fixed Alts.php for 0.3.4
« on: June 24, 2007, 07:52:42 PM »

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, 09:22:21 AM by Temar » Logged
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Re: Fixed Alts.php for 0.3.4
« Reply #1 on: June 30, 2007, 01:46:59 PM »

Modified slightly to allow disabling if desired and committed to SVN.
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 841



WWW
Re: Fixed Alts.php for 0.3.4
« Reply #2 on: June 30, 2007, 05:13:10 PM »

ive looked as SVN and it looks like it still does the check
Code:
        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
Logged
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Re: Fixed Alts.php for 0.3.4
« Reply #3 on: June 30, 2007, 06:16:44 PM »

Fixed (i think) Tongue
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 841



WWW
Re: Fixed Alts.php for 0.3.4
« Reply #4 on: June 30, 2007, 07:14:20 PM »

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: June 30, 2007, 07:32:13 PM by Chris96 » Logged
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Re: Fixed Alts.php for 0.3.4
« Reply #5 on: June 30, 2007, 08:39:43 PM »

Working here on a clean SVN working copy.

What settings did you alter?
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 841



WWW
Re: Fixed Alts.php for 0.3.4
« Reply #6 on: June 30, 2007, 09:04:15 PM »

the word settings
Code:
$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
Logged
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 841



WWW
Re: Fixed Alts.php for 0.3.4
« Reply #7 on: June 30, 2007, 09:11:11 PM »

if i wanted to download the entire SVN version whats best way to do it?
Logged
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Re: Fixed Alts.php for 0.3.4
« Reply #8 on: June 30, 2007, 09:14:32 PM »

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.
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 841



WWW
Re: Fixed Alts.php for 0.3.4
« Reply #9 on: June 30, 2007, 09:32:32 PM »

i got wat u said how do i set it up?
Logged
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Re: Fixed Alts.php for 0.3.4
« Reply #10 on: June 30, 2007, 09:43:40 PM »

Double click the install icon? Tongue

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.
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 841



WWW
Re: Fixed Alts.php for 0.3.4
« Reply #11 on: June 30, 2007, 09:49:46 PM »

Got it Thx  Grin
Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1077


Re: Fixed Alts.php for 0.3.4
« Reply #12 on: July 01, 2007, 05:39:58 AM »

Quote from: Khalem on June 30, 2007, 09:14:32 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.
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.3.x Custom/Unofficial Modules > Topic: Fixed Alts.php for 0.3.4
« previous next »
 
Jump to:  

Recent
Change text in remember "...
by gerborg
[November 21, 2008, 05:14:57 PM]

Log playtime from buddys ...
by Temar
[November 20, 2008, 10:33:57 AM]

Vote Core module and Simp...
by Temar
[November 19, 2008, 09:26:52 AM]

Restrict access for one m...
by Organizer
[November 19, 2008, 03:21:19 AM]

Custom / Revised Modules ...
by Elesar1
[November 17, 2008, 03:51:46 PM]

TWC
by Temar
[November 16, 2008, 11:39:12 AM]

Are there any FUN modules...
by Elesar1
[November 15, 2008, 07:39:15 PM]

Call to a member function...
by exxie
[November 15, 2008, 09:29:31 AM]

Ported Modules
by Alreadythere
[November 14, 2008, 06:10:07 PM]

cURL and other non-defaul...
by Temar
[November 14, 2008, 04:11:44 PM]
Stats
Members
Total Members: 1235
Latest: DDDepressionnn
Stats
Total Posts: 11037
Total Topics: 1496
Online Today: 18
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 1
Guests: 15
Total: 16
xlDanek

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.187 seconds with 30 queries. (Pretty URLs adds 0.028s, 4q)
Loading...