Community AlphaAlpha MUADMINS
FILFilipino
Mag-sign in
Sa MuADMINSConfig ScannerI-upload ang zip ng mga file mo: rate, drop, spot, limitBuksanSa MuADMINSMakipagkita sa amin sa DiscordHumingi ng tulong, ibahagi ang ginagawa mo at makipag-usap tungkol sa MU sa ibang may-ari ng server.Buksan
← Lahat ng solusyon
Server setupMSProS2, S3, S6

MSPro: the shipped query "Dar coin ganador gs" (WCoin for the Castle Siege winner) is broken

Isinulat ng MuADMINS mula sa sourceNot verified

The file Tools - Querys Y Otros\Query-Sql\Dar coin ganador gs.txt has three problems:

  1. Line 1 update CashShopData set WCoinC= WCoinC+1000 where AccountID in has nothing after IN (syntax error).
  2. Line 2 update CashShopData set WCoinC= WCoinP+500 ... OVERWRITES WCoinC with WCoinP + 500 instead of adding 500 to WCoinP.
  3. It picks guilds by G_Union. G_Union is 0 (the column default) for guilds without an alliance, so when the castle owner has no alliance every guild without alliance gets the coins.

Safe version, server closed, backup first. Look at the accounts first:

SELECT DISTINCT C.AccountID
FROM Character C
JOIN GuildMember GM ON GM.Name = C.Name
JOIN Guild G ON G.G_Name = GM.G_Name
JOIN Guild OG ON OG.G_Name IN (SELECT OWNER_GUILD FROM MuCastle_DATA)
WHERE G.G_Name = OG.G_Name OR (OG.G_Union <> 0 AND G.G_Union = OG.G_Union);

Then give the coins once per account:

UPDATE CashShopData SET WCoinC = WCoinC + 1000, WCoinP = WCoinP + 500
WHERE AccountID IN (
  SELECT C.AccountID FROM Character C
  JOIN GuildMember GM ON GM.Name = C.Name
  JOIN Guild G ON G.G_Name = GM.G_Name
  JOIN Guild OG ON OG.G_Name IN (SELECT OWNER_GUILD FROM MuCastle_DATA)
  WHERE G.G_Name = OG.G_Name OR (OG.G_Union <> 0 AND G.G_Union = OG.G_Union));

Source: MSPro S2-S3 V14.0 Tools - Querys Y Otros/Query-Sql/Dar coin ganador gs.txt; Guild.G_Union DEFAULT 0 in the MuEmu based scripts (X-Team S17, MuDevs S18).

Isinulat ng MuADMINS
Nakatulong ba ito?

Naipit pa rin? Maghanap sa MuGPS Magtanong sa MU Assistant

MuADMINS Community Alpha: libre, gawa ng komunidad, at patuloy na dine-develop.