Informatikai Barkács Fórum

WORLD OF WARCRAFT SZERVER => Adatbázis => A témát indította: Trophy Dátum 2011 március 14, 11:23:35 DÉLELŐTT

Cím: Reputation spillover template
Írta: Trophy Dátum 2011 március 14, 11:23:35 DÉLELŐTT
Hali!

A problémám az lenne hogy van ugyebár northrenden 2 frakció aminek van 4-4 al-frakciója, aminek adnia kéne a fő frakcióhoz az ott megszerzett repu 50%-át. De nem adja.
http://old.wowhead.com/faction=1037 (http://old.wowhead.com/faction=1037)
http://old.wowhead.com/faction=1052 (http://old.wowhead.com/faction=1052)
A problámám az lenne, hogy szeretném beállítani a  reputation_spillover_template táblában a repukat, úgy, hogy így mindegyik frakció,csak a "főfrakcióhoz" adjon reput, a többihez ne. A kérdésem az lenne, hogy melyik megoldás lenne erre a jó?

1.)
INSERT INTO `reputation_spillover_template` (`faction`, `faction1`, `rate_1`, `rank_1`, `faction2`, `rate_2`, `rank_2`, `faction3`, `rate_3`, `rank_3`, `faction4`, `rate_4`, `rank_4`) VALUES
(1052, 1064, 0.5, 7, 1067, 0.5, 7, 1085, 0.5, 7, 1124, 0.5, 7), (1037, 1050, 0.5, 7, 1068, 0.5, 7, 1094, 0.5, 7, 1126, 0.5, 7);


2.)
INSERT INTO `reputation_spillover_template` (`faction`, `faction1`, `rate_1`, `rank_1`, `faction2`, `rate_2`, `rank_2`, `faction3`, `rate_3`, `rank_3`, `faction4`, `rate_4`, `rank_4`) VALUES
(1050, 1037, 0.5, 7, 1068, 0.5, 7, 1094, 0.5, 7, 1126, 0.5, 7),
(1068, 1037, 0.5, 7, 1050, 0.5, 7, 1094, 0.5, 7, 1126, 0.5, 7),
(1094, 1037, 0.5, 7, 1050, 0.5, 7, 1068, 0.5, 7, 1126, 0.5, 7),
(1126, 1037, 0.5, 7, 1050, 0.5, 7, 1068, 0.5, 7, 1094, 0.5, 7),
(1064, 1052, 0.5, 7, 1067, 0.5, 7, 1085, 0.5, 7, 1124, 0.5, 7),
(1067, 1052, 0.5, 7, 1064, 0.5, 7, 1085, 0.5, 7, 1124, 0.5, 7),
(1085, 1052, 0.5, 7, 1064, 0.5, 7, 1067, 0.5, 7, 1124, 0.5, 7),
(1124, 1052, 0.5, 7, 1064, 0.5, 7, 1067, 0.5, 7, 1085, 0.5, 7);


3.)
INSERT INTO `reputation_spillover_template` (`faction`, `faction1`, `rate_1`, `rank_1`, `faction2`, `rate_2`, `rank_2`, `faction3`, `rate_3`, `rank_3`, `faction4`, `rate_4`, `rank_4`) VALUES
(1050, 1037, 0.5, 7),
(1068, 1037, 0.5, 7),
(1094, 1037, 0.5, 7),
(1126, 1037, 0.5, 7),
(1064, 1052, 0.5, 7),
(1067, 1052, 0.5, 7),
(1085, 1052, 0.5, 7),
(1124, 1052, 0.5, 7);


Bocs ha értelmetlen kicsit a kérdés, de wow-wikin nem sok segítséget találtam ezügyben:
http://www.trinitycore.org/w/Reputation_spillover_template_tc2 (http://www.trinitycore.org/w/Reputation_spillover_template_tc2)