Paddy299 Posted October 10, 2016 Share Posted October 10, 2016 (edited) Hi Guys! I'm just making a personal fighting script. I want it to loot items by name that is stored in an array. What are your ideas in doing this task. for example you don't want the script to constantly be looting in areas such as the chicken farm because there is much loot to be had there. I thought about creating a timer method so it will only loot for a certain amount of time and not loot again for say 5 minutes. How would you tackle this task!? Edited October 10, 2016 by Paddy299 Quote Link to comment Share on other sites More sharing options...
Jardem Posted October 10, 2016 Share Posted October 10, 2016 do a looter for pking in wildy/pvp worlds, the gp/hr will be a lot better Not allowed on osbot Quote Link to comment Share on other sites More sharing options...
lethalds9 Posted October 10, 2016 Share Posted October 10, 2016 Not allowed on osbot how come? Quote Link to comment Share on other sites More sharing options...
Team Cape Posted October 10, 2016 Share Posted October 10, 2016 Hi Guys! I'm just making a personal fighting script. I want it to loot items by name that is stored in an array. What are your ideas in doing this task. for example you don't want the script to constantly be looting in areas such as the chicken farm because there is much loot to be had there. I thought about creating a timer method so it will only loot for a certain amount of time and not loot again for say 5 minutes. How would you tackle this task!? might want it to do it in the downtime between monsters killed when it's finding another monster to attack. if you want to combine that with your idea, you'd set a variable equal to the current time (once again, when it's finding another monster) and update it each time that you picked up an item. but before picking up an item, you'd make a check too see that the difference between the current time and last pick up time was 5 seconds (or whatever time you want to use). if you need any help, feel free to hit me up because i already know what i'd use to make this. Quote Link to comment Share on other sites More sharing options...
Solzhenitsyn Posted October 10, 2016 Share Posted October 10, 2016 (edited) Think about your problem more. You say: for example you don't want the script to constantly be looting in areas such as the chicken farm because there is much loot to be had there. OK. So think about the conditions which should be true before you begin looting. Time based is almost certainty not how you should approach the problem, but it's easy enough to implement (pseudocode): long nextScheduledTime func scheduler(someDuration, currentSystemTime): return someDuration + currentSystemTime onStart: nextScheduledTime = scheduler(args...) onLoop: if currentSystemTime > nextScheduledTime: nextScheduledTime = scheduler(args...) <suite> Edited October 10, 2016 by Solzhenitsyn Quote Link to comment Share on other sites More sharing options...
Mr Pro Pop Posted October 10, 2016 Share Posted October 10, 2016 (edited) Not allowed on osbot huh.. Edited October 10, 2016 by Mr Pro Pop Quote Link to comment Share on other sites More sharing options...
Jardem Posted October 10, 2016 Share Posted October 10, 2016 (edited) huh.. pk looting is not allowed? a script that does it ? Edited October 10, 2016 by Gardon Quote Link to comment Share on other sites More sharing options...
Mr Pro Pop Posted October 10, 2016 Share Posted October 10, 2016 (edited) pk looting is not allowed? a script that does it ? I am not really sure if it is allowed or not but I don't think it's not allowed. if so he could code and use it privately for his own use. Thanks for replying back to me Edited October 10, 2016 by Mr Pro Pop Quote Link to comment Share on other sites More sharing options...