Log in

View Full Version : 42. Ankrahmun North Scarabs with depositer and potion buyer - by Snowman



blackd
02-22-2011, 13:21
Extremely easy to configure. you can choose how many pots u would like to refill, number of cap to go dp, you can choose different types of potions by entering the correct potion ID, and also go deposit when X gold.
Where it should be started: here:

http://blackdtools.net/cavebotimages/ankrahmunnorthscarabs.jpg





########Made by Snowman##############
fastExiva < B4 19 $hex-tibiastr:Welcome to Snowman's Ankrahmun Scarabs with depositer and potion buying script!$
waitX 1
##########################################
#############CONFIG#######################
##########################################
#put here number of amount of you potions to refil
fastExiva _potionsamount = 60
#put here number of cap to go dp
fastExiva _captodp = 250
#how much does you potions cost
fastExiva _potionscost = 50
#ID of your potions
fastExiva _potionid = 0C 01
#ID of your vials
fastExiva _vialid = 1D 01
#put here amount of gold to go deposit:
fastExiva _gp = 4000
##########################################
###DO NOT CHANGE IT!
:cap *100
fastExiva _captogodp = $numericalexp:{$_captodp$}*100$
##########################################
:start
setChaoticMovesON
onGMpause
setFriendly
######Monsters#####
setMeleeKill larva
setMeleeKill scarab
setMeleeKill nomad
##############
####PRIORITIES####
#################
######LOOT######
setLoot D7 0B
setLoot D9 0B
setLoot D8 0B
setLoot E2 0B
#################
IfTrue ($mycap$#number<=#$_captogodp$) Goto $nlineoflabel:dp$
IfTrue ($countitems:{$_potionid$}$#number<=#$_potionsamount$) Goto $nlineoflabel:dp$
IfTrue ($countitems:D7 0B$#number>=#$_gp$) Goto $nilneoflabel:dp$
move 33164,32684,9
move 33155,32676,9
move 33150,32666,9
move 33152,32651,9
move 33169,32671,9
move 33173,32659,9
move 33167,32651,9
move 33182,32669,9
move 33193,32685,9
move 33202,32675,9
move 33204,32692,9
move 33216,32717,9
move 33202,32727,9
move 33177,32698,9
move 33163,32698,9
move 33186,32721,9
move 33178,32729,9
move 33159,32709,9
move 33165,32722,9
move 33158,32736,9
move 33164,32730,9
move 33135,32733,9
move 33147,32731,9
move 33168,32688,9
move 33144,32702,9
move 33141,32717,9
move 33122,32689,9
move 33155,32689,9
move 33132,32702,9
move 33141,32658,9
move 33132,32664,9
move 33115,32670,9
move 33139,32687,9
move 33154,32673,9
move 33153,32651,9
move 33170,32672,9
move 33175,32660,9
move 33161,32658,9
move 33172,32648,9
move 33181,32670,9
move 33163,32684,9
gotoScriptLine $nlineoflabel:start$
:dp
setChaoticMovesOFF
#do dp
move 33163,32684,9
move 33164,32684,8
move 33153,32685,8
move 33154,32686,7
move 33154,32716,7
useItem 33154,32740,7
move 33154,32761,7
move 33154,32763,6
move 33154,32765,6
move 33154,32767,7
move 33134,32804,7
move 33134,32806,6
move 33133,32818,6
##########################################
##########################################
:BANK
###POTS CONFIGS###
fastExiva _potionstobuy = $countitems:{$_vialid$}$
fastExiva _cashfromvials = $numericalexp:{$countitems:{$_vialid$}$}*5$
fastExiva _potioncost = $numericalexp:{$_potionstobuy$}*{$_potionscost$}$
fastExiva _allpotionscost = $numericalexp:{$_potioncost$}-{$_cashfromvials$}$
##########################################
##########################################
#Depositing gold
sayMessage hi
waitX 1
sayInTrade deposit all
waitX 2
sayInTrade yes
IfTrue ($_refil$#number=#0) Goto $nlineoflabel:nopots2$
waitX 2
sayInTrade withdraw $_allpotionscost$
waitX 1
sayInTrade yes
:nopots2
waitX 2
sayInTrade balance
waitX 1
sayInTrade Bye
##########################################
##########################################
##########################################
move 33132,32817,6
move 33131,32815,5
move 33131,32813,5
##########################################
#MAGIC SHOP
sayMessage hi
waitX 1
sayInTrade trade
waitX 2
sayMessage exiva sell:$_vialid$:100
waitX 1
sayMessage exiva sell:$_vialid$:100
waitX 1
sayMessage exiva buy:$_potionid$:$_potionstobuy$
waitX 2
sayInTrade bye
##########################################
move 33131,32815,5
move 33131,32817,6
move 33128,32825,6
move 33128,32827,7
move 33123,32842,7
putLootOnDepot
move 33123,32842,7
move 33123,32842,7
move 33143,32805,7
move 33153,32768,7
move 33154,32764,6
move 33154,32762,6
move 33154,32762,7
move 33153,32755,7
move 33157,32706,7
move 33153,32687,7
move 33153,32686,8
move 33163,32684,8
move 33164,32684,9
gotoScriptLine $nlineoflabel:start$

napster2k
10-16-2011, 03:04
Whats the xp/hr?

jenitinha
10-20-2011, 00:59
Man, This code not work with comments, ( Debug tibia)

jenitinha
10-21-2011, 20:44
Every time the character comes out of the hunt and go to deposit the money, he deposited everything, but he gets caught and does not take away the money for the mp. Please someone can correct the error in this script?

slyn
10-24-2011, 04:16
Man, This code not work with comments, ( Debug tibia)

Remove first four lines from the top and it will workin (:

But I got a problem when my character is depositing gold,when he deposited everything he is still staying near bank and don't moving.
Could somebody repair this scirpt?

netolm
10-16-2012, 20:03
Someone experienced in scripts could add that same script to restore royal spear?