Thread: need help

Results 1 to 8 of 8
  1. #1 need help 
    Registered Member
    Join Date
    Nov 2014
    Posts
    9
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    okay, can someone tell me how to make it so , if you tele somewhere so it's not let you trade with someone?
    I mean both command tele and spellbook tele ;c
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Aug 2012
    Age
    30
    Posts
    139
    Thanks given
    13
    Thanks received
    17
    Rep Power
    0
    Don't understand? So example your trading someone and you did like ::train and you're still in trade?
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Nov 2014
    Posts
    9
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Legitz View Post
    Don't understand? So example your trading someone and you did like ::train and you're still in trade?
    like u ask someone to trade with you, after this u gonna do like ::train and then you will fast click "trade button", so it's will open trade but closing other guy trade screen. I'm 50% sure its way to dupe ;c
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Aug 2012
    Age
    30
    Posts
    139
    Thanks given
    13
    Thanks received
    17
    Rep Power
    0
    Try this?

    Player.java make sure you got this

    Code:
    public boolean inTrade;
    tradeandduel.java and find:
    Code:
    public void openTrade() {
    after you find it, Add

    Code:
    c.inTrade = true;
    if you dont already have it there,

    then go to playerassistant.java and find:

    Code:
    public void startTeleport(int x, int y, int height, String teleportType) {
    afteryou found it, add this under it:
    Code:
    if (c.inTrade) {
    c.sendMessage("Please finish the trade first.");
    return;
    }
    goodluck
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Nov 2014
    Posts
    9
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Legitz View Post
    Try this?

    Player.java make sure you got this

    Code:
    public boolean inTrade;
    tradeandduel.java and find:
    Code:
    public void openTrade() {
    after you find it, Add

    Code:
    c.inTrade = true;
    if you dont already have it there,

    then go to playerassistant.java and find:

    Code:
    public void startTeleport(int x, int y, int height, String teleportType) {
    afteryou found it, add this under it:
    Code:
    if (c.inTrade) {
    c.sendMessage("Please finish the trade first.");
    return;
    }
    goodluck
    added everything you say but still you can request trade after you have teled :/ , well request at same time when u gonna start tele :c
    Reply With Quote  
     

  6. #6  
    Registered Member Tylwr's Avatar
    Join Date
    Jul 2012
    Age
    26
    Posts
    478
    Thanks given
    105
    Thanks received
    42
    Rep Power
    15
    hm..distance check?

    (estimated guess, but if you're talking about being in the trade screen, and the player does something like ::home/::train you just add if(c.inTrade) { c.sendMessage("Finish the trade.."); return; }.)
    Attached image
    Quote my post for me to see your reply.
    Discord: tiller#2854

    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Nov 2014
    Posts
    9
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Tylwr View Post
    hm..distance check?

    (estimated guess, but if you're talking about being in the trade screen, and the player does something like ::home/::train you just add if(c.inTrade) { c.sendMessage("Finish the trade.."); return; }.)
    i mean , first they ask someone to trade with them, after this they type like ::home and then fast clicking on trade button, at same time he teleing.
    Reply With Quote  
     

  8. #8  
    Registered Member Tylwr's Avatar
    Join Date
    Jul 2012
    Age
    26
    Posts
    478
    Thanks given
    105
    Thanks received
    42
    Rep Power
    15
    Quote Originally Posted by Kirik View Post
    i mean , first they ask someone to trade with them, after this they type like ::home and then fast clicking on trade button, at same time he teleing.
    Hmm.

    Find wherever it sends the "Blah would like to trade with you" / find the actionbutton id for accepting it and put in something like if(c.teleporting) {
    c.sendMessage("You cannot trade while teleporting!");
    return;
    }
    Attached image
    Quote my post for me to see your reply.
    Discord: tiller#2854

    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. I need help
    By adolfo in forum Tutorials
    Replies: 0
    Last Post: 06-26-2007, 02:58 AM
  2. Need help
    By Saint in forum General
    Replies: 4
    Last Post: 05-20-2007, 02:03 AM
  3. Need help again
    By Zane in forum Showcase
    Replies: 4
    Last Post: 04-02-2007, 09:11 PM
  4. Need help choosing sig
    By Zane in forum Showcase
    Replies: 7
    Last Post: 04-02-2007, 03:14 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •