talythan Posted September 28, 2015 Share Posted September 28, 2015 I have a dicing script that does commands when you use a "!" for example !roll,!flower,!dd etc so for example right now when a player does the command !roll, the bot will say "username rolled a 58 on the percentile dice". But I would like there to be a timestamp at the end which reads: "[username] rolled a [58] on the percentile dice @ [04:23:12]" also if you could include the parenthesis like that it would be very helpful too! Since this is a small fix, im willing to pay 5m osrs/$5, negotiable! Quote Link to comment Share on other sites More sharing options...
Vag Posted September 28, 2015 Share Posted September 28, 2015 Add me on skype. VAG.RS I will do this. Quote Link to comment Share on other sites More sharing options...
IBotILive Posted September 28, 2015 Share Posted September 28, 2015 im very interested in seeing how this works, please send me a snippet in pm Quote Link to comment Share on other sites More sharing options...
talythan Posted September 28, 2015 Author Share Posted September 28, 2015 im very interested in seeing how this works, please send me a snippet in pm Erm, seems i can't PM you haha Quote Link to comment Share on other sites More sharing options...
IBotILive Posted September 28, 2015 Share Posted September 28, 2015 ahh why not? post link then? Quote Link to comment Share on other sites More sharing options...
fixthissite Posted September 29, 2015 Share Posted September 29, 2015 PM me if you still need help Quote Link to comment Share on other sites More sharing options...
talythan Posted September 30, 2015 Author Share Posted September 30, 2015 PM me if you still need help PM'd Quote Link to comment Share on other sites More sharing options...
talythan Posted October 2, 2015 Author Share Posted October 2, 2015 BUMP - I will buy a new script if needed. Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted October 2, 2015 Share Posted October 2, 2015 BUMP - I will buy a new script if needed. Feel free to hit me up Quote Link to comment Share on other sites More sharing options...
Chicken Wing Posted October 2, 2015 Share Posted October 2, 2015 Wait someone still hasn't helped this guy? Quote Link to comment Share on other sites More sharing options...
fixthissite Posted October 2, 2015 Share Posted October 2, 2015 (edited) Wait someone still hasn't helped this guy? I did via PM. For anyone else who wants to know: Create a new SimpleDateFormat object: SimpleDateFormat formatter = new SimpleDateFormat("hh:mm:ss"); Each time you want a new timestamp, simply format a new Date object: String time = formatter.format(new Date()); This is not thread-safe. Let me know if someone needs a thread-safe alternative. Edited October 2, 2015 by fixthissite 2 Quote Link to comment Share on other sites More sharing options...
talythan Posted October 5, 2015 Author Share Posted October 5, 2015 Im not a coder myself, but thanks for the help! Quote Link to comment Share on other sites More sharing options...