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

TalkAction (6.1) Cyber's REPSystem w/Opinion Points for 0.4 && mAAC

Is this the best reputation system?

  • Yes.

    Votes: 131 66.2%
  • No.

    Votes: 30 15.2%
  • It's good but can be improved.

    Votes: 37 18.7%

  • Total voters
    198
  • Poll closed .
Status
Not open for further replies.
Lua:
--Cyber's REPutation System Rev5.0
local t = {
    [SKULL_WHITE] = 15,
    [SKULL_RED] = 30,
    [SKULL_BLACK] = 45,
    [SKULL_NONE] = -30,
    }

function onKill(cid, target, lastHit)
    if isPlayer(cid) and isPlayer(target) and not getTileInfo(getCreaturePosition(cid)).pvp then
        --THE KILLER
        if isInArray({0,3,4,5}, getCreatureSkullType(target)) then
            if getPlayerLevel(target) >= rep.pvpLevel and not isInArray(rep.skull, getCreatureSkullType(cid)) then
                doSendAnimatedText(getCreaturePosition(cid), getCreatureSkullType(target) == 0 and '-REP' or '+REP', math.random(1,255))
                rep.set(cid, rep.getPoints(cid)+t[getCreatureSkullType(target)])
                doPlayerSendTextMessage(cid, 20, 'You '.. (getCreatureSkullType(target) == 0 and 'lose' or 'gain') ..' reputation because you killed a player.')
            end
        end
        --THE VICTIM
        if rep.getPoints(target) == 0 then
            return true
        elseif rep.getPoints(target) > 0 then
            rep.remove(target, 5, TEXTCOLOR_RED)
            doPlayerSendTextMessage(target, 20, 'You lose reputation because you were killed by a player.')
        else
            rep.add(target, 5, TEXTCOLOR_LIGHTBLUE)
            doPlayerSendTextMessage(target, 20, 'You lose reputation because you were killed by a player.')
        end
    end
return true
end



My arena continue removing rep.
 
My arena continue removing rep.
your arena is quite insistent:mad:
Lua:
--Cyber's REPutation System Rev5.0
local t = {
    [SKULL_WHITE] = 15,
    [SKULL_RED] = 30,
    [SKULL_BLACK] = 45,
    [SKULL_NONE] = -30,
    }

function onKill(cid, target, lastHit)
    if isPlayer(cid) and isPlayer(target) and not getTileInfo(getCreaturePosition(cid)).pvp and not getTileInfo(getCreaturePosition(target)).pvp then
        --THE KILLER
        if isInArray({0,3,4,5}, getCreatureSkullType(target)) then
            if getPlayerLevel(target) >= rep.pvpLevel and not isInArray(rep.skull, getCreatureSkullType(cid)) then
                doSendAnimatedText(getCreaturePosition(cid), getCreatureSkullType(target) == 0 and '-REP' or '+REP', math.random(1,255))
                rep.set(cid, rep.getPoints(cid)+t[getCreatureSkullType(target)])
                doPlayerSendTextMessage(cid, 20, 'You '.. (getCreatureSkullType(target) == 0 and 'lose' or 'gain') ..' reputation because you killed a player.')
            end
        end
        --THE VICTIM
        if rep.getPoints(target) == 0 then
            return true
        elseif rep.getPoints(target) > 0 then
            rep.remove(target, 5, TEXTCOLOR_RED)
            doPlayerSendTextMessage(target, 20, 'You lose reputation because you were killed by a player.')
        else
            rep.add(target, 5, TEXTCOLOR_LIGHTBLUE)
            doPlayerSendTextMessage(target, 20, 'You lose reputation because you were killed by a player.')
        end
    end
return true
end
 
I think.
Change on kill to onDeath.
that would not make any difference, oh yes the rep for the killer won't work

Lua:
onDeath(cid, corpse, deathList)
 
on arena players dont death..
moved in prepare to death.


cid = dead player
deathlist = player killers

I Use a script im my server..


for reward troph to killers.


00:16 You see a golden trophy.
This is a golden trophy to 'Nickname [Level]' for kill 'killed [level]'


(
I now
I have a bad english.
)
 
lol even if its like that, it's the same thing!
 
in arena players dont death.

Dont have corpses.

No corpse no crime.
No crime no killers. ( ^^ )
 
what u mean is
OnPrepareDeath

and i don't care about ur english
 
Yeah.
Change OnKill to onDeath.

Arena dont work fine with tilepost ( my arena ) - ( or my reload dont work )

I try.
Lua:
   if isPlayer(cid) and isPlayer(target) and getTileZoneInfo(getCreaturePosition(cid)) == 0 and getTileZoneInfo(getCreaturePosition(target)) == 0 then
Lua:
   if isPlayer(cid) and  isPlayer(target) and not getTileInfo(getCreaturePosition(cid)).pvp and not getTileInfo(getCreaturePosition(target)).pvp then

Lua:
    if isPlayer(cid) and  isPlayer(target) and not getTileInfo(getCreaturePosition(cid)).pvp then
I use 0.4_dev

my onDeath work fine. in arena ( dont give false trophy )
 
woah, you didn't tell me that you use 0.4
I was told that the system does not work 100% there, so I cannot give you support until I make an update when 0.4 is public-ly released

This system was scripted in a TFS 0.3.6pl1 with 100% successful working scripts
 
fixed.


Lua:
  --Cyber's REPutation System Rev5.0
  
local config = {
               max_killers = 5
			   }


local t = {
    [SKULL_WHITE] = 15,
    [SKULL_RED] = 30,
    [SKULL_BLACK] = 45,
    [SKULL_NONE] = -30,
    }

function onDeath(cid, corpse, deathList)
for i = 1, math.min(config.max_killers, getConfigInfo('deathAssistCount')) do
	local killer = deathList[i]
    if isPlayer(killer) and isPlayer(cid)  then
        --THE KILLER
        if isInArray({0,3,4,5}, getCreatureSkullType(cid)) then
            if getPlayerLevel(cid) >= rep.pvpLevel and not isInArray(rep.skull, getCreatureSkullType(killer)) then
                doSendAnimatedText(getCreaturePosition(killer), getCreatureSkullType(cid) == 0 and '-REP' or '+REP', math.random(1,255))
                rep.set(killer, rep.getPoints(killer)+t[getCreatureSkullType(cid)])
                doPlayerSendTextMessage(killer, 20, 'You '.. (getCreatureSkullType(cid) == 0 and 'lose' or 'gain') ..' reputation because you killed a player.')
            end
        end
        --THE VICTIM
        if rep.getPoints(cid) == 0 then
            return true
        elseif rep.getPoints(cid) > 0 then
            rep.remove(cid, 5, TEXTCOLOR_RED)
            doPlayerSendTextMessage(cid, 20, 'You lose reputation because you were killed by a player.')
        else
            rep.add(cid, 5, TEXTCOLOR_LIGHTBLUE)
            doPlayerSendTextMessage(cid, 20, 'You lose reputation because you were killed by a player.')
        end
    end
	end
	
return true
end
Working in 0.4_dev

Cyber you have acess in donor area ?
 
i was donor
I have 0.4 rev 3667
 
no thankz. i can be it by my own
and i never liked the blue bold color
 
getTileInfo(getCreaturePosition(cid)).pvp don't work.
just work with .protection

this is a problem also
 
getTileInfo(getCreaturePosition(cid)).pvp don't work.
just work with .protection

this is a problem also
tell that to tfs devs
it worked for others
 
yes, I'll do it as soon as I get free time
 
Status
Not open for further replies.
Back
Top