VIP ticket or card

walatea

Vagabond
Customer
Hello, good afternoon, dear Lucera community. I need help creating a ticket to be able to be VIP, not through the NPC itself, but rather through VIP tickets or VIP cards, for 1 hour, 3 hours, 6 hours, or 9 hours. If anyone can help me, I would be super grateful.
 
services.properties
# Предмет дающий Премиум Аккаунт по двойному клику
# Можно добавлять множество предметов:
# PremiumAccountItemHandlerId = 6642, 6643, 6644
# PremiumAccountBonusId = 1, 2, 3 (доступные ID можете брать из config/services_rate_bonus.xml)
PremiumAccountItemEnable = False
PremiumAccountItemHandlerId = 6643
PremiumAccountBonusId = 1
 
What I need is to create a ticket or a letter or something similar to these things that says VIP, and when double-clicking, the VIP is activated; it would not be the same VIP that is purchased in Donate Coin. This letter or ticket would be given to a winner as a prize.
 
What I need is to create a ticket or a letter or something similar to these things that says VIP, and when double-clicking, the VIP is activated; it would not be the same VIP that is purchased in Donate Coin. This letter or ticket would be given to a winner as a prize.
You just need to specify the item ID in services.properties and set the number of days in services_rate_bonus.xml. This item just needs to be double-clicked. And if you want the name "VIP" to appear, you have to edit it in the client.
 
Modificações necessárias:
Passo 1: Criar um item expecifico ou escolher algum ja existente. "data/items"
<etcitem id="9226" name="Premium account" add_name="30 Days">
<!-- [Item premium ] -->
<set name="price" value="1"/>
<set name="class" value="OTHER"/>
<set name="crystal_type" value="NONE"/>
<set name="destroyable" value="false"/>
<set name="icon" value="icon.etc_deco_star_i00"/>
<set name="stackable" value="true"/>
<set name="tradeable" value="True"/>
<set name="dropable" value="false"/>
<set name="type" value="MONEY"/>
</etcitem>

Passo 2: Criar o premium "config/services_rate_bonus"
<rate_bonus id="1" consume_item_id="4037" consume_item_amount="100">
<exp value="1.3" />
<sp value="1.3" />
<exp_raid value="1.3" />
<sp_raid value="1.3" />
<quest_reward value="1.3" />
<quest_adena_reward value="1.3" />
<quest_drop value="1.3" />
<drop_adena value="1.3" />
<drop_items value="1.3" />
<drop_seal_stones value="1.3"/>
<drop_spoil value="1.3" />
<bonus_days value="30" />
<!-- additional reward -->
<!-- <reward item_id="4037" item_count="1" />
<reward item_id="57" item_count="100" />
<name_color value="00FCA0" />
<hwid_limits value="1" />
-->
</rate_bonus>

Passo 3: Configurar em "config/services.properties" para que o item que você criou chame o id do premium e torne a conta premium.

# Item giving a Premium Account by double-clicking
# You can add many items:
# PremiumAccountItemHandlerId = 6633, 6634, 6635
# PremiumAccountBonusId = 1, 2, 3 (available IDs at config/services_rate_bonus.xml)
PremiumAccountItemEnable = True
PremiumAccountItemHandlerId = 9226, 9227, 9228, 9233
PremiumAccountBonusId = 1, 2, 3, 4

Não sei te informar se é possivel fazer apenas 1 horas, acho que não, mas para isso voce pode criar runas com as rates do premium.
 
Back
Top