Welcome to RUSaCis - эмулятор Interlude

Присоединяйтесь к нам прямо сейчас, чтобы получить доступ ко всем нашим возможностям. После регистрации и входа в систему вы сможете создавать темы, публиковать ответы в существующих темах, давать репутацию пользователям - так же приобрести исходный код. Это также быстро, так чего же вы ждете?

Vote System (VDS) for RUSaCis 3.5/3.6

FerdSNP

Бродяга
INTERLUDE
Регистрация
1 Дек 2023
Сообщения
15
Реакции
7
Баллы
3
RaCoin
0
Some time ago, I asked the developer of the system (nightw0lf) to adapt the system for RUSaCis. After some testing and debugging, the system is now almost 100% functional, except for l2jbrasil and l2network, for which I am waiting for responses from both tops' developers. A small modification needs to be made to the original code in VoteCMD.java for it to deliver the reward
Patch: https://pastebin.com/YJ0jSR0p
java/hopzone/eu/command/VoteCMD.java:
diff --git java/hopzone/eu/command/VoteCMD.java java/hopzone/eu/command/VoteCMD.java

if (Random.get(100) < chance || chance >= 100)

{

// reward item

  -  player.addItem(TOPSITE, itemId, count, player, true);

  +  player.addItem(itemId, count, true);



}

}
I hope it is useful
 
Сверху Снизу