Log in

View Full Version : StartNGo Rook2Main



Malmis
03-04-2012, 01:49
Should be one of the safest scripts out there. Doesn't mean shit tho. :p
Just login and start it, doesn't matter if newly minted or in temple.
Hunts for 97 gold in food, buys EQ and BP and goes to hunt rats to 6000 EXP then it will go to oracle and logout.
Dings 10 times when finished, doesn't logout.


UPDATED: Doesn't sometimes crash on startup now. Doesn't endlessly open and close bag/backpack.
- Thank you zihinu.

UPDATED: Had one waitX 5 for windows too much. Script now 5 seconds faster. ;) Also made it better restartable, if you get kicked while hunting rats you just restart it no problems. Sheep already worked. If you get kicked while buying EQ or something just finish that yourself and go down to Al Dee rats or use exiva jump 244.
UPDATED: Remove apple check since it bugged.
UPDATED: A few mistakes in checks corrected. Doesn't buy backpack if you went through tutorial. No auto-chase in client, works better. Just sets full attack.
UPDATED: Checked for 97 gp while at Willie's but not counting right if the meats and hams looted were enough, like supposed to. Now fixed.

Also contains AutoRook as did my Automated Tutorial Script (http://www.blackdtools.net/showthread.php?57394-Automated-Rookgard-Tutorial). It doesn't do much here other than telling you what's going on, close the windows that comes up if you want it in it's own channel. Otherwise client will spam you when you close them. :p Also it should be alot safer if you close the windows even if it works otherwise. There's just two of them and they are in the start so just wait 15 seconds at the most before going AFK.
The bot will wait for five seconds every time a window comes up for waitX 5 so you can close them if you're cautious.

Please comment! And ofcourse all kind of bugreports are appreciated! :cool:

bougbear
03-04-2012, 02:41
My guy is standing in temple but he's just opening and closing his bag. Looking through the script now to see if I can spot what's up! Note that I used the automated tutorial one so i've already got a backpack, maybe that's messing things up? I've tried switching it into a normal bag but to no avail

bougbear
03-04-2012, 02:48
I've commented out line 43 and seems to have started okay :) Will let you know in the morning if it's worked!
Cheers again mate, been looking forward to this one

Malmis
03-04-2012, 10:19
It's looking for the apple... :p

Malmis
03-04-2012, 10:52
Updated... Had one waitX 5 too much. Also changed the name a little of the textfile so the actual name of the script and not my name are visible in the little scriptlist dropdown :p
Edited: Made it work when you restart it if you get kicked in rats... In between you're on your own. :o

slayer123
03-04-2012, 21:12
There is a problem with opening bag. It stands in temple and opening bag. I delete the label "IfTrue ($countitems:01 0E$#number=#0) Goto $nlineoflabel:openbag$" and everything works fine.

Malmis
03-04-2012, 21:27
There is a problem with opening bag. It stands in temple and opening bag. I delete the label "IfTrue ($countitems:01 0E$#number=#0) Goto $nlineoflabel:openbag$" and everything works fine.

You ate the apple before starting?

vacti
03-04-2012, 23:55
Same happens to me, he is looking how pretty the apple is :/

EDIT: I deleted what was said before and seems all works fine:)

Malmis
03-05-2012, 00:00
Updated. Thanks for replies. :)

vacti
03-05-2012, 00:34
It doesn't work for me the: "Dropping bag to equip backpack."

It drops the bag to the ground but not takes the bp

Malmis
03-05-2012, 09:00
It doesn't work for me the: "Dropping bag to equip backpack."

It drops the bag to the ground but not takes the bp

Anyon else got this bug? Never a problem for me. :s

Malmis
03-05-2012, 21:36
This line:
fastExiva < AA 00 00 00 00 $hex-tibiastr:AutoRook$ FF 00 04 $hex-tibiastr:but I am testing it out and going to review it soon and listen to user-reports. Also I will be used in the Destiny Island version and the Rook2lvl20 scripts.

Missing $ at the end.

I think you should use exiva openbp instead of the exiva > command.
You don't get an apple after finishing the tutorial.
Also, you've got two :openbag

What does exiva > BE do?

Thanks. <3
Stops follow. So it doesn't screw up walking, which it sometimes does. :p Dunno if it stop other stuff too. Will try to take the time and look through your entire script soon and point out what you could do better... You got any tips for me?

BldMx
03-06-2012, 11:25
Great job both of you guys!!

Malmis
03-06-2012, 13:08
As I said, I never got bugs, it's odd. Anyways, sometimes $hex-equiped-item:XX$#string<>#00 00 doesn't work. Dunno why, so it's suposed to change to hex to number. :p Going to go over it now.

Malmis
03-06-2012, 13:20
Just got this: 11:17 AutoRook [255]: Going back to hunt for more food. Missing -5 gold.

:D



fastExiva < AA 00 00 00 00 $hex-tibiastr:AutoRook$ FF 00 04 $hex-tibiastr:Going back to hunt for more food. Missing {$numericalexp:87-{$countitems:D7 0B$}$} gold.$

The check was for 97 the hex said 87. :p


Changed this:

move 32061,32181,7
sayMessage hi
waitX 2
sayInTrade trade
waitX 1
:buybackpack
fastExiva buy:26 0B:1
waitX 2
IfTrue ($countitems:26 0B$#number=#0) Goto $nlineoflabel:buybackpack$
fastExiva < AA 00 00 00 00 $hex-tibiastr:AutoRook$ FF 00 04 $hex-tibiastr:Dropping bag to equip backpack.$
:dropbag
fastExiva > 78 FF FF 03 00 00 $hex-equiped-item:03$ 00 $numbertohex2:{$myx$}$ $numbertohex2:{$myy$}$ 07 01
waitX 1
IfTrue ($hex-equiped-item:03$#number>#0) Goto $nlineoflabel:dropbag$
:equipbackpack
fastExiva #26 0B 03
waitX 1
IfTrue ($hex-equiped-item:03$#string=#0) Goto $nlineoflabel:equipbackpack$
fastExiva < AA 00 00 00 00 $hex-tibiastr:AutoRook$ FF 00 04 $hex-tibiastr:Opening backpack.$
waitX 1
fastExiva > 82 FF FF 03 00 00 26 0B 00 00
setChaoticMovesON
fastExiva < AA 00 00 00 00 $hex-tibiastr:AutoRook$ FF 00 04 $hex-tibiastr:Entering Al Dee rats.$

to this:


:buybackpack
move 32061,32181,7
sayMessage hi
waitX 2
sayInTrade trade
waitX 1
fastExiva buy:26 0B:1
waitX 2
IfTrue ($countitems:26 0B$#number=#0) Goto $nlineoflabel:buybackpack$
fastExiva < AA 00 00 00 00 $hex-tibiastr:AutoRook$ FF 00 04 $hex-tibiastr:Dropping bag to equip backpack.$
:dropbag
fastExiva > 78 FF FF 03 00 00 $hex-equiped-item:03$ 00 $numbertohex2:{$myx$}$ $numbertohex2:{$myy$}$ $numbertohex1:{$myz$}$ 01
waitX 1
IfTrue ($hex-equiped-item:03$#string<>#00 00) Goto $nlineoflabel:dropbag$
:equipbackpack
fastExiva #26 0B 03
waitX 1
IfTrue ($hex-equiped-item:03$#string=#00 00) Goto $nlineoflabel:equipbackpack$
move 32061,32173,7
fastExiva < AA 00 00 00 00 $hex-tibiastr:AutoRook$ FF 00 04 $hex-tibiastr:Opening backpack.$
waitX 1
fastExiva openbp
setChaoticMovesON
fastExiva < AA 00 00 00 00 $hex-tibiastr:AutoRook$ FF 00 04 $hex-tibiastr:Entering Al Dee rats.$

What I changed:
I moved :buybackpack so it will try the whole process again, including saying hi etc. Now it doesn't matter if someone pushes you away.
Added $numbertohex1:{$myz$}$ to make it safer. Making it a bit more idiot proof. I started it at Al Dee's second floor. (Where z=6).
Changed the IfTrue line to use string instead of number.
fastExiva openbp instead of fastExiva > 82 FF FF 03 00 00 26 0B 00 00
Added an extra waypoint because the bag has to close before exiva openbp can be used. Walking away is a simple way of making it close. :-)



If we go through it line by line we can make this script perfect and idiot proof.
I think we've ironed out the major kinks now, I'll run it again now to try it but I don't enjoy testing. :p
Add me on MSN if you want, or PM me.
I also changed that part but well I didn't do much except fix the thing I said in last post, changed stuff to openbp. Moved the openbag to after sew-waypoint.

Malmis
03-06-2012, 15:26
12:27 AutoRook [255]: Welcome to Malmis StartNGo Rook2Main Script!
12:27 AutoRook [255]: I am AutoRook and will guide you through this.
12:27 AutoRook [255]: I am unfortunetly totally superfluent in this script because it really has no options and not that much happens,
12:27 AutoRook [255]: but I am testing it out and going to review it soon and listen to user-reports. Also I will be used in the Destiny Island version and the Rook2lvl20 scripts.
12:27 AutoRook [255]: So feel free to comment me! On the forums...
12:27 AutoRook [255]: -
12:27 AutoRook [255]: Feel free to check out other scripts by Malmis at BlackD Forums in http://www.blackdtools.net/showthread.php?57391-Malmis-Scripts!
12:27 AutoRook [255]: -
12:27 AutoRook [255]: Starting the script.
12:27 AutoRook [255]: Hunting Deer, Rabbits, Sheeps and Pigs for Ham and Meat until reaching 97 gold.
12:27 AutoRook [255]: Setting full attack and auto-chase.
12:27 AutoRook [255]: Dropping unusables.
12:27 AutoRook [255]: Opening east gate.
12:32 AutoRook [255]: Opening south gate.
12:39 AutoRook [255]: Going to sell 26 meat and 1 ham to Willie for 56 gold.
12:41 AutoRook [255]: Going back to hunt for more food. Missing 41 gold.
12:47 AutoRook [255]: Going to sell 17 meat and 0 ham to Willie for 34 gold.
12:49 AutoRook [255]: Going back to hunt for more food. Missing 7 gold.
12:53 AutoRook [255]: Going to sell 12 meat and 0 ham to Willie for 24 gold.
12:54 AutoRook [255]: Going to deposit excess gold.
12:55 AutoRook [255]: Buying Sabre at Obi's.
12:55 AutoRook [255]: Buying armor at Dixi's.
12:56 AutoRook [255]: Going to Al Dee to buy backpack and hunt rats.
12:57 AutoRook [255]: Dropping bag to equip backpack.
12:57 AutoRook [255]: Entering Al Dee rats.
12:57 AutoRook [255]: Opening backpack.

No problems at all. :)

provocate
03-07-2012, 12:45
Definitely gonna use it when I'll need new char in main or whatever :P. Looks like you again out did yourself. \o/

I've got a short question tho, what do functions 'ChaoticMovesON' and 'ChaoticMovesOFF' actually do? D:

Malmis
03-07-2012, 16:26
Definitely gonna use it when I'll need new char in main or whatever :P. Looks like you again out did yourself. \o/

I've got a short question tho, what do functions 'ChaoticMovesON' and 'ChaoticMovesOFF' actually do? D:

Make it move within 1 or 2 sqm of the move pos :P

provocate
03-07-2012, 18:57
Make it move within 1 or 2 sqm of the move pos :P

If I got it correctly xD:

ChaoticMovesON = within 2 sqms

ChaoticMovesOFF = within 1 sqm

So this would be usefull for like character getting to certain, exact spot ... Hum well, I've used these two before and I've noticed the difference but never knew what the difference was all about.

Thanks, now I shall use these PROPERLY. :D

Malmis
03-07-2012, 19:46
If I got it correctly xD:

ChaoticMovesON = within 2 sqms

ChaoticMovesOFF = within 1 sqm

So this would be usefull for like character getting to certain, exact spot ... Hum well, I've used these two before and I've noticed the difference but never knew what the difference was all about.

Thanks, now I shall use these PROPERLY. :D

Yeah... ChaoticMovesOFF is old style walking, so usually get's it right but sometimes go one less or more sqm :P Chaotic Moves are great but useless for going to NPCs.

Vinnie
03-19-2012, 03:52
Tested this today and it worked perfectly! Awesome script!

theboobx
03-20-2012, 09:02
Working perfect.
Thanks man keep posting, hard do find ONE script working in this forum.

drakon121
04-05-2012, 05:18
so i started in temple after using your tutorial script i bought eq its starts to "hunt" for meat but doesnt move :/ is there a way to skip to rats?

drakon121
04-05-2012, 05:24
ok it started walking but how is it going to kill monsters without follow? i was also curious if its set to sell food at under 13 cap

sorry for double post. after my net disconnected a couple times and i reloaded seems to be working fine! cheers (:

Malmis
04-05-2012, 05:41
The StartNGo was to imply you really just had to start it directly after login in, and load a conditional for better performance. :p But if you start in al dee rats the script can start hunting just rats.

Near
04-14-2012, 23:47
Out of date. In the latest updates of Tibia have been changes in the map and others.

Patrick
06-03-2012, 17:17
I am testing it now. Atm my char is level 5 and didn't get stuck since I started the script.

RasoiR
07-17-2012, 16:49
Last time when i was using it, it works now he stops everywhere. First he try to get back at stairs near Santiago, now he stops near sheeps and dont attack them.

Cardin
08-15-2012, 06:52
great script. works very good.

Tha Goo
10-19-2012, 16:36
great script. works very good.

Worked for me last night on latest tibia 9.7. Although when i logged back on this morning (char got kicked due to server save) it was level 8.5 and still trying to kill rats. Anyone know why this is? What level is it supposed to go to Isle of Destiny? where in the script the Hunt to level code is? Haven't looked myself yet just started using this yesterday so i doubt i would understand any of the code anyways.. thanks:)

Tyrus
10-28-2012, 19:50
Worked for me last night on latest tibia 9.7. Although when i logged back on this morning (char got kicked due to server save) it was level 8.5 and still trying to kill rats. Anyone know why this is? What level is it supposed to go to Isle of Destiny? where in the script the Hunt to level code is? Haven't looked myself yet just started using this yesterday so i doubt i would understand any of the code anyways.. thanks:)


It stops once it reaches 6k xp.

Tyrus
10-28-2012, 20:01
By the way, this script is AWESOME!!!Thank you very much

sephiro45
11-02-2012, 09:42
Thank you my friend xD this script is awesome :) lvl 4 atm and no problems so far

Karson327
12-30-2012, 20:20
Awesome bot, can I just ask why doesn't it activate auto-chase? My character just selects a rabbit to attack and just stands there without chasing it?

***EDIT*** Also, now my bot has stopped, it gathered 54g, went to buy eq and bought leather armor and legs with a shield and then did nothing. I restarted the bot and now my bot drops the leather armor walked downstairs and tries to buy something. Can somebody explain what it's trying to do?

Thanks

Lithium
12-30-2012, 21:58
Ill explain, your using an outdated script and Malmis was very intense in his Rook2Main script if I remember correctly, they are more than likely very out-dated packets and that account I would now consider "High-Risk" for being banned. Anyways you should really take a look at the dates these scripts were posted and maybe instead of just copy and pasting and using Malmis' script use his as a reference and create a very basic one yourself, give yourself sword/shield and some armor and just make it loop, create all the waypoints by walking around typing exiva pos in your client, copy & paste those to a note pad, specify what to kill at the top of your script with..ex setMeleeKill rat and when you get to the end of your loop the end of your script should say..ex gotoScriptLine 0 to restart at the beginning of your script. Big suggestion because I used to do it myself until I got the ban hammer and lost things, dont use others scripts try and make your own,

-Lith

Karson327
12-30-2012, 22:20
Ill explain, your using an outdated script and Malmis was very intense in his Rook2Main script if I remember correctly, they are more than likely very out-dated packets and that account I would now consider "High-Risk" for being banned. Anyways you should really take a look at the dates these scripts were posted and maybe instead of just copy and pasting and using Malmis' script use his as a reference and create a very basic one yourself, give yourself sword/shield and some armor and just make it loop, create all the waypoints by walking around typing exiva pos in your client, copy & paste those to a note pad, specify what to kill at the top of your script with..ex setMeleeKill rat and when you get to the end of your loop the end of your script should say..ex gotoScriptLine 0 to restart at the beginning of your script. Big suggestion because I used to do it myself until I got the ban hammer and lost things, dont use others scripts try and make your own,

-Lith

Wow thanks so much for your response. I will try and use this as a guideline like you said.

Thanks again

provocate
01-02-2013, 13:00
Just to add one small thing ... Of course like @Lithium said, try to write your own scripts, download them only to study how things are scripted by the others.

And you don't have to copy/paste 'exiva pos' every time, just use 'exiva addmove', that will add the waypoint to the cavebot automaticaly.

Xanoz
01-15-2013, 12:45
Eventough its an old script and maby a little outdated, it works perfectly fine for me.

nalinat
05-27-2013, 10:52
why are that script dropping Chain armor? :/

Haxxtt
07-11-2013, 01:47
My character was unable to sell the food so i did it manually, it just went back killing sheeps,pigs, rabbits whatever creature is listed.
I suppose this script really is outdated, besides that thanks alot for your effort i am looking forward to your Rook2Mainlv20 script if you will continue on that.

I hope this helps you a bit.

10:14 Blackd Proxy is unable to sell that: amount should be positive
10:14 AutoRook [255]: Going back to hunt for more food. Missing 97 gold.

It is unable to sell the loot sayInTrade messages simply don't work anymore.

After i bought equipment and went to Al Dee rats i wrote exiva jump 244
After that the script worked like a charm, if only i could thank you more than just saying Thanks alot!