• 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!

Reputation point script.

Potar

SocialWorld
Senator
Joined
Mar 1, 2009
Messages
1,661
Reaction score
125
Location
Warsaw, Poland
Hello, i looking for reputation script for killing players.
Expamle:

Players 150-200lvl you got 5 points reputation
Players 201-300lvl you got 25 reputation
Players 301-999lvl you got 50 reputation

And small example in the website like highcore ;)

I know there is script for killing MONSTERS and players (but with WS/RS/BS - not from lvl to lvl )

Greetings, Potar ;)
 
This will give everyone that appears on the death-list of the person the rep:

LUA:
local rep_storage = 13337 --storagevalue for your rep
local REWARDS = {
    {301, 50}, --everyone higher than level 301 that dies will give 50 rep
    {201, 25}, --everyone higher than level 201 that dies will give 25 rep
    {150, 5} --etc...
}

function onKill(cid, target, lastHit)

    if isPlayer(cid) then
        local level = getPlayerLevel(target)
        for i, v in ipairs(REWARDS) do
            if v[1] >= level then
                doCreatureSetStorage(cid, rep_storage, getCreatureStorage(cid, rep_storage) + v[2])
            end
        end
    end

end
 
Back
Top