Commit
* Database table needs data for each faction that should give spillover to other faction(s). One faction may give spillover to max 4 other spillover factions. * The spillover rate is multiplied with the points after bonuses and reward rate is set, Rate is given as: 0.5 for 50% gain, -1.0 for 100% loss, etc * It is possible to restrict spillover faction by rank. If player has a higher rank with the spillover faction given in database, no spillover will be given towards this faction Signed-off-by: NoFantasy <nofantasy@nf.no>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
ALTER TABLE db_version CHANGE COLUMN required_10263_03_mangos_pool_pool required_10270_01_mangos_reputation_spillover_template bit; | ||
|
||
DROP TABLE IF EXISTS `reputation_spillover_template`; | ||
CREATE TABLE `reputation_spillover_template` ( | ||
`faction` smallint(6) unsigned NOT NULL default '0' COMMENT 'faction entry', | ||
`faction1` smallint(6) unsigned NOT NULL default '0' COMMENT 'faction to give spillover for', | ||
`rate_1` float NOT NULL default '0' COMMENT 'the given rep points * rate', | ||
`rank_1` tinyint(3) unsigned NOT NULL default '0' COMMENT 'max rank, above this will not give any spillover', | ||
`faction2` smallint(6) unsigned NOT NULL default '0', | ||
`rate_2` float NOT NULL default '0', | ||
`rank_2` tinyint(3) unsigned NOT NULL default '0', | ||
`faction3` smallint(6) unsigned NOT NULL default '0', | ||
`rate_3` float NOT NULL default '0', | ||
`rank_3` tinyint(3) unsigned NOT NULL default '0', | ||
`faction4` smallint(6) unsigned NOT NULL default '0', | ||
`rate_4` float NOT NULL default '0', | ||
`rank_4` tinyint(3) unsigned NOT NULL default '0', | ||
PRIMARY KEY (`faction`) | ||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Reputation spillover reputation gain'; |
6 comments
on commit 1a2b30f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
../../../src/game/ReputationMgr.cpp: In member function ‘bool ReputationMgr::SetReputation(const FactionEntry*, int32, bool)’:
../../../src/game/ReputationMgr.cpp:273: error: expected primary-expression before ‘const’
../../../src/game/ReputationMgr.cpp:273: error: expected ‘)’ before ‘const’
../../../src/game/ReputationMgr.cpp:277: error: ‘repTemplate’ was not declared in this scope
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:/ works ok on Windows/VC90, need some jalp to fix this...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it work if you #include "ObjectMgr.h" btw?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forgot to mention: Ubuntu 9.10 hope you will fix this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#include "ObjectMgr.h"
helped. Compiled perfect))) ty
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for testing, fixed for next push :)
I think there should be factionEntryCalc instead of factionEntry