• Новые темы в этом разделе публикуются автоматически при добавлении файла в менеджер ресурсов.
    Ручное создание новых тем невозможно.
Иконка ресурса

Assist Pvp System

Kishin

Друг форума
Участник
Сообщения
36
Розыгрыши
0
Репутация
20
Реакции
29
Баллы
913
onikage добавил(а) новый ресурс:

Assist Pvp System - PvP Synergy Assist System

Create a new class with name Synergy.java for me it was in com.synergy
though you can use any location you want

Java:
package com.synergy;

import org.l2jmobius.commons.util.Rnd;
import org.l2jmobius.gameserver.enums.ClassId;
import org.l2jmobius.gameserver.model.Party;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage;

import java.util.HashMap;
import java.util.List;

public class Synergy {...

Узнать больше об этом ресурсе...
 

Это скорее система рандомной награды члена группы рядом. По хорошему такую систему надо делать с учетом сделанного вклада в убийство противника, с учетом бафов и хила в момент драки. Да будет нагружать сервер, но зато будет честной
 
  • Мне нравится
Реакции: Rolo
Show Overlords some love, too!

Regarding fairness and server load, you could create an ArrayList with all party members + outside contributors, or basically a dynamic list, and do the reward distribution afterward to all members of that list. The contribution does not have to be calculated at runtime. It could be recalculated/updated every XX milliseconds.
 
Последнее редактирование:
It's more of a system of randomly rewarding a group member nearby. For good, such a system should be done taking into account the contribution made to killing the enemy, taking into account buffs and healing at the time of the fight. Yes, it will load the server, but it will be honest
can't agree more with you atm the system rewards the supporters in list only if they are in range of the corpse ,
as you mention it should count some contribution as amount of heal given / aggro or buffs used of the them next start the handle .
i made it pretty simple and it can get extended as you please:D

Show Overlords some love, too!

Java:
_classes.put(ClassId.DOMINATOR.getId(), new synergyClass(15, 100000));
_classes.put(ClassId.DOOMCRYER.getId(), new synergyClass(15, 100000));
<3
 
Назад
Сверху Снизу