A Project for Chronicle 4 based on L2JServer.


    Block trade in combat

    Share
    avatar
    yusuketh

    Posts : 58
    Join date : 2013-07-12

    Block trade in combat

    Post  yusuketh on 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.
    avatar
    DnR
    Admin
    Admin

    Posts : 1053
    Join date : 2012-12-03

    Re: Block trade in combat

    Post  DnR on 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.
    avatar
    mystogan64

    Posts : 51
    Join date : 2013-10-04

    Re: Block trade in combat

    Post  mystogan64 on 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;
     }
    avatar
    DnR
    Admin
    Admin

    Posts : 1053
    Join date : 2012-12-03

    Re: Block trade in combat

    Post  DnR on 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

    Re: Block trade in combat

    Post  Sponsored content


      Current date/time is 22nd August 2018, 11:02