L2JLisvus

Would you like to react to this message? Create an account in a few clicks or log in to continue.

3 posters

    Block trade in combat

    yusuketh
    yusuketh


    Posts : 58
    Join date : 2013-07-12

    Block trade in combat Empty Block trade in combat

    Post  yusuketh 19th October 2013, 10:18

    as was the annoying guy with macro that stood sending trade the middle of pvps and was even more boring in olly, it would be good to add a mod to lock it.
    DnR
    DnR
    Admin
    Admin


    Posts : 1476
    Join date : 2012-12-03
    Age : 34

    Block trade in combat Empty Re: Block trade in combat

    Post  DnR 19th October 2013, 14:45

    yusuketh wrote:as was the annoying guy with macro that stood sending trade the middle of pvps and was even more boring in olly, it would be good to add a mod to lock it.
    There is already a check for a range of 150.
    I guess it happened to you face to face.
    More checks for this would mess trade system, so i' ll probably add trade to /block command.
    Thanks for reporting.
    mystogan64
    mystogan64


    Posts : 51
    Join date : 2013-10-04

    Block trade in combat Empty Re: Block trade in combat

    Post  mystogan64 20th October 2013, 17:06

    go net.sf.l2j.gameserver.clientpackets.TradeRequest.java

    find this lines
    Code:

    L2PcInstance partner = (L2PcInstance) target;
     if (partner.isInOlympiadMode() || player.isInOlympiadMode())
     {
     player.sendMessage("You or your target cant request trade in Olympiad mode.");
     return;
     }
    and paste this below
    Code:

    if (partner.isInCombat())
     {
     player.sendMessage("You can't trade while target is in combat");
     return;
     }
    DnR
    DnR
    Admin
    Admin


    Posts : 1476
    Join date : 2012-12-03
    Age : 34

    Block trade in combat Empty Re: Block trade in combat

    Post  DnR 23rd October 2013, 22:04

    I would avoid doing such a check, because it will have some more restrictions that might be unwanted.
    I altered /block & /allblock commands, so as to block trade, too.

    Thanks a lot for reporting.


    Sponsored content


    Block trade in combat Empty Re: Block trade in combat

    Post  Sponsored content


      Current date/time is 16th October 2024, 21:49