Thread: adding a timer after trade?

Results 1 to 5 of 5
  1. #1 adding a timer after trade? 
    .supersyn

    myK-'s Avatar
    Join Date
    Aug 2008
    Posts
    1,781
    Thanks given
    22
    Thanks received
    40
    Rep Power
    399
    Forget ittt.
    Reply With Quote  
     

  2. #2  
    Registered Member Dart Zamaki's Avatar
    Join Date
    Oct 2008
    Posts
    78
    Thanks given
    0
    Thanks received
    0
    Rep Power
    42
    1. Add this at like the top of the script (UNDER the public class name)
    Code:
     
    public byte tradeTimer = 20; //Keep from using so much memory!
    2. in the process void, add this
    Code:
    if (tradeTimer < 19) {tradeTimer += 1;}

    3. Find the trade packet, at the line under it, add this
    Code:
    if (tradeTimer >= 20) {
    at the end of the packet add this
    Code:
    }

    Now that should work. (I will look at this post again. to make sure)

    I know process timers maybe not the best choice because of event manager, but in this case, it wont be too bad...
    Reply With Quote  
     

  3. #3  
    .supersyn

    myK-'s Avatar
    Join Date
    Aug 2008
    Posts
    1,781
    Thanks given
    22
    Thanks received
    40
    Rep Power
    399
    Didn't work.
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Mar 2008
    Age
    32
    Posts
    749
    Thanks given
    18
    Thanks received
    31
    Rep Power
    130
    IDK what source you are using, but, with my DS source i just used the lastaction timers... Worked nicely. Im not going to give you exact code just search through and you will see it.
    Message me for a DETAILED security scan of your website.
    Reply With Quote  
     

  5. #5  
    .supersyn

    myK-'s Avatar
    Join Date
    Aug 2008
    Posts
    1,781
    Thanks given
    22
    Thanks received
    40
    Rep Power
    399
    Quote Originally Posted by swiftymcfeat View Post
    IDK what source you are using, but, with my DS source i just used the lastaction timers... Worked nicely. Im not going to give you exact code just search through and you will see it.
    I alredy tried to use that, for a 20 second thing.

    And no one could trade at all.
    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
  •