• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

ELO RANKING SYSTEM BASED ON K/D/A ?? :D

Simon Here

不要直视陌生人的
Joined
Jun 2, 2012
Messages
397
Reaction score
395
Location
France/Poland
Hello.
Did someone released already "Elo Ranking System" which is based on K/D/A statistics or something other?
If yes, give me link to the thread if you can :p
 
if you explain abit more I can do it for you :p

Exactly "ELO RANKING SYSTEM" it is simply "Statistics Points which are cumulated to points of Kills/Deaths/Asists" We can see it when we click on someone in game.

I know one thing, someone who want this system should change/add some codes in source ( for me it's not problem, but i dont know how to do this system xd )
 
he need a highscore system like league of legends xD
Based on Kills/Deaths/Assists

Like system check player who had most kills + assists / deaths = 9.8 kda etc..
Something like that xD
Yea but dont worry im not fucking bob who will use Challenger/Diamond ranks etc in my highscores xDDDD
 
xD i think it can be done with lua
But if it true then i think that assist in tibia can be also calculated as frag :D
So if kills + assists will be calc as frag
You can make a script to check all frags and then check all deaths of player
Then calc it Frags/Deaths = KDA and make new field in DB called KDA and change your highscore system to read that field instead of level field
I'm out home + on phone xD so i can't remember all the damn functions
Btw what is your tfs version too
 
xD i think it can be done with lua
But if it true then i think that assist in tibia can be also calculated as frag :D
So if kills + assists will be calc as frag
You can make a script to check all frags and then check all deaths of player
Then calc it Frags/Deaths = KDA and make new field in DB called KDA and change your highscore system to read that field instead of level field
I'm out home + on phone xD so i can't remember all the damn functions
Btw what is your tfs version too

TFS 0.4 SVN Of course :p it's for 8.6 client
 
so try to do what did i say :D
make new field in player row call it KDA or wtv you want
And make a creature script with Login Type
And make this script check all frags .. To get frag functions you call see script called skull.lua or frag.lua or skullcheck.lua and then make it to check a deaths also
Than make a math function xD
Frags / Deaths = xx
So this number out should be updated on KDA field inside database
Then go to your highscore system and change it from level field to KDA field

Cheers
 
so try to do what did i say :D
make new field in player row call it KDA or wtv you want
And make a creature script with Login Type
And make this script check all frags .. To get frag functions you call see script called skull.lua or frag.lua or skullcheck.lua and then make it to check a deaths also
Than make a math function xD
Frags / Deaths = xx
So this number out should be updated on KDA field inside database
Then go to your highscore system and change it from level field to KDA field

Cheers

I really want but im poor scripter who suck XD im 100000 x times better mapper haha
 
hahahahahaha xD so i can mention someone for you and if that person failed i will do it for you when i be at home
@Limos , give it a shoot and tell me if u did it or not .. I've explained the way how can it be done , so you need to make the easy script xD
 

Yup but he need to add one more thing xD instead of kills and deaths
He need kda .. KDA means kills / death = KDA so when he look at someone it will result KDA
So as i said @Limos , you can tell him how to add a row on player section at database and create a script to check kills / deaths and that result should be updated into kda and create a new function inside libs
Like this
Function getPlayerKda(cid)
db.executequery(select from 'player' select 'kda')
end
Something like that xD and instead of that script you saw that check kills and deaths it will check kda only and give it number as onLook

Also learn him how to change his higscore script to change query result from level field to kda field
 
here is my update one
i know it's not even the same as ELO system but it's so near xD
i just converted this script
http://otland.net/threads/kills-and-deaths-on-look.166381/
instead of making new field in DB :p

so the script will work like this
if player deaths or kills = 0
script will out this result
Code:
17:03 You see [Chief] Dragon (Level 500). He is a fire mage
He has Killed: [6] Players.
He has Died: [0] Times.

and if player deaths or kills >= 1
script will out this result Kills / deaths = xx
Code:
17:04 Warning! The murder of [Chief] Dragon was not justified.
17:04 You see [Chief] Dragon (Level 494). He is a fire mage
He has KDA: [6] .
Code:
17:04 Warning! The murder of [Chief] Dragon was not justified.
17:04 You see [Chief] Dragon (Level 483). He is a fire mage
He has KDA: [2] .

here is the script
in creaturescripts
kda.lua
Code:
function onLook(cid, thing, position, lookDistance)
    function getDeathsAndKills(cid, type) -- by vodka
        local query,d = db.getResult("SELECT `player_id` FROM "..(tostring(type) == "kill" and "`player_killers`" or "`player_deaths`").." WHERE `player_id` = "..getPlayerGUID(cid)),0
            if (query:getID() ~= -1) then
                repeat
                    d = d+1
                until not query:next()
                    query:free()
            end
        return d
    end
        if    ((getDeathsAndKills(thing.uid, "death") ~= 0) and (getDeathsAndKills(thing.uid, "kill") ~= 0)) then
                doPlayerSetSpecialDescription(thing.uid, "\n"..(getPlayerSex(thing.uid) == 0 and "She" or "He").." has KDA: ["..getDeathsAndKills(thing.uid, "kill")  /  getDeathsAndKills(thing.uid, "death").."] ")
        else
                doPlayerSetSpecialDescription(thing.uid, "\n"..(getPlayerSex(thing.uid) == 0 and "She" or "He").." has Killed: ["..getDeathsAndKills(thing.uid, "kill").."] Players.\n"..(getPlayerSex(thing.uid) == 0 and "She" or "He").." has Died: ["..getDeathsAndKills(thing.uid, "death").."] Times")
        end
    return true
end

creaturescripts.xml
Code:
    <event type="look" name="showKD" event="script" value="KDA.lua"/>

login.lua
Code:
    registerCreatureEvent(cid, "showKD")

i know it's not the same but it works perfect :D
 
Back
Top