Identify items that can be traded to other players in the same instance.
View Single Post
10-24-20, 02:32 AM
A Fallenroot Satyr
Join Date: Apr 2016
How did you search for REFUND_TIME_REMAINING?
If you just search for REFUND_TIME_REMAINING it can't work.
Becuase REFUND_TIME_REMAINING contains %s. If you use string.format %s is a placeholder where we can put the time string.
But if you use REFUND_TIME_REMAINING as a argument for string.find it is now a regex string. And %s matches just one space char.
That's why I used string.format(BIND_TRADE_TIME_REMAINING, ".*"). That replaces %s with .* and .* matches with any string.
View Public Profile
Send a private message to Urtgard
Find More Posts by Urtgard