Clan Hall doubt

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
gandb
Posts: 19
Joined: Mon Apr 24, 2006 1:55 pm
Location: Brazil

Clan Hall doubt

Post 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.
Image
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Clan Hall doubt

Post by _DS_ »

You should NOT apply auction*.sql and clanhall.sql during upgrade, or all clanhalls will be auctioned again.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
User avatar
gandb
Posts: 19
Joined: Mon Apr 24, 2006 1:55 pm
Location: Brazil

Re: Clan Hall doubt

Post 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.
Image
Post Reply