• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

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.
Very nice. You should make it so it shows a little message when someone reps you

11:11 So and So repped you for 1 point.
 
nah better let the player know the amount by himself
 
I use the MOD version and when I kill one monster I dont gain the reputation... repair it plz
 
I use the MOD version and when I kill one monster I dont gain the reputation... repair it plz
are you sure? I tested it and it worked
which monster is it?
 
local monsters = {
["orshabaal"] = {rep = 5},
["ferumbras"] = {rep = 1},
["ghazbaran"] = {rep = 6},
["morgaroth"] = {rep = 6},
}
 
I figured out how to add it myself :p

Is there a way to config it so you can't rep the same person in like a week?
yes, in the reptime function

try this one:
Lua:
function repTime(timeDiff) --configured for 1 week
    local dateFormat = {    
        {"day", timeDiff / 60 / 60 / 24 % 7},
        {"hour", timeDiff / 60 / 60 % 24},
        {"minute", timeDiff / 60 % 60},
        {"second", timeDiff % 60}
    }

    local out = {}
    for k, t in ipairs(dateFormat) do
        local v = math.floor(t[2])
        if(v > 0) then
            table.insert(out, (k < #dateFormat and (#out > 0 and ', ' or '') or ' and ') .. v .. ' ' .. t[1] .. (v ~= 1 and 's' or ''))
        end
    end
   
    return table.concat(out)
end
 
yes, in the reptime function

try this one:
Lua:
function repTime(timeDiff) --configured for 1 week
    local dateFormat = {    
        {"day", timeDiff / 60 / 60 / 24 % 7},
        {"hour", timeDiff / 60 / 60 % 24},
        {"minute", timeDiff / 60 % 60},
        {"second", timeDiff % 60}
    }

    local out = {}
    for k, t in ipairs(dateFormat) do
        local v = math.floor(t[2])
        if(v > 0) then
            table.insert(out, (k < #dateFormat and (#out > 0 and ', ' or '') or ' and ') .. v .. ' ' .. t[1] .. (v ~= 1 and 's' or ''))
        end
    end
   
    return table.concat(out)
end

I meant, that you can rep every 6 hours, but you can't add it to the same player for a longer period of time
 
its possible, would require a paralel function
remembers me otland's rep sys:p
its a good idea
 
cybermaster thx now i have this problem

chueco2.png

Cyber some help blxxxor i have the same problem as @up!
 
yeah, but first reopen your thread ^^
 
Have This Problem


chueco.png

In rep.php remove the <center> tags from this line, that did the trick for me
Code:
$main_content .= '<img src="repPics.php?type=1" /><center><img src="repPics.php?type=2" /></center><TABLE BORDER=1 CELLSPACING=0 CELLPADDING=1 WIDTH=100%>
 
well i assume you know some little php, to fix this by yourselves
 
This look interesting. Is there a way to make this lika you get +Rep when you kill a guild member that you are against in a war and give -Rep when you kill someone who dont are in the war?

That would be nice :p
 
ofc, usig
Lua:
function addPlayerRep(cid, amount, color)

Lua:
function removePlayerRep(cid, amount, color)
 
ofc, usig
Lua:
function addPlayerRep(cid, amount, color)

Lua:
function removePlayerRep(cid, amount, color)

Is there a way to check if the playar have a diffrent guild id and if they are in war then add +rep else -rep :p
 
I think that is already done in the guild wars system
 
Status
Not open for further replies.
Back
Top