[Guide]Link Level Cap to Account Status menu

User Tag List

Results 1 to 7 of 7
  1. #1
    Arrakis's Avatar Active Member
    Reputation
    52
    Join Date
    Jan 2008
    Posts
    123
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Guide]Link Level Cap to Account Status

    The following will teach you how you can give an account a status like Donator or vip, and with that allow them to have a higher level cap.


    You need a way so that your software can identify if accounts are "special" accounts. I would not touch the existing accounts table, but add a reference table.

    Code:
    CREATE TABLE logon.Account_Status (
      `acct` int(10) unsigned NOT NULL,
      `Status` int(1) NOT NULL,
      PRIMARY KEY  (`acct`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
    Here you store the account id, and the status.
    0 = Normal (level 70)
    1 = Vip (level 75)
    2 = Donator (level 80)

    Then we create a trigger on the account table, that for every new entry, we will create a row in our new table ... default status will be 0.

    Code:
    create trigger logon.bir_accounts
    before insert on logon.accounts
    for each row
    begin
      insert into logon.Account_Status values (new.acct,0);
    end;

    Ok ... now we have a way to detect the status of an account. You are going to have to update the status manually in the database, or automate it somewhere yourself, depending on what you are going to do with it.


    Next step is blocking the users from leveling after a certain level.

    Code:
    create trigger logon.bir_characters
    before insert on logon.characters
    for each row
    begin
      declare stat int;
      select status into stat 
        from logon.Account_Status 
      where acct = new.acct;
      if ( stat = 0 ) then
          if new.level > 70 then
           set   new.level = 70;
          end if;
      end if;
      if stat = 1 then 
          if new.level > 75 then
             set  new.level = 75;
          end if;
      end if;
      if stat =2 then
          if new.level > 80 then
            set   new.level = 80;
          end if;
     end if;
    end;
    A "normal" character level 70 could level to 71, but every time he logs out, or cache is saved to the database, it will be put back to 70/75 (not over 80 as that is general cap). To nicen this code a bit more, i would also set set the minimum xp that belongs to a certain level (70/75) ... but i do not know these numbers ....

    Also don't forget to change the ascent config to raise the general levelcap to 80.


    Ps:
    This guide completely focussed on implementing this inside the database, but it's not 100% flawless. To get the best results, part of it should be done inside the core.

    [Guide]Link Level Cap to Account Status
  2. #2
    Cursed's Avatar Contributor
    Reputation
    270
    Join Date
    Jun 2007
    Posts
    1,380
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not bad +2 rep

  3. #3
    DarkSoulja FM's Avatar Member
    Reputation
    5
    Join Date
    Nov 2006
    Posts
    58
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    kool. ill try putting it on my website

  4. #4
    Tomac123's Avatar Sergeant Major
    Reputation
    45
    Join Date
    Jan 2008
    Posts
    162
    Thanks G/R
    9/3
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can you put this on a website? and BTW check my guide out on how to create a ascent server XD
    <<1337

  5. #5
    kate1's Avatar Member
    Reputation
    147
    Join Date
    Aug 2007
    Posts
    501
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    amazing mate! ty for it and +rep


    Graphic designer for crossfire-entertainment! And thx to Brightchild for my great sig

  6. #6
    Tomac123's Avatar Sergeant Major
    Reputation
    45
    Join Date
    Jan 2008
    Posts
    162
    Thanks G/R
    9/3
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice guide i love it XD just sad i cant use it cause i shut down my sexy server
    <<1337

  7. #7
    Krilio's Avatar Active Member
    Reputation
    40
    Join Date
    Feb 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks i will use this....

Similar Threads

  1. [Selling] Leveling and other account services >Green Fire, Brawler's Guild, Valor Cap, Rep<
    By planar in forum World of Warcraft Buy Sell Trade
    Replies: 1
    Last Post: 12-20-2013, 05:37 AM
  2. Replies: 5
    Last Post: 06-15-2012, 08:21 AM
  3. [Quick Guide]Find character levels on scammed account!
    By Connection in forum World of Warcraft Guides
    Replies: 5
    Last Post: 08-09-2008, 06:40 PM
  4. Guide to levelling a Hunter 1-60 in 35 hours 54 minutes...
    By Lonsdale in forum World of Warcraft Guides
    Replies: 5
    Last Post: 06-18-2006, 05:04 AM
All times are GMT -5. The time now is 08:21 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