Jump to content

alexmaghym

Members
  • Posts

    5
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by alexmaghym

  1. On 4/8/2020 at 6:44 AM, An4rchy said:

    Привет.

     

    Что касается вашей проблемы с XML, она не используется в этом коде, за исключением таблицы значков, которая может предоставить вам исправление / помощь. Но IXmlReader гораздо проще, чем предыдущие методы чтения XML (всегда в aCis). Попробуйте увидеть некоторые примеры в datatables.xml.

     

    Что касается ограничения на количество предметов, которые можно добавить в магазин, то можно просто добавить метод в AuctionTable, чтобы узнать, сколько предметов у игрока на аукционе, например:

     

    https://pastebin.com/XANukcpm

     

    Затем просто добавьте проверку в  else if (command.startsWith ("addit2"))

    проверить, превысил ли игрок лимит: if (AuctionTable.getInstance (). getNumberOfAuctions (player)> = YOUR_LIMIT

     

     

    my English is not very good ((( thanks a lot !!!

    but

    I want the auction to have only certain items in inventory.

    For example - armor weapons jewelry
     

     

     


    Error: for (AuctionItem item : items)

    Error: Can only iterate over an array or an instance of java.lang.Iterable

     

    1.     public int getNumberOfAuctions(Player player)
    2.     {
    3.         int i = 0;
    4.         for (AuctionItem item : items)
    5.             if (item.getOwnerId() == player.getObjectId())
    6.                 i++;
    7.         return i;
    8.     }

     

     

     

    Сan tell me a piece of code: to charge for the services of an auction?

    For example, adena

     

     


  2. Hi guys.
    Sorry for my English.
    My Java is bad too.))


    I am using 382 aCis.

    There is no XMLDocumentFactory.java 

    (which, as I understand it, is used for parsing icons for an auction.)

    ACis 382 have IXmlReader.java method

    is there an option to use IXmlReader.java?.

    Pulled with (368)
    XMLDocumentFactory.java.  the norm works


    And please tell me.
    How to limit items allowed for sale at auctions?

×
×
  • Create New...