Jump to content
  • 0

[HELP]How to fix trade bug


Question

9 answers to this question

Recommended Posts

  • 0
Posted

Katarxin prepei na kaneis compile to pack sou.

 

Epita na mathis java kai na peraseis auto to code :

 

clientpackets.TradeRequest.java (about line 125)


+        if (partner.getAllowTrade() == false)
+       {
+        	player.sendMessage("Target is not allowed to receive more than one trade request at the same time.");
+        	return;
+        }
+        partner.setAllowTrade(false);
+        player.setAllowTrade(false);
	player.onTransactionRequest(partner);
	partner.sendPacket(new SendTradeRequest(player.getObjectId()));
	SystemMessage sm = new SystemMessage(SystemMessageId.REQUEST_S1_FOR_TRADE);
	sm.addString(partner.getName());
	player.sendPacket(sm);




-----------------------------------------------------------

clientpackets.AnswerTradeRequest.java (about line 69)


        L2PcInstance partner = player.getActiveRequester();
        if (partner == null || L2World.getInstance().findObject(partner.getObjectId()) == null)
        {
            // Trade partner not found, cancel trade
		player.sendPacket(new SendTradeDone(0));
            SystemMessage msg = new SystemMessage(SystemMessageId.TARGET_IS_NOT_FOUND_IN_THE_GAME);
            player.sendPacket(msg);
		player.setActiveRequester(null);
+			player.setAllowTrade(true);
+			partner.setAllowTrade(true);
		msg = null;
            return;
        }


-		if (_response == 1) player.startTrade(partner);



+		if (_response == 1)
+			{
+			player.startTrade(partner);
+			partner.setAllowTrade(true);
+			player.setAllowTrade(true);
+			}



	else
	{
		SystemMessage msg = new SystemMessage(SystemMessageId.S1_DENIED_TRADE_REQUEST);
		msg.addString(player.getName());
		partner.sendPacket(msg);
+			player.setAllowTrade(true);
		msg = null;
	}




------------------------------------------

L2PcInstance.java (about line 497)

    private int _apprentice = 0;
    private int _sponsor = 0;

+    public boolean _allowTrade = true;
    
private long _clanJoinExpiryTime;
private long _clanCreateExpiryTime;



L2PcInstance.java (about line 8121)


    public void setClanPrivileges(int n)
    {
        _clanPrivileges = n;
    }

+    public boolean getAllowTrade()
+    {
+    	return _allowTrade;
+    }
+    
+    public void setAllowTrade(boolean a)
+    {
+    	_allowTrade = a;
+    }

 

Good Luck.

  • 0
Posted

Nomizw Oti Mporeis Na To Kaneis Kai Alliws...

Alla Dn Eimai s00r Kai Dn To Exw Dokimasei Pote....

An Peta3w Kotsana Peite To....:P

 

Loipon An Anebaseis Tin Wra Tou :"Target is not allowed to receive more than one trade request at the same time."...

Dld Nomizw

Auto Krataei Kapoia Deuterolepta 20-30 Kati Tetoio...

Mporeis Na To Anebaseis Sta 5Min i parapanw Kai Etc O Allos 9 Para3eneutei Tosi Wra Pou 9 Perimenei Kai 9 Fugei....

 

3analew Dn Eimai s00r Pws To Kanoun Auto Giati Apla To Exw Akousei Dn To Exw Dokimasei...

3analew(2) An Peta3a Kotsana Peite To

  • 0
Posted

gt afto pou les an mporo na katalavw kala dn ginete dld na valeis to trade tou gracia final se ti?? IL Gracia PT2?? 9a xalasei kati allo meta an kaneis afto :S

 

  • 0
Posted

Nomizw Oti Mporeis Na To Kaneis Kai Alliws...

Alla Dn Eimai s00r Kai Dn To Exw Dokimasei Pote....

An Peta3w Kotsana Peite To....:P

 

Loipon An Anebaseis Tin Wra Tou :"Target is not allowed to receive more than one trade request at the same time."...

Dld Nomizw

Auto Krataei Kapoia Deuterolepta 20-30 Kati Tetoio...

Mporeis Na To Anebaseis Sta 5Min i parapanw Kai Etc O Allos 9 Para3eneutei Tosi Wra Pou 9 Perimenei Kai 9 Fugei....

 

3analew Dn Eimai s00r Pws To Kanoun Auto Giati Apla To Exw Akousei Dn To Exw Dokimasei...

3analew(2) An Peta3a Kotsana Peite To

 

Petaxses kotsana gt ama exei parapanw ora dn allazei tpt aplos tha perimenei parapanw...

vsk na po kati ??  gt na min mporoume na perasoume tou gracia final to trade  an 8umamai dn piani stous gracia final

Ontos stous final einai fix (exw final gi auto) alla afou exei dosei to fix gt psaxneis alla?

  • 0
Posted

Petaxses kotsana gt ama exei parapanw ora dn allazei tpt aplos tha perimenei parapanw...Ontos stous final einai fix (exw final gi auto) alla afou exei dosei to fix gt psaxneis alla?

 

Koita3e Egw Dn Eipa Apo 10Sec Na Krataei To Trade Na To Kanei 15sec.....

Eipa Na To Alla3ei Kai Na To Balei 5-10min....

Dn Nmz Oti O Allos 9 Einai Tooooso Blakas Pou Na Perimenei Toso..

tCp Dn 9 to sunexisw mia gnwmi eipa..p dn eimai kai 100% s00r

  • 0
Posted
Χρησιμοποιήσε L2DOT, αν δεν κάνω λάθος το συγκεκριμένο bug είναι φτιαγμένο.

 

exeis apolito dikio XxRxX eixa l2dot pack k dn mporousan na kanoun afto to bug tora an to eixan fi3arei alli dn 3erw pantws dn litourgouse!!

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

    • <dailyReward days="28" autoOpen="true" minimumOnlineTimeSeconds="30" oneRewardPerIP="true" resetIfMissDay="true">   For now, I have these settings in the XML—this is the V1 version I created, though I plan to make further improvements over time. Of course, I’ll also add more protections—MAC, HWID, and perhaps others like account-based restrictions—to make it more secure. We can also implement non-tradable items to further enhance the system's security. I’ll keep posting updates and refining both the system and the interface. I might make a video tomorrow; if you look at the top, you'll see the "auto-open" feature can be toggled on or off, allowing users to rely solely on the `.daily` command. Cheers! Note: If I sell it in this state, I’ll provide support and roll out updates to users. I’m not forcing anyone to buy anything; I’d even provide the patch files so that anyone with the necessary skills can add features, modify it, or improve it further.
    • If the problem is that the target is lost, the action of aiming at another character, upon losing collision, does not allow aiming.   This one works as it should, allowing you to target characters
    • MICROTEXT AND WATERMARKS BREAK MOST RENDERINGS Microtext and watermarks aren’t just small decorative details. They are one of the most common reasons a document fails verification, even when it looks decent at first glance. The issue is that these elements are almost impossible to reproduce “by eye.” Microtext requires precise geometry and legibility at a very small size, while a watermark needs the correct density, transparency, and accurate placement relative to other security features. Any deviation becomes obvious during detailed inspection. ▪ What’s most often done wrong: - microtext is drawn too thick or blurry - the watermark is made either too visible or almost invisible - the positioning between microtext and watermark is ignored - the original printing technology isn’t taken into account when choosing density and shape - The stronger the document’s security features, the less room there is for approximation. What matters here isn’t visual similarity, but accurate reproduction of the original technical characteristics. If your document contains microtext and watermarks, this is always an area that requires extra attention. Write to us in DMs. We’ll review your case and point out exactly which details need the highest precision during rendering. › TG: @mustang_service_ms ( https:// t.me/ mustang_service_ms ) › Channel: Mustang Service ( https:// t.me/ +JPpJCETg-xM1NjNl ) #drawing #microtext #photoshop #editing #watermarks
    • GoldRush launches tomorrow! July 18 16:00 GMT+3 Europe / International Register your account in the website, connect wallet and be ready to dominate!
  • Topics

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