Jump to content

Recommended Posts

Posted

ayto edw einai ena npc opoy kani ta PvP coins kai to antistrofo

 

shot00002aa.jpg

 

shot00004q.jpg

 

Download

 

create on  net.sf.l2j.gameserver.model.actor.instance       L2PVPManagerInstance.java
=====================================================================================

package net.sf.l2j.gameserver.model.actor.instance;

import net.sf.l2j.gameserver.network.serverpackets.NpcHtmlMessage;
import net.sf.l2j.gameserver.templates.chars.L2NpcTemplate;

public class L2PVPManagerInstance extends L2NpcInstance
{
public L2PVPManagerInstance(int objectId, L2NpcTemplate template)
{
	super(objectId, template);
}

@Override
public void onBypassFeedback(L2PcInstance player, String command)
{
	int itemId = 25000; // item id 
	int itemA-beep-t = 100; // A-beep-t of items that will give or give
	int pvpA-beep-t = 100; // A-beep-t of pvps to take or give
	final String[] subCommand = command.split("_");

	if (player == null )  return;


	if (command.startsWith("pvpToCoin"))
	{
		if (player.getPvpKills() >= pvpA-beep-t)
		{
			player.setPvpKills(player.getPvpKills() - pvpA-beep-t);
			player.addItem("pvpToCoin", itemId, itemA-beep-t, player, true);
			player.broadcastUserInfo();
		}
		else
			player.sendMessage("Not enough PvPs.");
	}
	else if (command.startsWith("coinToPvp"))
	{
		if (player.getInventory().getItemByItemId(itemId).getCount() >= itemA-beep-t)
		{
			player.setPvpKills(player.getPvpKills() + pvpA-beep-t);
			player.destroyItemByItemId("coinToPvp", itemId, itemA-beep-t, player, true);
			player.broadcastUserInfo();
		}
		else
			player.sendMessage("Not enough coins.");
	}
	else if(command.startsWith("Chat"))
	{
		if(subCommand[1].isEmpty() || subCommand[1] == null) return;
		NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
		html.setFile("data/html/default/"+subCommand[1]);
		html.replace("%objectId%", String.valueOf(getObjectId()));
		player.sendPacket(html);
	}
}
}


create html    on data/html/default               102.htm
===============================================================================
<html>
<head>
	<title>PvP Shop Manager</title>
</head>
<body>
<tr>
<center><img src="L2UI_CH3.inventory_outline_over" width=0.1 height=20></center>
</tr>
<center><img src="sek.gui001" width=258 height=64.2></center>
<br>
<center><font color="LEVEL">Hello strainger </font></center>
<tr>
<br>
<center><img src="L2UI_CH3.inventory_outline_over" width=100 height=3></center>
</tr>
<br>
<br>
<tr><td></td></tr>
<center><button value="Exchange" action="bypass -h npc_%objectId%_Chat_104-2.htm" width=88 height=15 back="l2ui.SystemWindowButton" fore="l2ui.SystemWindowButton_click"></td>
<tr><td></td></tr>
<br>
<br>
<tr>
<center><img src="L2UI_CH3.inventory_outline_over" width=100 height=3></center>
</tr>
<tr>
<center><img src="L2UI_CH3.inventory_outline_over" width=0.1 height=10></center>
</tr>
<center><font color="fcd209">Lineage II Pirama</font></center>
<br>
<center><img src="sek.ui03" width=210 height=50></center>
<center><font color="fcd209"></font></center>
</body>
</html>

create html     102-1.htm
===============================================================================

<html><title>PvP Shop Manager</title>
<body>
<br>
<br>
<center><font color="LEVEL">Exchange Your PvP : 100 PvP = 100 PvPCoin's</font></center><br><br>
<tr><td></td></tr>
<tr>
<center><img src="L2UI_CH3.inventory_outline_over" width=100 height=3></center>
</tr>
<br>
<center><button value="Get Coin's" action="bypass -h npc_%objectId%_pvpToCoin" width=88 height=15 back="l2ui.SystemWindowButton" fore="l2ui.SystemWindowButton_click"></td>
<tr><td></td></tr>
<br>
<tr><td></td></tr>
<center><button value="Get PvP's" action="bypass -h npc_%objectId%_coinToPvp" width=88 height=15 back="l2ui.SystemWindowButton" fore="l2ui.SystemWindowButton_click"></td>
<tr><td></td></tr>
<br>
<tr>
<br>
<center><img src="L2UI_CH3.inventory_outline_over" width=100 height=3></center>
</tr>
<br>
<br>
<br>
<tr><td></td></tr>
<center><button value="Return" action="bypass -h npc_%objectId%_Chat _104.htm" width=88 height=15 back="l2ui.SystemWindowButton" fore="l2ui.SystemWindowButton_click"></td>
<tr><td></td></tr>
</body></html>

create sql file
=========================================================================

INSERT INTO `npc` VALUES ('102','31324','Trader','1','PvP Trade','1','NPC.a_casino_FDarkElf','8.00','23.00','70','female','L2PVPManager','40','3862','1493','11.85','2.78','40','43','30','21','20','10','0','0','1314','470','780','382','278','333','0','0','55','132','0','7','0');


ayta edw ta bazete sto system sto arxio   ectitemgrp
=========================================================================

2	25000	0	5	4	1	0	DropItems.coin_m00			DropItemsTex.coin_t00	DropItemsTex.coin_t01		icon.etc_adena_i00					0	0	3	0	0	1		1		ItemSound2.itemdrop_etc_money_2		3	0	0


ayta edw ta bazete sto system sto arxio      itemname-e
==========================================================================
25000	PvPCoin's		a,	-1	a,	a,	a,	a,	0	0	0	a,


Server\gameserver\data\xml\items   25000-25001.xml
===========================================================================

<?xml version="1.0" encoding="UTF-8"?>
<list>
<item id="25000" type="EtcItem" name="PvPCoin">
	<set name="material" val="gold" />
	<set name="price" val="1" />
	<set name="is_stackable" val="true" />
</item>
</list>

 

 

Credits: valanths1990  ( gia ton code )

Credits: Me ( gia ta ypolipa :P)

 

 

 

  • 3 months later...
Posted

nai mporis na balis enan trader kai na ta xrisimopihsis ... apla anti sta multisell na exeis ta adena bazis ta pvp coin ...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • aCis (“another Crappy interlude server”) is a commercial project I would not use even if paid. l2jfrozen yes, a 10 year old, effectively dead project produces more reliable results and at least works. l2jhellas also works. aCis might as well be renamed KPMIS (“Keep Paying My Interlude Server”): endless fixes, freemium, and no realistic path to true L2OFF parity, but its recommended like hell. lucera is even better the downside is you just need to dive into code and no sources   lets leave it at that
    • Download Here: https://sitehunterus.blogspot.com/2025/12/exelo-combo-tool-v2.html VirusTotal https://www.virustotal.com/gui/file/2acd067847ee092c7986f55c9f77620d89505d1c0bda34a0ee8f55b9c2905c11?nocache=1 Visit my Blogger list to download 100% free software https://www.freetoolss.com/ https://blackhat8.blogspot.com/ https://hack-crack9.blogspot.com/ https://hackernoons.blogspot.com/ https://sharetools99.blogspot.com/
    • Care to detail why ?   L2JHellas probably got the same issue, it's inherent to L2J if you don't rework Player intentions (and solving it with a Config < 500 attack is stupid, if it works for attack it works for other types of desires), also last time I checked L2JHellas he was using my changesets to fix its own stuff (which is ok, copy-paste my knownlist system which is 10y old is fine, but don't say it will act different since it's literally the same sub-system).   About Lucera code source isn't available so it's easy to say it's better, internally you got no clue what is happening and RU forks got the "feeling" to get everything, but everything is half done, everytime I put an eye on such sources (whatever based on l2ru, they only know how to copy-paste each other).   In the other hand, you seem to use aCis since years (I think I see your name since a decade, and you still use it since you made this topic :   Be a little more appreciative about the work done, it's not only mine but my community aswell, and if you find something, consider to report rather than getting such an idiotic behavior.   I understand you're not forced to share any type of fixes, and than people tend to feel superior when they fix something than aCis didn't yet fix. The thing is, for each bug you found, I found and fixed 10x more than you.   409 is way beyond 382 in all possible ways, if you believe the versus good for you, but don't make ppl believe it's the case, because it's not. There's at least 400+ fixed issues (and that's counting 10 issues by revision, which is kinda low) and entire new systems (spawns, SCHs, pathfind, whole AI implemented, Desire system,...).
    • better than using 409... Search for L2jHellas or Lucera and you won't have any headaches.
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock