So I'm an avid programmer and I'd like to upload some of these scripts for anyone that would like to use Rbot but doesn't know how to code in C#.
Scripts:
- Hydra Scales - Lvl 25 Challenge (x300)
- Blade of Awe - Runes Found!
I'll have more... eventually..
Last edited by imbasu; 06-03-2018 at 09:53 PM. Reason: safer code
Nice script - just a quick note, make sure bot.Options.SafeTimings = true; is at the top of every script you use or you are almost guaranteed to get DCd :P
imbasu (06-03-2018)
Seems pretty cool, just a question.
Wouldn't it be simpler to just write
instead ofCode:while(bot.Inventory.Contains("Hydra Scale", 300) == false){ bot.Player.Kill("*"); }
Just asking because I'm also learning to code and it seemed pretty weird to me the way you did it, maybe I'm missing something?Code:while (true) { if (bot.Inventory.Contains("Hydra Scale", 300) == false) { bot.Player.Kill("*"); } else { break; }
Yes it would, and it would be even simpler to write:
There are a few bits and pieces that could be cleaned up in the script but, in terms of functionality, it should work just fine.Code:while(!bot.Inventory.Contains("Hydra Scale", 300)){ bot.Player.Kill("*"); //pickup code etc... }
With the new Hunt function that I have added to the new release (which is pending approval), the script could be simplified to something like this: https://pastebin.com/FiHyKs44
This will, however, kill all of the hydra heads, including the ones with higher health/level. In this case, the 'KillForItem' function is probably better than hunt.
Last edited by rodit; 06-03-2018 at 06:31 PM.
gaffox (06-03-2018)
Thanks for the answer, might try doing some myself to see it's possible to make bots you couldn't normally make with the other trainers.
You're both correct, but in my method of writing other scripts, by force of habit it turned out this way.
For code simplicity sake, I'll update it.Code:while (true) // Outer loop for final items while (condition) // Inner loop for ingredients
I'm currently working on a script to farm for Nulgath Nation House... and eventually the Enchanted vers.
Last edited by imbasu; 06-03-2018 at 07:46 PM.
Another note about your Runes Found script; as a rule of thumb, if the quest item has it's own page on the aqw wiki, it is not a temporary item (i.e. if you go to the quest's page, and see the item required for the quest has a link to its own page, it is not a temporary item) - you therefore only need to call ContainsItem, not ContainsTempItem in this case (as Runes Found is a proper inventory item, not a temporary item). Also, you do not need to check if a drop exists when picking it up - bot.Player.Pickup will just ignore drops that don't exist when called. Nice script though :P
Another note in terms of simplification, you can use bot.Player.KillForItem("Tibicenas", "Runes Found!", 1) to replace your entire while loop. It's a lot more convenient.
There are a few example scripts on how to get a number of items required for the Nulgath Nation house (and the pink diamond star (GuruChest.cs), and musgravite of nulgath (MusgraviteNulgath.cs)) which you could use to help when making your Nulgath Nation House bot.
Last edited by rodit; 06-04-2018 at 05:06 AM.
Dark cyrstal shard bot please
Evolved Blood Orb (Supplies to spin the Wheel of Chance)
This bot only gathers all the materials needed to buy the Evolved Blood Orb pet in /join archportal
- - - Updated - - -
If you've downloaded RBot from rodit's thread you should have a script for DarkCrystalShards.cs already, it does the Essence of Defeat reagent and is probably your best option, if you want I will make a bot that converts Tainted Gems x50 -->Dark Crystal Shards x5 using "A Tainted Deal" Quest.
Last edited by imbasu; 06-05-2018 at 09:40 PM.
mchqeen12 (06-06-2018)
Updated thread can be found here.