things needed:
muonline server ( yes, really :))
mssql server installed on mixed mode auth.
working php server with MSSQL extension installed ( NOTE: MSSQL EXTENSION ! not mysql databases ! O.o )
Step 1: Preparing mssql server
open query analyzer and run this query:
Step 2: Downloading the scriptCode:ALTER TABLE MEMB_INFO ADD verify INT NOT NULL DEFAULT 0; ALTER TABLE Character ADD verify INT NOT NULL DEFAULT 0; ALTER TABLE AccountCharacter ADD verify INT NOT NULL DEFAULT 0; ALTER TABLE MEMB_STAT ADD verify INT NOT NULL DEFAULT 0; ALTER TABLE VI_CURR_INFO ADD verify INT NOT NULL DEFAULT 0; ALTER TABLE warehouse ADD verify INT NOT NULL DEFAULT 0![]()
Download the files attached to this topic ^^.
Step 3: Configuration
fill the config ( verify_conf.php ) file so it looks like this:
Ofc you will have to put there your real ip instead of your_servers_ip and so on..Code:$servername = "your_servers_name"; $ipsql = "your_servers_ip"; $sqluser = "login_to_your_sql"; $sqlpass = "password_to_your_sql";
Step 4: Easy as pie :)
Put the files on your web server ( apache will be great, setup tutorial comming soon )
Note! All files must be in same folder
Step 5: Getting started
your ready to go now, now what you have to do, is informing your players about incomming verificaton
( let your GM do this :) ), tell them about this on your forum etc. dont forget to give them a link to verifaction ( http://yourdomain.com/verify.php )
place to check out if their accounts are verificated is http://yourdomain.com/verifylist.php
Step 6: The major one.
Give your players a good amount of time to do this, on my server it is 2 weeks ( i do it each 3 mnths ), and after two weeks we are deleting unverificated acc's
so we have space for new players.
Step 7: Deleting non-active accounts
Time has passed, time to delete non-active accounts, to do this you should run this query in query analyzer:
Step 8: Prepare your server to next verificationCode:DELETE FROM Character WHERE verify = ('0'); DELETE FROM MEMB_INFO WHERE verify = ('0'); DELETE FROM AccountCharacter WHERE verify = ('0'); DELETE FROM VI_CURR_INFO WHERE verify = ('0'); DELETE FROM MEMB_STAT WHERE verify = ('0'); DELETE FROM warehouse WHERE verify = ('0')
Just run this query:
remove verification script from your server, and upload it again when u need to use it.Code:UPDATE MEMB_INFO SET verify = ('0'); UPDATE MEMB_STAT SET verify = ('0'); UPDATE VI_CURR_INFO SET verify = ('0'); UPDATE Character SET verify = ('0'); UPDATE AccountCharacter SET verify = ('0'); UPDATE warehouse SET verify = ('0');
NOTE ! My english sux, so when sometihng is written wrong you have to change it :P
do not change nothing inside the queries, posted here on in attached files.
NOTE ! i dont have much time so i dont be able to supprot this topic,
for support go here: http://dhost.info/darkskyteam/index.php?showtopic=17
NOTE ! if u want to use this script, link back to us on your webpage, and dont remove copyrights, its also peace of cake, am i right ?:D
enjoy,
fiszol


Reply With Quote

