Page 1 of 1

Clan Hall doubt

Posted: Thu Apr 23, 2009 2:42 pm
by gandb
Rules:
EN: CH owner needs adenas in Wharehouse
PT: O dono do CH precisa de adenas no baú.

EN: Is there more rules? In my server, 3 clans lost theirs CH due re-auctions.
PT: Existem mais regras? Em meu servidor 3 clans perderam seus CH por causa de re-leilões.


Reference:
http://l2jserver.com/old-forum/thread.p ... adid=32626

In code below (L2AuctionInstance.java) no need access right to reauction?

Code: Select all

            if (actualCommand.equalsIgnoreCase("confirmAuction"))            {                try                {                    Auction a = _pendingAuctions.get(player.getClan().getHasHideout());                    a.confirmAuction();                    _pendingAuctions.remove(player.getClan().getHasHideout());                }                catch (Exception e)                {                    player.sendMessage("Invalid auction");                }                return;            }
EN: Maybe correct is:
PT: Talvez o correto seja:

Code: Select all

            if (actualCommand.equalsIgnoreCase("confirmAuction"))            {                try                {+                     if (!((player.getClanPrivileges() & L2Clan.CP_CH_AUCTION) == L2Clan.CP_CH_AUCTION))+                     {+                         player.sendMessage("You don't have the right privilleges to do this");+                         return;+                     }                     Auction a = _pendingAuctions.get(player.getClan().getHasHideout());                    a.confirmAuction();                    _pendingAuctions.remove(player.getClan().getHasHideout());                }                catch (Exception e)                {                    player.sendMessage("Invalid auction");                }                return;            }

EN: I had no time to do any test, so Iposted in Server Discussion and not in User Contribuition. But if it makes sense, please move to User Contribuition.
PT: Eu não tive tempo para testar, por isso eu postei aqui em server discussion e não em User Contribuition. Mas se fizer sentido, por favor movam para User Contribuition.

Re: Clan Hall doubt

Posted: Fri Apr 24, 2009 9:18 am
by _DS_
You should NOT apply auction*.sql and clanhall.sql during upgrade, or all clanhalls will be auctioned again.

Re: Clan Hall doubt

Posted: Fri Apr 24, 2009 1:25 pm
by gandb
EN: I belive founded the error.
PT: Eu acredito ter achado o erro.

auction.sql have

Code: Select all

INSERT IGNORE INTO `auction` VALUES (...)
EN: miss:
PT: Falta

Code: Select all

DELETE FROM auction WHERE itemId in (SELECT id FROM clanhall  WHERE ownerId > 0 );

EN: in the end
PT: No final.