Skip to content

Voicecommand Problem

Featured Replies

Hello, i am using  acis 367 and i have small problem.

I write VoicedCommandHandler and try .online command, when i try write .online in game its not show online(Zero effects).

 

Here is code:

http://pastebin.com/YxRwszWh

 

 

 

 

Edited by Mellion

Solved by Reborn12

You are missing code from Say2 or ChatAll class, currently there's nothing triggering a voicedcommand.

  • Author

You are missing code from Say2 or ChatAll class, currently there's nothing triggering a voicedcommand.

Can please tell where i need put.

  • Author

Ye i know now, but where change this?

.getKnownList()

  1. +                       for (L2PcInstance player : activeChar.getKnownList().getKnownTypeInRadius(L2PcInstance.class, 1250))

Edited by Mellion

What you mean where change just apply the patch

  • Solution

activeChar.getKnownTypeInRadius(Player.class,1250)) as i remember

  • Author
 Like this yes? bu i think its solved thanks @Reborn12, you are best :)

 

 

      if (!vcd_used)

        {

        if (!FloodProtectors.performAction(activeChar.getClient(), Action.GLOBAL_CHAT))

    return;

        

final CreatureSay cs = new CreatureSay(activeChar.getObjectId(), type, activeChar.getName(), text);

for (Player player : activeChar.getKnownTypeInRadius(Player.class,1250))

{

if (!BlockList.isBlocked(player, activeChar))

player.sendPacket(cs);

}

activeChar.sendPacket(cs);

        }

Edited by Mellion

 

 Like this yes? bu i think its solved thanks @Reborn12, you are best :)
 
 
      if (!vcd_used)
        {
        if (!FloodProtectors.performAction(activeChar.getClient(), Action.GLOBAL_CHAT))
    return;
        
final CreatureSay cs = new CreatureSay(activeChar.getObjectId(), type, activeChar.getName(), text);
for (Player player : activeChar.getKnownTypeInRadius(Player.class,1250))
{
if (!BlockList.isBlocked(player, activeChar))
player.sendPacket(cs);
}
activeChar.sendPacket(cs);
        }

 

problem fixed locked.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.