Jump to content
  • 0

"shout" Chat From Certain Level


Question

4 answers to this question

Recommended Posts

  • 0
Posted

Thanks ! (Used a bit diffrent code, but used your ideas! Tyyy!), maybe someone could help with another chat disabler? If player writes PM for himself, he gets system message, instead of PM (hmm i'll try to explain a bit diffrently > if ( receiver = sender, return false). any ideas :?

 

clientpackets/say2.java

 

if (_target == activeChar)

{

      activeChar.sendMessage("You can't talk to yourself n00b!);

      return;

}

  • 0
Posted (edited)
if (activeChar.getLevel() < 40)
  {
   player.sendMessage("You cannot use shout chat yet");
   return;
  }

In handlers/chathandlers/ChatShout.java

Edited by Gries
  • 0
Posted

Thanks ! (Used a bit diffrent code, but used your ideas! Tyyy!), maybe someone could help with another chat disabler? If player writes PM for himself, he gets system message, instead of PM (hmm i'll try to explain a bit diffrently > if ( receiver = sender, return false). any ideas :?

Guest
This topic is now closed to further replies.


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