Skip to content

TvT addon

Featured Replies

I dont remember if its requested again, searched didnt found anything so i had to make the topic, the addon i am asking for is for interlude tvt (L2j) and i want only the players with at least 1 kill to get rewarded. Is this shared? or any ideas?

Ok so, look at L2JFree TvT Engine, there is config for your request:

 

Code part:

 

public static void rewardTeam(String teamName)

{

for (L2PcInstance player : _players)

{

if (player != null && player.isOnline() != 0 && player.isInEvent(TvTPlayerInfo.class))

{

if (player.as(TvTPlayerInfo.class)._teamNameTvT.equals(teamName) && (player.as(TvTPlayerInfo.class)._countTvTkills > 0 || Config.TVT_PRICE_NO_KILLS))

{

player.addItem("TvT Event: " + _eventName, _rewardId, _rewardAmount, player, true, true);

 

_playerWon = 1;

 

NpcHtmlMessage nhm = new NpcHtmlMessage(5);

TextBuilder replyMSG = new TextBuilder("");

 

replyMSG.append("<html><body>Your team wins the event. Look in your inventory for the reward.</body></html>");

 

nhm.setHtml(replyMSG.toString());

player.sendPacket(nhm);

 

// Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet

player.sendPacket(ActionFailed.STATIC_PACKET);

}

}

}

}

 

L2JFree TvT

 

  • Author

Ok so, look at L2JFree TvT Engine, there is config for your request:

 

Code part:

 

L2JFree TvT

 

i tried to fix it with this but i use l2j not l2j free and it was kinda hard, any other suggestions?

i tried to fix it with this but i use l2j not l2j free and it was kinda hard, any other suggestions?

 

You just have to add few lines, whats wrong.

 

And one more thing, you're quite old member so next time fallow mxc rules before posting.

  • Author

You just have to add few lines, whats wrong.

 

And one more thing, you're quite old member so next time fallow mxc rules before posting.

what i did wrong?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.