Thread: devolution v 2,4!!!

Results 1 to 3 of 3
  1. #1 devolution v 2,4!!! 
    Registered Member
    Join Date
    Jul 2008
    Posts
    3,163
    Thanks given
    235
    Thanks received
    74
    Rep Power
    209
    so basically when 2 players trade with each other and one of them decline, then both of them Freezes like they can't move and stuff.

    public void declineTrade(boolean tellOther) {
    RlastSlot = 0;
    TlastSlot = 0;
    closeInterface();
    client other = getClient(trade_reqId);
    if (tellOther && validClient(trade_reqId)) {
    other.sendMessage(playerName + " declined the trade");
    other.declineTrade(false);
    }

    for (GameItem item : offeredItems) {
    if (item.amount < 1)
    continue;
    if (item.stackable) {
    addItem(item.id, item.amount);
    } else {
    for (int i = 0; i < item.amount; i++) {
    addItem(item.id, 1);
    }
    }
    }
    canOffer = true;
    tradeConfirmed = false;
    tradeConfirmed2 = false;
    offeredItems.clear();
    inTrade = false;
    trade_reqId = 0;
    }
    van someone help me pls((
    Reply With Quote  
     

  2. #2  
    Donator

    Anthony's Avatar
    Join Date
    Dec 2007
    Age
    29
    Posts
    1,344
    Thanks given
    198
    Thanks received
    129
    Rep Power
    355
    isnt that liek an Anti Dupe ?
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Aug 2008
    Posts
    492
    Thanks given
    1
    Thanks received
    8
    Rep Power
    10
    try changing other.declineTrade(false); to true
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •