Jump to content

Recommended Posts

Posted

Καλησπέρα , όλοι ξέρετε πως οι παίκτες ανοίγουν διπλό παράθυρο και παίρνουν adena.Ειδικά στους pvp servers που ξεκινάνε συνήθως με 100kk και πάνω είναι γελοίο κάποιος να μαζέψει adena, και συνήθως αχρηστεύονται τα adena zones.Ε λοιπόν τί είναι αυτό;Για να βάλει καποιος adena (μονο adena , αν θέλετε το αλλάζετε) στο trade θα πρέπει να έχει κλείσει συνολικά 1 ώρα online .

Η ιδέα από έναν server που δε θυμάμαι το name του... Εύκολο code , αλλά και χρήσιμο.

Θα ήθελα να κάνετε comments για το αν το βρίσκετε χρήσιμο ή αν θα μπορούσα να το βελτιώσω κιάλο.

### Eclipse Workspace Patch 1.0
#P INTERLUDE_GAMESERVER_TEST
Index: java/net/sf/l2j/gameserver/clientpackets/AddTradeItem.java
===================================================================
--- java/net/sf/l2j/gameserver/clientpackets/AddTradeItem.java	(revision 5048)
+++ java/net/sf/l2j/gameserver/clientpackets/AddTradeItem.java	(working copy)
@@ -95,6 +95,14 @@
		}

         TradeList.TradeItem item = trade.addItem(_objectId, _count);
+        if(item.getItem().getItemId() == 57)
+        {
+        	if(player.getOnlineTime() < 3600000)
+        	{
+        		player.sendMessage("You can't add adenas, you must have completed 1 hour online for anti-farm reasons");
+        		return;
+        	}
+        }
         if (item != null)
         {
         player.sendPacket(new TradeOwnAdd(item));
Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(revision 5048)
+++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(working copy)
@@ -2283,6 +2283,11 @@
		_onlineTime = time;
		_onlineBeginTime = System.currentTimeMillis();
	}
+	
+	public long getOnlineTime()
+	{
+		return _onlineTime;
+	}

	/**
	 * Return the PcInventory Inventory of the L2PcInstance contained in _inventory.<BR><BR>

Posted

Poli kali idea re file! Sigekrimena auto to ixa dei ston server tou Krash an thimame kala tin prwti mera pou anikse piga na dosw adena kai tin patisa!

Posted

fovero fovero alla kaneis dn diavazei t code

 

 

dn exei check gia onlinetime mias foras dld mpeneis perimeneis mia ora k meta kaneis trade an fas dc k ksanapeis pali 1 ora perimeneis k genika kathe fora p logaris perimeneis mia ora dn ine gia mia fora

 

 

xrisimopoioise t newbie method file m :)

Posted

fovero fovero alla kaneis dn diavazei t code

 

 

dn exei check gia onlinetime mias foras dld mpeneis perimeneis mia ora k meta kaneis trade an fas dc k ksanapeis pali 1 ora perimeneis k genika kathe fora p logaris perimeneis mia ora dn ine gia mia fora

 

 

xrisimopoioise t newbie method file m :)

κανεις λαθος.. ειναι το συνολικο time που ειναι ο παικτης ονλινε.
Posted

κανεις λαθος.. ειναι το συνολικο time που ειναι ο παικτης ονλινε.

 

are kathe fora p kanei log epd otan vgi midenizete tha prepei n perimenei mia ora gia n kanei trade swsta gt otan t evala ayto ekane s emena k t eftiaksa

Posted

swpa re file esh exeis 1.238 ta 1200 einai nea topic opou zitas voithia...

 

oso gia to code einai polh kalo...

 

exis dikio file den mporo na po den exis dikio alla ama theli to pedi help kai mporo na tou to peraso to code efxarsitos."oso gia to code einai polh kalo.."iparxoune eksipni pou mpori meta 2 weres na kani trade ta adena kalo share alla panta iparxoune kolopeda pou xalane ta pramata

Sorakis ama thelis kiolas sto alazo gia meres na perimeni na kani trade ta adena alla den ksero ama xalsi to kanoniko trade

Posted

Καλησπέρα , όλοι ξέρετε πως οι παίκτες ανοίγουν διπλό παράθυρο και παίρνουν adena.Ειδικά στους pvp servers που ξεκινάνε συνήθως με 100kk και πάνω είναι γελοίο κάποιος να μαζέψει adena, και συνήθως αχρηστεύονται τα adena zones.Ε λοιπόν τί είναι αυτό;Για να βάλει καποιος adena (μονο adena , αν θέλετε το αλλάζετε) στο trade θα πρέπει να έχει κλείσει συνολικά 1 ώρα online .

Η ιδέα από έναν server που δε θυμάμαι το name του... Εύκολο code , αλλά και χρήσιμο.

Θα ήθελα να κάνετε comments για το αν το βρίσκετε χρήσιμο ή αν θα μπορούσα να το βελτιώσω κιάλο.

### Eclipse Workspace Patch 1.0
#P INTERLUDE_GAMESERVER_TEST
Index: java/net/sf/l2j/gameserver/clientpackets/AddTradeItem.java
===================================================================
--- java/net/sf/l2j/gameserver/clientpackets/AddTradeItem.java	(revision 5048)
+++ java/net/sf/l2j/gameserver/clientpackets/AddTradeItem.java	(working copy)
@@ -95,6 +95,14 @@
		}

         TradeList.TradeItem item = trade.addItem(_objectId, _count);
+        if(item.getItem().getItemId() == 57)
+        {
+        	if(player.getOnlineTime() < 3600000)
+        	{
+        		player.sendMessage("You can't add adenas, you must have completed 1 hour online for anti-farm reasons");
+        		return;
+        	}
+        }
         if (item != null)
         {
         player.sendPacket(new TradeOwnAdd(item));
Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(revision 5048)
+++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(working copy)
@@ -2283,6 +2283,11 @@
		_onlineTime = time;
		_onlineBeginTime = System.currentTimeMillis();
	}
+	
+	public long getOnlineTime()
+	{
+		return _onlineTime;
+	}

	/**
	 * Return the PcInventory Inventory of the L2PcInstance contained in _inventory.<BR><BR>

xaxaxaxaxaxxaxaxaxaxaxaxaxaxaxaxax..........

 

[Eng]nice share but in some servers they got gbs-etc...

i think it would be much better if you cancel the trade from traderequest.java :P and add it in dropItem to,maybe they have it True :P anyway its just a opinion GG again  :)

 

Edit:ebala tag sorry mperdeutika sini8isa ta agglika se auto to forum... :P

 

 

Guest Elfocrash
Posted

einai polu pio aplo.apla tha checkarei gia ton xrono kai tha sou epitrepei meta GENIKA to trade.to check gia ta adena einai xazo.

gj btw

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
×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..

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