Jump to content

Function:removeAllAccounts War Of Empire


laserlaser

Recommended Posts

Hello,:) Again,I'm.This my new function.Really good.This have exception account :)

Ex use:

removeAllAccounts("|OS|Bikers!") ((( Here, it just does not delete account "|OS|Bikers!" ))) 

or

removeAllAccounts("bikers","laserlaser",...) 

--

removeAllAccounts(string exceptionAccountName1,string exceptionAccountName2,...) 

The Function :

function removeAllAccounts(...) 
    local ex = {...} 
    local accs = getAccounts() 
     
    for k,v in ipairs(accs) do 
        local accex = 0 
        for a,c in ipairs(ex) do 
            if c==getAccountName(v) then 
                accex=1 
            end 
        end 
        if accex~=1 then 
            removeAccount(v) 
        end 
    end 
end 

- War of Empire LUA Team -

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...