Jump to content
  • 0

[HELP]Character trade disable before level 40 and Mana potion cooldowns


Question

Posted

hi guys is there a way to disable character trade,mail, drop when they create a new char? cause in my friend's server theres starting money when you create new char... Other player will just create account and send the money to their char... So I hope theres a way wherein they have to be level 40 in order to trade..

 

I also want mana potion have cooldowns just like healing potions when they use it because if theres no cooldown... Mage type characters will abuse this so maybe you guys can help with my problems thanks again guys.....

7 answers to this question

Recommended Posts

  • 0
Posted

hi guys is there a way to disable character trade,mail, drop when they create a new char? cause in my friend's server theres starting money when you create new char... Other player will just create account and send the money to their char... So I hope theres a way wherein they have to be level 40 in order to trade..

 

edit the clientpackets

like

AnswerTradeRequest

TradeRequest

...

to not allow players with lvl<40 do it

 

  • 0
Posted

about disable trade for characters

 

go to gameserver\network\clientpackets open TradeRequest.java and add

 

             	if (player.getLevel() < 40)
            	{
            		player.sendMessage("You can't trade");
		sendPacket(new ActionFailed());
            		return;
            	}

	if (partner.getLevel() < 40)
          	{
              		player.sendMessage("You Can't Trade Low Level Character");
              		sendPacket(new ActionFailed());
              		return;
          	}

  • 0
Posted

thanks for this I'll try this later...this is only trade right? what about drop and sending mail ?

 

I try this one I'm not sure if it works can you guys check it?

 

I manage to see it in  RequestDropItem.java

//Players cannot Drop Items before level 40
	if (activeChar.getLevel() < 40)
		activeChar.sendMessage("You cannot drop items until you are level 40");
		activeChar.sendPacket(new SystemMessage(SystemMessageId.NOTHING_HAPPENED));
		return;

 

 

  • 0
Posted

thanks for this I'll try this later...this is only trade right? what about drop and sending mail ?

about drop

 

go to gameserver\network\clientpackets open RequestDropItem.java

 

and add

 

             	if (activeChar.getLevel() < 40)
            	{
            		activeChar.sendMessage("You can't drop item");
		sendPacket(new ActionFailed());
            		return;
            	}

  • 0
Posted

I manage to get it =) mods please lock the topic thanks guys for the help

 

Locked as requested.

Guest
This topic is now closed to further replies.


  • Posts

    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here  https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here  https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here  https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here  https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here  https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
  • 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..