[Question] How to AUTOMATICALLY make accounts GM? menu

User Tag List

Results 1 to 7 of 7
  1. #1
    knif3r2's Avatar Member
    Reputation
    6
    Join Date
    Jun 2007
    Posts
    55
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Question] How to AUTOMATICALLY make accounts GM?

    So I'm creating a GM server on my own accord. I just want to figure out how I can set the "account_access\gm_level" to 3 when the accounts are created.. Is there a way I can do this through setting a default value in the colum of the DB?


    Using [Trinity] Trees Repack 3.3.5
    Join PVP GM Server!
    knif3r2.blogdns.org

    [Question] How to AUTOMATICALLY make accounts GM?
  2. #2
    DoxramosPS's Avatar Knight
    Reputation
    26
    Join Date
    Aug 2010
    Posts
    214
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Easiest way would be to make your account creation page insert 1,2 or 3 into gmlevel during the SQL Query. Theoretically you could set all the permissions of everything to a lower level, but that just seems like more of a hassle; also. Be careful on what you let everyone do on an all GM server :P. Last thing. If you want to start running publicly I would look into compiling and not so much using a repack.
    Mangos and Trinity Emulation
    Windows | Linux
    Under Development : morgangreen.org WoW CMS Site

  3. #3
    knif3r2's Avatar Member
    Reputation
    6
    Join Date
    Jun 2007
    Posts
    55
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by DoxramosPS View Post
    Easiest way would be to make your account creation page insert 1,2 or 3 into gmlevel during the SQL Query. Theoretically you could set all the permissions of everything to a lower level, but that just seems like more of a hassle; also. Be careful on what you let everyone do on an all GM server :P. Last thing. If you want to start running publicly I would look into compiling and not so much using a repack.

    If anyone can, I have the file for the website. Can you make it so it can change the account_access -> gmlevel = 3 on account creation?

    Download: Functions.php
    Filebeam - Beam up that File Scottie!

    If I would to add it myself, would this be correct?

    HTML Code:
    $sql = $query("INSERT INTO $db_a.account_access (gmlevel, RealmID) VALUES ('3', '-1')")or die(mysql_error());
    Last edited by knif3r2; 07-12-2012 at 07:53 PM.
    Join PVP GM Server!
    knif3r2.blogdns.org

  4. #4
    myran2's Avatar Contributor

    Reputation
    130
    Join Date
    Dec 2008
    Posts
    475
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Add these two lines after both registration queries:
    Code:
    $accId = $query("SELECT id FROM $db_a.account WHERE username='$username'")or die(mysql_error());
    $sql1 = $query("INSERT INTO $db_a.account_access (id, gmlevel) VALUES ($accId, 3)") or die(mysql_error());

  5. #5
    Harambeqt's Avatar Elite User CoreCoins Purchaser
    Reputation
    333
    Join Date
    Mar 2010
    Posts
    1,206
    Thanks G/R
    9/29
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by myran2 View Post
    Add these two lines after both registration queries:
    Code:
    $accId = $query("SELECT id FROM $db_a.account WHERE username='$username'")or die(mysql_error());
    $sql1 = $query("INSERT INTO $db_a.account_access (id, gmlevel) VALUES ($accId, 3)") or die(mysql_error());
    Can't you just make the flag "AZ" or "3" Auto-set on all new accs in the sql table ?
    Support the #1 WoW Emulator:
    http://arcemu.org/
    https://github.com/arcemu/arcemu
    - - -

  6. #6
    DoxramosPS's Avatar Knight
    Reputation
    26
    Join Date
    Aug 2010
    Posts
    214
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by AfterDawn View Post
    Can't you just make the flag "AZ" or "3" Auto-set on all new accs in the sql table ?
    Not that I know of off the top of my head; He's using a repack. I'm sure you could do it on a self compile, but as far as the repack goes he should be able to just set the query.
    Mangos and Trinity Emulation
    Windows | Linux
    Under Development : morgangreen.org WoW CMS Site

  7. #7
    myran2's Avatar Contributor

    Reputation
    130
    Join Date
    Dec 2008
    Posts
    475
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can't do that because gmlevels are stored in a different table.
    Even if you compile your own core, it still takes a bit of hacking around to make it read the gmlevel from a different location.

Similar Threads

  1. [Question] How do you make money scamming account?!?!
    By Darksid in forum World of Warcraft General
    Replies: 4
    Last Post: 06-28-2008, 01:43 PM
  2. [Question] How do I make this work?
    By 80x08 in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 10-27-2007, 10:27 AM
  3. [QUESTION] How do you make a 2.2 private server?
    By Ferag in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 10-14-2007, 10:22 AM
  4. [Question] How do i make Elevators work?
    By Wintchman11 in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 10-06-2007, 08:23 PM
  5. [QUESTION] How do you make isntances work in newer revisions?
    By geburha in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 09-01-2007, 03:15 PM
All times are GMT -5. The time now is 10:55 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search