Jump to content
  • 0

Assist reward pvp system


ThelwHelpRePaidia

Question

Hello i have a problem with this code i get no errors in eclipse but in game it doesnt work..

to Player.java

if (getParty() != null)
		{
			for (Player p : getParty().getMembers())
			{
				if (Config.Synergy_Class.contains(p.getClassId().getId()) && p.isInCombat() && (Rnd.get(100) <= 90))
				{
					p.sendMessage("You have earned a pvp by supporting " + target.getName());
					p.getPvpKills();
				}
			}
		}


and the config
  
  public static List<Integer> Synergy_Class = new ArrayList<>();


  	String Synergy_Class = customs.getProperty("ClassesSupp", "97");
		String[] atdc_splitted = Synergy_Class.split(",");
		for (String s : atdc_splitted)
		{
			Synergy_Class.add(Integer.valueOf(s));
		}
Link to comment
Share on other sites

Recommended Posts

  • 0
5 minutes ago, camenomat0 said:

legend.

Thank you fans! I love you too. Now the only thing left to do is to put Melron in my fan club also cause he resist!

Link to comment
Share on other sites

  • 0
4 minutes ago, Evie Frye said:

Thank you fans! I love you too. Now the only thing left to do is to put Melron in my fan club also cause he resist!

legend. and legends don't need fan clubs,only haters.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...