Log in

View Full Version : TEMPLATES for script extras



ManInTheCave
01-24-2009, 02:24
Ok, so heres some basic templates... All you gotta do is grab your favorite wpts, put in the info I tell you to, and change whatever is in red for your desire.
DEPOSITER FIRST
Put this line just before your wpts


IfTrue ($mycap$#number<=#5000) Goto $nlineoflabel:deposit$

This will tell the bot to skip to the line label 'DEPOSIT' when your cap is under 50, obviously change the number to whatever you please. (It's marked in red.)

After your last hunting WPT put this line in:


gotoscriptline 0
:deposit

This is the line label 'DEPOSIT'. After this line you should either record your wpts to the NPC via the script editor on the bot, or record them separately and copy paste them.

After the WPT's to the bank, you should put these lines in. These lines will say 'hi' 'deposit all' 'yes' 'bye', in that order, in the NPC channel... Thus depositing your gold. Do not edit the pauses out to avoid the mute function.


fastExiva > 96 04 $hex-tibiastr:hi$
waitX 2
fastExiva > 96 04 $hex-tibiastr:deposit all$
waitX 1
fastExiva > 96 04 $hex-tibiastr:yes$
waitX 1
fastExiva > 96 04 $hex-tibiastr:bye$
waitX 3

After this section you should either record or copy paste in your WPT's back to the cave, at the end of which you should put the following code, to tell the script to go back to line number 0 (the beginning) You can change the number 0, if your file has startup lines, to suit your needs.


gotoScriptLine 0


More in the next post (Please don't post I will reserve.


Depositing items

Someone mentioned that they wanted to deposit items into depot, so heres a quick guide to add on to depositing:

Just set up the cash depositer same waypoints, but way points going to depot (don't have to stand near a specific depot box, it will walk to one.

so we have:



DEPOSIT CASH WPTS AND SCRIPT
...
WPTS TO DEPOT
putLootOnDepot
WPTS BACK TO SPAWN


Basically you put 'putLootOnDepot' in between waypoints TO the depot, and wpts BACK FROM the depot.

ManInTheCave
01-24-2009, 02:25
Now for buying items

So, you have to get a bit of information for this section.

Mana ID's:
Mana Potion = 0C 01
Strong Mana Potion = ED 00
Great Mana Potion = EE 00

Mana Costs
Mana Potion = 50
Strong Mana Potion = 80
Great Mana Potion = 120

First you will need the item ID's. For this script I will highlight the ID's in red, along side some other variables (optional bits) I will be using strong mana potions for this example. Obviously this works for health potions as well, not sure on Paladin items yet I will experiment and get back to you on that, but heres this for now:

At the start of your script you will put this:



fastExiva _manapotionid = ED 00
# How many manas do you have?
fastExiva _manas = 300
# How much does 1 potion cost? MP = 50, SMP = 80, GMP = 120
fastExiva _idcost = 80

This basically tells the script which mana potion you will use.

This snippet should be just before the first WPT, edit the red number to change the amount of manas you should buy more on. This then counts the manas left, and takes your char to the 'REFILL' line if you need more.


IfTrue ($countitems:{$_manapotionid$}$#number<#45) Goto $nlineoflabel:refill$

You should then put in this line after your main WPT's.


gotoscriptline 0
:refill

This shows the bot that this line is the 'REFILL' line, where the script fills up manas. After this line you should put in your WPT's to the banker, so you can deposit gold and withdraw enough for your mana potions. You will need to set up the depositer to withdraw a certain amount of gold, as you need it. This line does this for you, and withdraws it.


fastExiva _mana = $numericalexp:{$_manas$}-{$countitems:{$_manapotionid$}$}$
fastExiva _manacost = $numericalexp:{$_mana$}*{$_idcost$}$
saymessage hi
waitX 2
fastExiva > 96 04 $hex-tibiastr:deposit all$
waitX 1
fastExiva > 96 04 $hex-tibiastr:yes$
waitx 1
sayInTrade withdraw $_manacost$
waitX 1
fastExiva > 96 04 $hex-tibiastr:yes$
waitx 1

Now, to go buy the manas you will put next the waypoints from the banker to the mana potion shop, then the follow code.


saymessage hi
waitx 2
fastExiva > 96 04 $hex-tibiastr:vial$
waitx 2
fastExiva > 96 04 $hex-tibiastr:yes$
waitx 1
fastExiva > 96 04 $hex-tibiastr:yes$
fastExiva > 96 04 $hex-tibiastr:yes$
waitx 2
fastExiva > 96 04 $hex-tibiastr:trade$
waitx 2
fastExiva > 07 00 7A $_manapotionid$ 00 $numbertohex2:{$numericalexp:{$_mana$}/4$}$ 00
fastExiva > 07 00 7A $_manapotionid$ 00 $numbertohex2:{$numericalexp:{$_mana$}/4$}$ 00
fastExiva > 07 00 7A $_manapotionid$ 00 $numbertohex2:{$numericalexp:{$_mana$}/4$}$ 00
fastExiva > 07 00 7A $_manapotionid$ 00 $numbertohex2:{$numericalexp:{$_mana$}/4$}$ 00
waitx 1

That just basically buys the manas. It does leave a bit of Gold left, as it sells the vials.

After this just enter your waypoints back to the cave (first waypoint) and put in


gotoScriptLine 0

ManInTheCave
01-24-2009, 02:26
Now to sell shit.

Ok, so you wanna sell your shit. First off you'll need the item ID's again, I will use XX XX as the example just to make it easy for you.

So, again you put this at the start of your WPT's. Change the number in red depending on how much cap you want to have left when you go to sell your items. It works it out and takes you to the 'SELL' line.


IfTrue ($mycap$#number<=#3000) Goto $nlineoflabel:sell$

Then you're gonna need, again, the 'SELL' line simple, it defines where the waypoints to sell stuff start.


gotoscriptline 0
:sell

Now for your waypoints to the NPC that buys your stuff.

Then you gotta put this line in...


sayMessage exiva > 96 04 $hex-tibiastr:hi$
waitX 3
sayMessage exiva > 96 04 $hex-tibiastr:trade$
waitX 3
fastExiva > 7B D6 0C 00 $numbertohex1:{$countitems:XX XX$}$
waitX 3
fastExiva > 7B D6 0C 00 $numbertohex1:{$countitems:XX XX$}$
waitX 2
sayMessage exiva > 96 04 $hex-tibiastr:bye$

Put in as many of the following line as you like, but make sure you space them the same way, and change the XX XX to the Item ID you want to sell:


waitX 3
fastExiva > 7B D6 0C 00 $numbertohex1:{$countitems:XX XX$}$

If you then want to go deposit your G's you earned selling shit, put in the WPT's to the Banker then put in this code:


waitX 1
sayMessage exiva > 96 04 $hex-tibiastr:hi$
waitX 3
sayMessage exiva > 96 04 $hex-tibiastr:deposit all$
waitX 2
sayMessage exiva > 96 04 $hex-tibiastr:yes$
waitX 2
sayMessage exiva > 96 04 $hex-tibiastr:balance$
waitX 2
sayMessage exiva > 96 04 $hex-tibiastr:bye$

If you used this or not next you put in the WPT's back to your cave, to the first hunting WPT in the script, then the following line:


goToScriptLine 0

ManInTheCave
01-24-2009, 02:26
Travelling

Do you need to travel on a boat or via talking to an NPC? Well heres how to add those bits in.

Wherever it is in the script that you need to go on a boat, put in the following, remember to edit the DESTINATION:


fastExiva > 96 04 $hex-tibiastr:hi$
waitX 2
fastExiva > 96 04 $hex-tibiastr:DESTINATION$
waitX 1
fastExiva > 96 04 $hex-tibiastr:yes$
waitX 2

That's all for now - Anything else you need? Post here. Also post here if you think this thread should be stickied!

Crille
01-24-2009, 03:14
the buying manas thing was taken from my tutorial?

BUg
01-24-2009, 03:37
50 cap would be written as 5000~

just a little tip

ManInTheCave
01-24-2009, 03:39
the buying manas thing was taken from my tutorial?

Nope, taken from an array of scripts that either I've made or downloaded over the years... But most of it I just typed out since it's so simple to remember.


50 cap would be written as 5000~

just a little tip

Good point, ty for pointing this out I will change it now.


Otherwise good?

Seisuke
01-24-2009, 05:00
Very Nice :D gonna add this to my script.. if i made any more >: D

kweed
01-24-2009, 05:18
nice, i will try :P

Shemsu
01-24-2009, 11:03
Thanks dude, now my scripting will be sooo evul ; d

ManInTheCave
01-24-2009, 11:38
No problem, if you have ANY feedback for any of them just post here I'll keep checking up... I'm not sure if the Mana buyer will sort out bp's or not (that's my main concern atm) and I've not had chance to test it... Although the snippets are as they are in my custom scripts so it should be fine.

Thanks for commenting too!

Crille
01-24-2009, 11:55
Nope, taken from an array of scripts that either I've made or downloaded over the years... But most of it I just typed out since it's so simple to remember.

the entire code is written by me and Erra, but no worries, you're free to use them however you want :p

anyway, I hope newbs will learn from this and make their own scripts instead of leeching :)

faka
01-24-2009, 12:44
When i'm selling vials and buying potions they are in my main bpswith potions have empty spaces

Belzebuth
01-24-2009, 15:27
this will help alot of ppl i think :) its usefull to know how to make a script who buy all suplies and sell loot xD so you can have your own script :)

ManInTheCave
01-24-2009, 15:42
the entire code is written by me and Erra, but no worries, you're free to use them however you want :p

anyway, I hope newbs will learn from this and make their own scripts instead of leeching :)

Dude they aren't from your 'code'. They are mostly written out by hand, stop trying to take credits for shit that I've compiled and mostly written.


When i'm selling vials and buying potions they are in my main bpswith potions have empty spaces

Like I mentioned, it's not perfect yet but I will work on it... Maybe you need to have 'Buy With Backpacks' turned on? If you wanted to automatically move the BP's of manas you buy you can do so with a loot filter style script, but I'm not to clued up on those yet.


this will help alot of ppl i think :) its usefull to know how to make a script who buy all suplies and sell loot xD so you can have your own script :)

Thank you for your feedback!

Mars
01-25-2009, 02:46
Add door opener in Depositer. It's very usefull.

Wiotki
01-25-2009, 10:37
Add door opener in Depositer. It's very usefull.

http://www.blackdtools.net/showthread.php?t=8748

Fallen16
01-25-2009, 22:00
VERY HELPFUL !
Thanks you !
Sticky ? :P

Whoop
01-26-2009, 04:08
thanks man i need the pot buyer :}
i was thinking of making your character sell the flasks, then set loot to brown backpacks (making sure no other backpack you have with you is brown!) and then make it drop loot(empty brown bps) under u
and then let it buy manas with backpacks
then u got bps with manas in ur main backpack, that shouldnt be a problem

i have no time to try and script this, ill do it when im out of stamina some time, haha
or you can try it :)

noob cakes
01-28-2009, 09:18
bro this thread was so helpful. thanks heaps

ManInTheCave
01-28-2009, 10:40
To all: no problem, it was a pleasure XD


thanks man i need the pot buyer :}
i was thinking of making your character sell the flasks, then set loot to brown backpacks (making sure no other backpack you have with you is brown!) and then make it drop loot(empty brown bps) under u
and then let it buy manas with backpacks
then u got bps with manas in ur main backpack, that shouldnt be a problem

i have no time to try and script this, ill do it when im out of stamina some time, haha
or you can try it :)

Now, as for this one... I'd assume we could squeeze in a sort of script like this... This would go AFTER you've deposited your gold, and all other loot items...

PUT THIS IN AFTER WPT'S TO BANK


fastExiva _mana = $numericalexp:{$_manas$}-{$countitems:{$_manapotionid$}$}$
fastExiva _manacost = $numericalexp:{$_mana$}*{$_idcost$}$
saymessage hi
waitX 2
fastExiva > 96 04 $hex-tibiastr:deposit all$
waitX 1
fastExiva > 96 04 $hex-tibiastr:yes$
waitx 1
sayInTrade withdraw $_manacost$
waitX 1
fastExiva > 96 04 $hex-tibiastr:yes$
waitx 1


THEN PUT WPTS TO DEPOT, AND DEPOSITER:



move x,y,z
putLootOnDepot
move x,y,z


THEN PUT THIS SCRIPT AT THE END


IfEnoughItemsGoto 0A 01,10,0
setLoot 26 0B
move x,y,z
dropLootOnGround
sayInTrade hi
waitX 2
sayInTrade trade
waitX 2
fastExiva > 07 00 7A $_manapotionid$ 00 $numbertohex2:{$numericalexp:{$_mana$}/4$}$ 00
fastExiva > 07 00 7A $_manapotionid$ 00 $numbertohex2:{$numericalexp:{$_mana$}/4$}$ 00
fastExiva > 07 00 7A $_manapotionid$ 00 $numbertohex2:{$numericalexp:{$_mana$}/4$}$ 00
fastExiva > 07 00 7A $_manapotionid$ 00 $numbertohex2:{$numericalexp:{$_mana$}/4$}$ 00
waitX 2
resetLoot
goToScriptLine 0


WARNING: DON'T USE THIS SCRIPT IF YOU HAVE BROWN BP'S THAT ARE IMPORTANT...

ManInTheCave
01-28-2009, 10:46
Can someone test that last script let me know how it goes, use coloured bps for your loot like red or yellow, just don't use brown.

xicohti
01-28-2009, 15:17
Such a good post!
Very useful.
Thanks.

Crille
01-28-2009, 16:56
Dude they aren't from your 'code'. They are mostly written out by hand, stop trying to take credits for shit that I've compiled and mostly written.


then how do you explain this? :D
tutorial written on 20th of December, final script written on 16th of November (script written by me and Erra) (http://blackdtools.net/showthread.php?t=33080)

kacprus
01-28-2009, 17:12
:) that will help ppls

ManInTheCave
01-30-2009, 21:27
then how do you explain this? :D
tutorial written on 20th of December, final script written on 16th of November (script written by me and Erra) (http://blackdtools.net/showthread.php?t=33080)

Something to do with me taking parts from bits and bobs of different scripts.

Just gtfo my thread

Oh and btw your script doesn't actually work properly.

Crille
01-31-2009, 05:00
works for me, used it like 3 nights in a row successfully :)

Blade
02-13-2009, 08:44
Even helped me out

Belarmin
02-14-2009, 11:22
When i'm selling vials and buying potions they are in my main bpswith potions have empty spaces

Try filling all the gaps of your main bp and the bp where all bps of potions are, and then the manas will go where you want :D (worms work great for filling)

Kendi
02-16-2009, 20:20
need antylogout script;/

Simon157
02-17-2009, 05:10
It would be great with a tutorial that explains how to drop loot @ dp :P Thx for the templates, its nice to always check spelling with 'em :)

Hassi
02-19-2009, 06:10
saymessage hi
waitx 2
fastExiva > 96 04 $hex-tibiastr:vial$
waitx 2
fastExiva > 96 04 $hex-tibiastr:yes$
waitx 1
fastExiva > 96 04 $hex-tibiastr:yes$
fastExiva > 96 04 $hex-tibiastr:yes$
waitx 2
fastExiva > 96 04 $hex-tibiastr:trade$
waitx 2
fastExiva > 07 00 7A $_manapotionid$ 00 $numbertohex2:{$numericalexp:{$_mana$}/4$}$ 00
fastExiva > 07 00 7A $_manapotionid$ 00 $numbertohex2:{$numericalexp:{$_mana$}/4$}$ 00
fastExiva > 07 00 7A $_manapotionid$ 00 $numbertohex2:{$numericalexp:{$_mana$}/4$}$ 00
fastExiva > 07 00 7A $_manapotionid$ 00 $numbertohex2:{$numericalexp:{$_mana$}/4$}$ 00
waitx 1


Done this exactly this way but cant get it to work, can it have something to do whit that the items isent / with 4?
Final question, why /4?

Crille
02-19-2009, 06:30
Done this exactly this way but cant get it to work, can it have something to do whit that the items isent / with 4?
Final question, why /4?

I made it that way because I botted with over 300 manas on me, so I had to break it down into 4 since you can't buy more than 99 (or 100?) in a single line

edit: you need to define _manapotionid and _mana before you buy the manas, otherwise it won't work :p

falc0
02-22-2009, 17:58
Thanks for this tutorial :D

ManInTheCave
03-03-2009, 16:23
Done this exactly this way but cant get it to work, can it have something to do whit that the items isent / with 4?
Final question, why /4?

It takes enough cash to buy a quarter of your potions at a time, until it has 76%+ of the potions you put in there. This way you don't buy so many it floods your bps, nor so few that you don't have the potions to hunt for long enough.

TheGuy
03-13-2009, 02:34
Hello!

I used this guide to make a script.

To the question, i've just made a script with a lootseller, but it wont sell loot.
I want to sell P-Arms, i use the code:


sayMessage exiva > 96 04 $hex-tibiastr:hi$
waitX 2
sayMessage exiva > 96 04 $hex-tibiastr:trade$
waitX 2
fastExiva > 7B D6 0C 00 $numbertohex1:{$countitems:1D 0D$}$

But it sais "item not found" or something like that when trying to sell, 1D 0D = P-arm. I have the p-arms in open bp's.

Can someone tell me why it doesn't work?

/TheGuy

zepy10
04-28-2009, 07:48
nice nice nice

Beggari
08-10-2009, 05:57
Coool, man. I've read some but I didn't understand how to deposit items on depot. I'd be grateful if you could explain the depositer item on depot thingy. xd
Thanks in advance.

Hurriel
08-24-2009, 13:15
thanks to this i can now bot 24h/7.
Unfortunately my money maker is with final warning.
Damn antibot system!

Rybollo
11-18-2009, 23:38
Hello. How to Use Obsidian Knife with Lizard?? Who can Post a Script To using Obsidian Knife with Lizards??