• 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.
:pyep, the problem is that I imported the scripts from a 0.2 scripts but I recently realized now about that matter, I'll fix it later so keep checking the post;) the other scripts seem to be ok
--u can also edit the rep of a player in SQL phpmyadmin/sqlite

omg i tested now

rep+
 
huh? it worked? cool the functions seem the be compatible with all 0.3s
I've already fixed all critical bugs so ppl can use the system now :)
 
Last edited:
Great , Good luck making another good scripts like this and even better ;p
 
would be awesome if you can make onDeath or onKill by/to creatures gives/takes some amount of rep depending of the level/skill of the creature... i mean special creatures kills gives you a custom ammount of rep ...
but still the system is just awesome
 
would be awesome if you can make onDeath or onKill by/to creatures gives/takes some amount of rep depending of the level/skill of the creature... i mean special creatures kills gives you a custom ammount of rep ...
but still the system is just awesome
:pyep I'll do it later somehow like that but if other person does it, I'll add it here as an addon

hey you can make a RANK, to i put in my web site.
huh? what do you mean exactly?
 
Last edited by a moderator:
you can make, a rank of Reps ( example: !ranks rep, same as level, skills)
Other thing, why i use the rep door? In Actions?
 
@up: rep door is optional, you use it if you want
Do you mean rep ranks based on level or skills? ":S well there are another threads like that but if I do it like that my whole system will be screwed up
 
Example:
!ranks rep

1. Cyber - 5200 points legendary hero
2. Jason - 5000 points legendary hero
3. jack - 1800 points Hero

understand?
 
oO HiGhscore! I can't believe I didn't think in that :D I shall try later, got tons of homework this week
 
why i can put in my quests scripts, for add +rep to the players...?
 
why i can put in my quests scripts, for add +rep to the players...?
oh sorry, I didn't give the example
just by adding addPlayerRep(cid, 5, TEXTCOLOR_LIGHTBLUE) <my default

update your data/actions/scripts/quests/quests.lua with this one:
Lua:
-- simple quests based on uniqueId
-- to make quest create chest on map and set its uniqueId to id of quest item

function onUse(cid, item, frompos, item2, topos)
    prize = item.uid
    count = item.actionid

    if prize > 0 and prize < 9000 then
        queststatus = getPlayerStorageValue(cid,prize)

        if queststatus == -1 then
            if count > 1 then
                doPlayerSendTextMessage(cid,22,'You have found '.. count ..' of ' .. getItemName(prize) .. '.')
                doPlayerAddItem(cid,prize,count)
                setPlayerStorageValue(cid,prize,1)
                addPlayerRep(cid, 5, TEXTCOLOR_LIGHTBLUE)    
            else
                doPlayerSendTextMessage(cid,22,'You have found a ' .. getItemName(prize) .. '.')
                doPlayerAddItem(cid,prize,1)
                setPlayerStorageValue(cid,prize,1)
                addPlayerRep(cid, 5, TEXTCOLOR_LIGHTBLUE)    
            end
        else
            doPlayerSendTextMessage(cid,22,"It is empty.")
        end

        return 1
    else
        return 0
    end
end
 
I haven't readed all post by the users so i don't know if somebody have posted this...

script for "player death" works in 0.3.5?

Because parameters for function "onDeath" has been changed from:
Lua:
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)

To:
Lua:
function onDeath(cid, corpse, deathList)

??

Will be great if somebody is killed by(for example) 6 players, so rep points are divided between the 6 players

Example
Lua:
local pointsPerKill = 5

	for _, pid in ipairs(deathList) do
                if isPlayer(pid) == true then
		        addPlayerRep(pid, (pointsPerKill / #deathList), color)
                end
	end
 
Last edited:
uhm I have tested it and it works
...onCast(cid, target)
onKill(cid, target, lastHit)
onDeath(cid, corpse, deathList)
onPrepareDeath(cid, deathList)...
idk why it still works fine :D
 
What if I use sqlite? How do I get it to work?
 
uhmm didn't think in that before
I'll search for some sqlite examples around here in the forum and I'll try to add sqlite support for the system :S i wish someone could help me
 
Status
Not open for further replies.
Back
Top