L2JMobius

Setting price premium account

Miko · 6 · 1969

Offline Miko

  • Vassal
  • *
    • Posts: 3
Good afternoon! The HighFive version.
Please tell me, is it available in the config to change the price of the premium account?
In the settings of communityboard.ini, it is possible to configure the coin id and the cost of each day.
But I would like to make a fixed price for a certain number of days, for example, for 1 day there would be a price of 30 coins, for 3 days 60 coins, that is, for more days, a certain discount is obtained.
Is it possible to configure this in the configs or only in the server side?


Online BazookaRpm

  • Count
  • *****
    • Posts: 445
  • Lineage II - lover - Heirophant
Hello, how you want to configure it can be done from custom/communityboard.ini, it tells you what price it has per day and what item is needed. On the other hand, if you configure it by customizing it to your needs, you must also modify the corresponding HTML so that both texts match.


Config/custom/comunityboard
Code: [Select]
# ItemID for buying premium in community board.
# Check data/html/CommunityBoard/Custom/premium/main.html
CommunityPremiumBuyCoinId = 57

# Amount of coins needed for each premium day bought.
CommunityPremiumPricePerDay = 1000000



Game/data/HTML/comunityboard/custom/premium/main.html

Code: [Select]
<!-- // example _bbspremium;1,2, (first number: day count; second number: Price -->
<tr>
<td align=center><button value="1 Day [Price 1kk]" action="bypass _bbspremium;1" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td align=center><button value="3 Day [Price 3kk]" action="bypass _bbspremium;3" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td align=center><button value="7 Day [Price 7kk]" action="bypass _bbspremium;7" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
</tr>
<tr>
<td align=center><button value="15 Day [Price 15kk]" action="bypass _bbspremium;15" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td align=center><button value="20 Day [Price 20kk]" action="bypass _bbspremium;20" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td align=center><button value="30 Day [Price 30kk]" action="bypass _bbspremium;30" width=140 height=27 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>


Atte BazooKa.RPM

Lineage II Lovers


Offline Miko

  • Vassal
  • *
    • Posts: 3
In this case, the value of CommunityPremiumPricePerDay will be multiplied by the amount in the value of bypass: bypass _bbspremium;3, that is, the value with some discount will not be reached.
For example, the value of CommunityPremiumPricePerDay will be 10, then for bypass _bbspremium;1 - the cost will be 10, and for bypass _bbspremium;3 - the cost will be 30, and I want to find out how to get a fixed cost for bypass _bbspremium;3 - for example, it will be 20.


Offline CostyKiller

  • Distinguished King
  • *****
    • Posts: 1274
Edit the handler to what you need, find _bbspremium in homeboard.java


Online BazookaRpm

  • Count
  • *****
    • Posts: 445
  • Lineage II - lover - Heirophant
Now in homeboard.java you can configure many things, what I tried was to add verification that premium users could use the teleport, merchant, buffer, teleport, but for some reason I managed to generate this instance, maybe I should check it from the base of sql data, but I will try again, I am already on the third attempt, I'm not a programmer, but I learn from trial and error.
Atte BazooKa.RPM

Lineage II Lovers