Thread: Trade and logout help!

Results 1 to 6 of 6
  1. #1 Trade and logout help! 
    Registered Member Dan Boy's Avatar
    Join Date
    Oct 2013
    Posts
    77
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    Hey I am having this problem on my server where people can dupe by sending trade request, right clicking logout button, and then when the other person accepts the trade they select ok and log out. How do I make it so player are unable to log out when a trade is activated? Also would this fix be placed in public void openTrade? in the tradeandduel.java? Thanks. I also am not exactly sure how I would call the logout method in the selection so if you could show me instead of just telling me that'd be great !
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Apr 2014
    Posts
    869
    Thanks given
    515
    Thanks received
    202
    Rep Power
    0
    if(c.inTrade) {
    return;
    }
    Reply With Quote  
     

  3. #3  
    Registered Member Dan Boy's Avatar
    Join Date
    Oct 2013
    Posts
    77
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    Where would I place that?
    Reply With Quote  
     

  4. #4  
    強い者は生き残る
    Ashpire's Avatar
    Join Date
    Mar 2012
    Age
    27
    Posts
    2,721
    Thanks given
    914
    Thanks received
    1,897
    Rep Power
    2231
    Quote Originally Posted by Dan Boy View Post
    Where would I place that?
    Client.java Destruct and logout
    Attached image
    Reply With Quote  
     

  5. #5  
    Registered Member o Java o's Avatar
    Join Date
    Sep 2014
    Posts
    183
    Thanks given
    14
    Thanks received
    19
    Rep Power
    0
    Quote Originally Posted by Certified View Post
    if(c.inTrade) {
    return;
    }
    Lmao. Do you understand that if the player closes the client window then this piece of code will keep the player logged in?

    OT: you need to make the trade decline as soon as the player logs out/destructs that would be the proper way to do it.




    Reply With Quote  
     

  6. #6  
    Donator

    Jason's Avatar
    Join Date
    Aug 2009
    Posts
    6,092
    Thanks given
    2,402
    Thanks received
    2,823
    Rep Power
    4550
    Preventing a player from logging out during a trade isn't going to resolve the problem. Instead you should be ensuring that when a player does indeed logout, the trade is cancelled and any items are returned. You should also be ensuring that once a certain stage of a trade has been reached, it cannot be repeated.
    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

Similar Threads

  1. Money in trade and moneypouch help!!!
    By O1ltolI6Co in forum Help
    Replies: 15
    Last Post: 11-17-2013, 06:04 PM
  2. Replies: 4
    Last Post: 07-12-2009, 08:57 AM
  3. Deltascape Trade and PM logs, help please!
    By IVI A X W 3 L L in forum Help
    Replies: 2
    Last Post: 07-10-2009, 10:17 AM
  4. magic cape gfx and animation help
    By T-Sex in forum RS2 Server
    Replies: 6
    Last Post: 05-04-2008, 04:29 PM
  5. Global Login and Logout Messages
    By Runite in forum Tutorials
    Replies: 11
    Last Post: 09-19-2007, 04:12 PM
Tags for this Thread

View Tag Cloud

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