Jump to content
  • 0

[Request]Simple code.


Vegas

Question

In many servers you can see members that dont farm and make new account to trade the beggining adena.

 

can someone who love me..code me a protection like You cant Trade in Dual-box or something like that? cause if you do it on ip..Internet Cafe will have problems..

 

:good sir:

 

Thank you all>.>

Link to comment
Share on other sites

Recommended Posts

  • 0

iparxoune kapia atoma pou ftiaxnoune botakia gia adena i kapio custom coin...

den nomizo na 8imonoun epidi den einai sosto afto me ta botakia

 

adena:

sellable: true

dropable: false

destroyable: true

tradeable: false

 

A.adena:

sellable: true

dropable: false

destroyable: true

tradeable: false

__________________

ke telos den ipame na min kanoun genikos trade ke drop... eleos

Etc ke kaneis false sto tradeable ta adena den tha ginonte trade lol file pragmatika ti les?

 

if(!Config.ALLOW_TRADE_FROM_SAMEIP)
        {
        String ip1 = "";
	String ip2 = "";
	L2Object target = L2World.getInstance().findObject(_objectId);
	L2PcInstance player2 = (L2PcInstance) target;

	if (player != null && player.isOnline() != 0)
		ip1 = player.getClient().getConnection().getInetAddress().getHostAddress();
	if (player2 != null && player2.isOnline() != 0)
		ip2 = player2.getClient().getConnection().getInetAddress().getHostAddress();
	if (ip1 == ip2)
	{
		player.sendMessage("You can't trade from the same ip!");
		return;
	}
        }

 

Mono kane ena boolean me ALLOW_TRADE_FROM_SAMEIP kai eisai etoimos dokimaseto kai pes mou...

(ISE APSOGOS) apla efaga paketo iparxei ke mail system ston epilogue...

 

1a xarh an ginete ena code na min se afinei na kaneis create panw apo 1 char thn imera me same ip

Link to comment
Share on other sites

  • 0

Etc ke kaneis false sto tradeable ta adena den tha ginonte trade lol file pragmatika ti les?

(ISE APSOGOS) apla efaga paketo iparxei ke mail system ston epilogue...

 

1a xarh an ginete ena code na min se afinei na kaneis create panw apo 1 char thn imera me same ip

Panw apo interlude dn exw asxolithei pote :P oso gia to deytero otan exw xrono tha to kanw!

 

(btw ekana modify to code kalitera xrhsimopoihse to deytero)

Link to comment
Share on other sites

  • 0

Panw apo interlude dn exw asxolithei pote :P oso gia to deytero otan exw xrono tha to kanw!

 

(btw ekana modify to code kalitera xrhsimopoihse to deytero)

ok thank you for all! ean prolaveis stilto se pm some1 lock it.
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...