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.


×
×
  • Create New...