Signup Now
Results 1 to 1 of 1
  1. #1
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,437
    Reputation
    309
    Rep Power
    29

    sellitemsmarket hangs after if running for longer than 60s

    When calling sellitemsmarket with a relatively high amount parameter (3500~, according to my tests) it hangs after exactly (approximately) 60 seconds, while trying to scroll to the desired amount on the Tibia GUI, even when setting insanely high lifetime duration.

    Example Code:
    setlifetime(6^9) -- 10,077,696ms
    sellitemsmarket('drill bolt', 14, 3755, true)


    Debug Console Output #1:
    Code:
    17:56:27.423 Event 15 issued. Type: Market Trade, IsBuy: 0 ItemId: 16142 Price: 14 Amount: 3755 Anonymous: 1 TradeWith:  ItemName: drill bolt
    17:56:27.423 Event 15 started.
    17:56:27.423 Event step changed to 26.
    17:56:27.423 Pressed 68 1 0
    17:56:27.455 Pressed 82 1 0
    17:56:27.487 Pressed 73 1 0
    17:56:27.520 Pressed 76 1 0
    17:56:27.531 Released 68 1 0
    17:56:27.552 Pressed 76 1 0
    17:56:27.563 Released 82 1 0
    17:56:27.585 Pressed 32 1 0
    17:56:27.596 Released 73 1 0
    17:56:27.617 Pressed 66 1 0
    17:56:27.650 Pressed 79 1 0
    17:56:27.661 Released 76 1 0
    17:56:27.683 Pressed 76 1 0
    17:56:27.694 Released 32 1 0
    17:56:27.705 Pressed 84 1 0
    17:56:27.727 Released 66 1 0
    17:56:27.760 Event step changed to 5.
    17:56:27.760 Released 79 1 0
    17:56:27.792 Released 76 1 0
    17:56:27.814 Released 84 1 0
    17:56:27.952 Event step changed to 2.
    17:56:28.318 Event step changed to 13.
    17:56:28.511 Event step changed to 32.
    17:56:28.705 Event step changed to 36.
    17:56:28.705 Pressed 49 1 0
    17:56:28.727 Pressed 52 1 0
    17:56:28.749 Event step changed to 14.
    17:56:28.813 Released 49 1 0
    17:56:28.835 Released 52 1 0
    17:57:30.323 Event 15 ended with status code 1 at step 14.
    Debug Console Output #2:
    Code:
    18:00:15.177 Event 17 issued. Type: Market Trade, IsBuy: 0 ItemId: 16142 Price: 14 Amount: 3755 Anonymous: 1 TradeWith:  ItemName: drill bolt
    18:00:15.177 Event 17 started.
    18:00:15.177 Event step changed to 26.
    18:00:15.177 Pressed 68 1 0
    18:00:15.209 Pressed 82 1 0
    18:00:15.242 Pressed 73 1 0
    18:00:15.275 Pressed 76 1 0
    18:00:15.285 Released 68 1 0
    18:00:15.308 Pressed 76 1 0
    18:00:15.318 Released 82 1 0
    18:00:15.340 Pressed 32 1 0
    18:00:15.350 Released 73 1 0
    18:00:15.370 Pressed 66 1 0
    18:00:15.392 Pressed 79 1 0
    18:00:15.414 Released 76 1 0
    18:00:15.425 Pressed 76 1 0
    18:00:15.447 Released 32 1 0
    18:00:15.447 Pressed 84 1 0
    18:00:15.480 Released 66 1 0
    18:00:15.491 Event step changed to 5.
    18:00:15.502 Released 79 1 0
    18:00:15.535 Released 76 1 0
    18:00:15.557 Released 84 1 0
    18:00:15.688 Event step changed to 2.
    18:00:16.238 Event step changed to 13.
    18:00:16.433 Event step changed to 32.
    18:00:16.628 Event step changed to 36.
    18:00:16.628 Pressed 49 1 0
    18:00:16.649 Pressed 52 1 0
    18:00:16.682 Event step changed to 14.
    18:00:16.736 Released 49 1 0
    18:00:16.758 Released 52 1 0
    18:01:17.161 Event 17 ended with status code 1 at step 14.
    Note: the final entry was only issued after I manually closed the market window. It had already stopped increasing the amount.
    Last edited by Raphael; 01-20-2016 at 08:29 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
  •