I've started making a handful of useful Greasemonkey scripts, and the first one I'd like to share is my brick buyer script. If there are at least 100 bricks in stock when you visit Bits 'n' Bobs, you will be prompted with a yes/no pop-up box asking if you want to buy 100.
By TheMerovingian [1612611]
I've started making a handful of useful Greasemonkey scripts, and the first one I'd like to share is my brick buyer script. If there are at least 100 bricks in stock when you visit Bits 'n' Bobs, you will be prompted with a yes/no pop-up box asking if you want to buy 100.
By TheMerovingian [1612611]
I've started making a handful of useful Greasemonkey scripts, and the first one I'd like to share is my brick buyer script. If there are at least 100 bricks in stock when you visit Bits 'n' Bobs, you will be prompted with a yes/no pop-up box asking if you want to buy 100.
I'm sorry, but I guess I'm missing something here. Why can't you just click "buy" and buy 100 bricks that way? There's no need for a script.
Because how many people regularly use the mobile version of Torn all the time? You can't just type in "100" and buy 100 bricks. You have to buy 25 four times, and I've gotten caught a number of times without enough in stock while I'm trying to make the four separate purchases. You don't have to use it, I don't really care. Some people will find this useful, so I shared it. That's the point.
By TheMerovingian [1612611]
I've started making a handful of useful Greasemonkey scripts, and the first one I'd like to share is my brick buyer script. If there are at least 100 bricks in stock when you visit Bits 'n' Bobs, you will be prompted with a yes/no pop-up box asking if you want to buy 100.
By TheMerovingian [1612611]
I've started making a handful of useful Greasemonkey scripts, and the first one I'd like to share is my brick buyer script. If there are at least 100 bricks in stock when you visit Bits 'n' Bobs, you will be prompted with a yes/no pop-up box asking if you want to buy 100.
I'm sorry, but I guess I'm missing something here. Why can't you just click "buy" and buy 100 bricks that way? There's no need for a script.
You can't just type in "100" and buy 100 bricks.
Yes, yes you can
This.
Whatever is in the text box is read by the server. Therefore, typing 100 and it will buy 100.
Just don't use the slider.
Also, you don't seem very fluent in Scripting
A small hint... string.indexOf() will either return false (-1) if no match, or the starting position if a match is found.
Therefore, if it returns zero (0), it is a genuine result.
Whenever you start to check this result, use:
if(string.indexOf('test') != -1) { /* This is true */ } else { /* false */ }
It's more accurate
Ched, Hire me as a developer. Peek my profile!
God watches you have a poo. Serious. _
By TheMerovingian [1612611]
I've started making a handful of useful Greasemonkey scripts, and the first one I'd like to share is my brick buyer script. If there are at least 100 bricks in stock when you visit Bits 'n' Bobs, you will be prompted with a yes/no pop-up box asking if you want to buy 100.
I'm sorry, but I guess I'm missing something here. Why can't you just click "buy" and buy 100 bricks that way? There's no need for a script.
You can't just type in "100" and buy 100 bricks.
Yes, yes you can
This.
Whatever is in the text box is read by the server. Therefore, typing 100 and it will buy 100.
Just don't use the slider.
Also, you don't seem very fluent in Scripting
A small hint... string.indexOf() will either return false (-1) if no match, or the starting position if a match is found.
Therefore, if it returns zero (0), it is a genuine result.
Whenever you start to check this result, use:
if(string.indexOf('test') != -1) { /* This is true */ } else { /* false */ }
It's more accurate
If you want to be all pretentious and "accurate," the way I wrote the script is accurate. I know that indexOf will return -1 on a negative result. Returning 0 means that the string was found matching at the 0th position in the string. However, the strings I am checking for should never occur at the 0th position, therefore I said the result must be greater than 0.
Again, I don't care whatsoever if you want to use my script or not. It works as intended. Greasemonkey scripts are supposed to make things easier or more accessible, which this script does. So you can either appreciate that or move along and not try and infer that I know nothing about scripting.
By TheMerovingian [1612611]
If you want to be all pretentious and "accurate," the way I wrote the script is accurate. I know that indexOf will return -1 on a negative result. Returning 0 means that the string was found matching at the 0th position in the string. However, the strings I am checking for should never occur at the 0th position, therefore I said the result must be greater than 0.
Again, I don't care whatsoever if you want to use my script or not. It works as intended. Greasemonkey scripts are supposed to make things easier or more accessible, which this script does. So you can either appreciate that or move along and not try and infer that I know nothing about scripting.
I wasn't insulting you, please don't insult me.
Yes, you understand arrays and that it starts 0.
Yes your script "works".
I said you didn't seem fluent because you did things the awkward way. My opinion.
The script is good for it's intentions. I agree to that. Unnecessary, but good.
Ched, Hire me as a developer. Peek my profile!
God watches you have a poo. Serious. _
This is telling me how close I am to getting the 2500 award, from zero, not from where I started aiming for this award (from the previous award at the 2000 mark), hence I', not really 97.36% (well I am from zero) towards getting this award, I'm actually only 85% ish towards it, taking my 2000 as my start point towards 2500.
I see all the awards do the same thing..
Which is better?, knowing how far you have come, and how far is to go from your previous award, or how close in total you are...?
This is telling me how close I am to getting the 2500 award, from zero, not from where I started aiming for this award (from the previous award at the 2000 mark), hence I', not really 97.36% (well I am from zero) towards getting this award, I'm actually only 85% ish towards it, taking my 2000 as my start point towards 2500.
I see all the awards do the same thing..
Which is better?, knowing how far you have come, and how far is to go from your previous award, or how close in total you are...?
I think it's better if they all count from 0, then you can look at any award individually the same way regardless of any similar awards.
This is telling me how close I am to getting the 2500 award, from zero, not from where I started aiming for this award (from the previous award at the 2000 mark), hence I', not really 97.36% (well I am from zero) towards getting this award, I'm actually only 85% ish towards it, taking my 2000 as my start point towards 2500.
I see all the awards do the same thing..
Which is better?, knowing how far you have come, and how far is to go from your previous award, or how close in total you are...?
I think it's better if they all count from 0, then you can look at any award individually the same way regardless of any similar awards.
This.
You look at 1000 crimes, and see 50%
Then you look at 2,000 crimes and see 25%.
It makes sense, you have done 500 crimes.
If it reported:
1000 crimes = 50%
2000 crimes = 0%
You would complain that it's broke...
Ched, Hire me as a developer. Peek my profile!
God watches you have a poo. Serious. _
This is telling me how close I am to getting the 2500 award, from zero, not from where I started aiming for this award (from the previous award at the 2000 mark), hence I', not really 97.36% (well I am from zero) towards getting this award, I'm actually only 85% ish towards it, taking my 2000 as my start point towards 2500.
I see all the awards do the same thing..
Which is better?, knowing how far you have come, and how far is to go from your previous award, or how close in total you are...?
I think it's better if they all count from 0, then you can look at any award individually the same way regardless of any similar awards.
This.
You look at 1000 crimes, and see 50%
Then you look at 2,000 crimes and see 25%.
It makes sense, you have done 500 crimes.
If it reported:
1000 crimes = 50%
2000 crimes = 0%
You would complain that it's broke...
But surely the 2000 crimes one is locked?
I'd personally have it count from the previous award, it would make more sense to me. People don't usually look at an individual award, rather the set of them all.Count from the previous also is more likely to give a better indication of what you'll be able to get sooner. Great script though, they all function very well and integrate well.
This is telling me how close I am to getting the 2500 award, from zero, not from where I started aiming for this award (from the previous award at the 2000 mark), hence I', not really 97.36% (well I am from zero) towards getting this award, I'm actually only 85% ish towards it, taking my 2000 as my start point towards 2500.
I see all the awards do the same thing..
Which is better?, knowing how far you have come, and how far is to go from your previous award, or how close in total you are...?
I think it's better if they all count from 0, then you can look at any award individually the same way regardless of any similar awards.
This.
You look at 1000 crimes, and see 50%
Then you look at 2,000 crimes and see 25%.
It makes sense, you have done 500 crimes.
If it reported:
1000 crimes = 50%
2000 crimes = 0%
You would complain that it's broke...
But surely the 2000 crimes one is locked?
Technically, it's not.
It's there from the start, and you can work towards it.
It doesn't become available after completing the 1,000 award.
It's always there. Ready, waiting.
Ched, Hire me as a developer. Peek my profile!
God watches you have a poo. Serious. _
This is telling me how close I am to getting the 2500 award, from zero, not from where I started aiming for this award (from the previous award at the 2000 mark), hence I', not really 97.36% (well I am from zero) towards getting this award, I'm actually only 85% ish towards it, taking my 2000 as my start point towards 2500.
I see all the awards do the same thing..
Which is better?, knowing how far you have come, and how far is to go from your previous award, or how close in total you are...?
I think it's better if they all count from 0, then you can look at any award individually the same way regardless of any similar awards.
This.
You look at 1000 crimes, and see 50%
Then you look at 2,000 crimes and see 25%.
It makes sense, you have done 500 crimes.
If it reported:
1000 crimes = 50%
2000 crimes = 0%
You would complain that it's broke...
But surely the 2000 crimes one is locked?
I'd personally have it count from the previous award, it would make more sense to me. People don't usually look at an individual award, rather the set of them all.Count from the previous also is more likely to give a better indication of what you'll be able to get sooner. Great script though, they all function very well and integrate well.
This was my thoughts.. I look at all the %'s to see which award I'm closer to achieving, so can focus my efforts in that direction, but with all the awards counting from zero, it skews the perception of which is closer..
I still find the script very useful, as I can see all of the targets and my current achievement in one screen, but for me, I'm now ignoring the %'s
Great work on all the other scripts as well... a nice collection.
one AMAZING script would be one to keep track of stats that you SPY ( or the spy results you buy )
i see this as a separate page with "Spy info" with a table that has this columns : names , id's , level , date taken , total stats ... it should also have a link to delete the report ; and the info is also showed in profile page of the spied target .
to enter the spy results you should have a text box and click a button to save the info .
however it's a tricky thing to do ... but would be great.
By j0zeph [1060649]
one AMAZING script would be one to keep track of stats that you SPY ( or the spy results you buy )
i see this as a separate page with "Spy info" with a table that has this columns : names , id's , level , date taken , total stats ... it should also have a link to delete the report ; and the info is also showed in profile page of the spied target .
to enter the spy results you should have a text box and click a button to save the info .
however it's a tricky thing to do ... but would be great.
possible allmighty AquaRegia ?
:D
Sounds like fun, I just joined the army job.
One question though, does the army job spy special look/work the same way as a company spy special?
Follow @TornRPG