• 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.
its done i cant edit title<_<
 
Very nice work, keep it up.
 
[19/08/2010 12:44:19] Zaju has logged in.

[19/08/2010 12:44:19] Lua Script Error: [CreatureScript Interface]
[19/08/2010 12:44:19] buffer:eek:nLogin

[19/08/2010 12:44:19] [string "loadBuffer"]:4: attempt to call global 'getCreatureStorage' (a nil value)
[19/08/2010 12:44:19] stack traceback:
[19/08/2010 12:44:19] [string "loadBuffer"]:4: in function <[string "loadBuffer"]:2>
[19/08/2010 12:44:19] Zaju has logged out.

Help please TFS0.3.5 PL1
 
[19/08/2010 12:44:19] Zaju has logged in.

[19/08/2010 12:44:19] Lua Script Error: [CreatureScript Interface]
[19/08/2010 12:44:19] buffer:eek:nLogin

[19/08/2010 12:44:19] [string "loadBuffer"]:4: attempt to call global 'getCreatureStorage' (a nil value)
[19/08/2010 12:44:19] stack traceback:
[19/08/2010 12:44:19] [string "loadBuffer"]:4: in function <[string "loadBuffer"]:2>
[19/08/2010 12:44:19] Zaju has logged out.

Help please TFS0.3.5 PL1
Ehm this sys is for 0.3.6 or 0.4
add to your data/lib/100-compat.lua :
Code:
doPlayerSetStorageValue = doCreatureSetStorage
setPlayerStorageValue = doPlayerSetStorageValue
getPlayerStorageValue = getCreatureStorage
 
TFS 0.3.6 , i add all from instruction

Code:
[Error - Action Interface] 
data/actions/scripts/quests/system.lua:onUse
Description: 
data/actions/scripts/quests/system.lua:97: attempt to index global 'rep' (a nil value)
stack traceback:
	data/actions/scripts/quests/system.lua:97: in function <data/actions/scripts/quests/system.lua:9>

i add loadmodlib('repSystem') to the end 050-function.lua

but where is this file repsystem.lua ? o_O
 
TFS 0.3.6 , i add all from instruction

Code:
[Error - Action Interface] 
data/actions/scripts/quests/system.lua:onUse
Description: 
data/actions/scripts/quests/system.lua:97: attempt to index global 'rep' (a nil value)
stack traceback:
	data/actions/scripts/quests/system.lua:97: in function <data/actions/scripts/quests/system.lua:9>

i add loadmodlib('repSystem') to the end 050-function.lua

but where is this file repsystem.lua ? o_O
the current system is a mod, i stopped scripting it at lua

try domodlib('repSystem')
 
mhm, help

mods/rep.xml:114: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0xA9 0x20 0x4F 0x54
rs` ADD COLUMN `rep` INT( 11 ) NOT NULL DEFAULT '0' COMMENT 'Cyber''s REPSystem
^
> Loading rep.xml...[Error - ScriptingManager::loadFromXml] Cannot load mod mods/rep.xml
Line: 114, Info: Input is not proper UTF-8, indicate encoding !
Bytes: 0xA9 0x20 0x4F 0x54
 
mhm, help

mods/rep.xml:114: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0xA9 0x20 0x4F 0x54
rs` ADD COLUMN `rep` INT( 11 ) NOT NULL DEFAULT '0' COMMENT 'Cyber''s REPSystem
^
> Loading rep.xml...[Error - ScriptingManager::loadFromXml] Cannot load mod mods/rep.xml
Line: 114, Info: Input is not proper UTF-8, indicate encoding !
Bytes: 0xA9 0x20 0x4F 0x54

wtf never seen such error
disable globalevent, remove:
XML:
<globalevent name="rep_start" type="start" event="script"><![CDATA[
    domodlib('repSystem')
    function onStartup()
        if getGlobalStorageValue(rep.update) == EMPTY_STORAGE then
            setGlobalStorageValue(rep.update, 1)            
            local query = db.getResult("SELECT `rep` FROM `players` LIMIT 1;")
            if isInArray({-1,'',nil,false},query:getID()) then
                print('>> [REP_SYSTEM] Installing Reputation System...')
                db.executeQuery("ALTER TABLE `players` ADD COLUMN `rep` INT( 11 ) NOT NULL DEFAULT '0' COMMENT 'Cyber''s REPSystem © OTLand.net';")
                print('>> [REP_SYSTEM] System successfully installed.')           
            else
                print('>> [REP_SYSTEM] Updating Reputation System...')
                db.executeQuery("ALTER TABLE `players` CHANGE COLUMN `rep` `rep` INT( 11 ) NOT NULL DEFAULT '0' COMMENT 'Cyber''s REPSystem © OTLand.net';")
                print('>> [REP_SYSTEM] System successfully updated.')
            end
            query:free()
        end
        print('>> [REP_SYSTEM] Current Revision: 6.0') 
        print('>> [REP_SYSTEM] Reputation System successfully loaded.')         
        return true
    end
]]></globalevent>

and if column has not been added to database, execute @ phpmyadmin:
SQL:
ALTER TABLE `players` ADD COLUMN `rep` INT( 11 ) NOT NULL DEFAULT '0' COMMENT 'Cyber''s REPSystem © OTLand.net';

look, for me works perfect :D
[20/08/2010 13:56:44] >> Initializing game state modules and registering services...
[20/08/2010 13:56:44] mysql_real_query(): SELECT `rep` FROM `players` LIMIT 1; - MYSQL ERROR: Unknown column 'rep' in 'field list' (1054)
[20/08/2010 13:56:44] >> [REP_SYSTEM] Installing Reputation System...
[20/08/2010 13:56:44] >> [REP_SYSTEM] System successfully installed.
[20/08/2010 13:56:44] >> [REP_SYSTEM] Current Revision: 6.0
[20/08/2010 13:56:44] >> [REP_SYSTEM] Reputation System successfully loaded.
[20/08/2010 13:56:45] > Global address: localhost

[20/08/2010 13:58:32] >> Initializing game state modules and registering services...
[20/08/2010 13:58:32] >> [REP_SYSTEM] Updating Reputation System...
[20/08/2010 13:58:33] >> [REP_SYSTEM] System successfully updated.
[20/08/2010 13:58:33] >> [REP_SYSTEM] Current Revision: 6.0
[20/08/2010 13:58:33] >> [REP_SYSTEM] Reputation System successfully loaded.
 
I have a problem. here do not appear in the player rep page that exists in my database. excuse my English, here is a SS.
imagemon.jpg
 
I have a problem. here do not appear in the player rep page that exists in my database. excuse my English, here is a SS.
That is OK :) Players with 0(zero) rep are not ranked :p When players get > 0 or < 0 rep they'll appear there :p
 
Thxxxxxxxxxxx alotttttttttttttttttttt cyber
this is really best rep system
love u, now my server have your system
rep ++ for u
=********
 
glad to know :p
 
hym, dont work?
player have rang Avoved and rep page is again clear .. :/
 
hym, dont work?
player have rang Avoved and rep page is again clear .. :/
that's pretty weird. did you make a server save to test that?
 
yes i saved server and again rep page clear... :(
"Line: 114, Info: Input is not proper UTF-8, indicate encoding !" hmm this new table in database 'rep' have wrong coding ?
 
pm me your msn
 
Status
Not open for further replies.
Back
Top