Log in

View Full Version : Full AFK Dawnport Script by subzero



subzero
06-19-2016, 17:04
Hello guys,

I created a new script for Dawnport.

What does the Cavebot do?
> Level up to 8
> Do "Mountain Troll Task" & "Torn Log Book Task" and finish them with level 8 at NPC Mr Morris
> Walk to NPC Oressa and decide to be a sorcerer
> Walk into Sorcerer Reward Room
> Opening Reward Chest after opening Reward Room door
> Walk to Bank & deposit all money
> Walk to boat & sail to defined city
> Logout

Cavebot:
8086



# --------------NOTE-----------------
# Just create new character,login and directly start the cavebot
# After death just start the Cavebot again
# If no Vocation is set Cavebot logout at NPC Oressa with level 8
# You can change value of $_tornlogbook$ to 1 so cavebot skip the chest (recommended if you already got a character in dawnport and done this quest) but anyways if the values stays 0 the cavebot will only use once the chest.
#
#
# open backpack
saymessage exiva openbp
#
# --- Kill -----------------------------
setMeleeKill Mountain Troll
setMeleeKill Troll Marauder
setMeleeKill troll-trained salamander
setMeleeKill Woodling
# --------------------------------------
#
# --- Loot -----------------------------
setLoot D7 0B
#---------------------------------------
#
# --- City Goal ---------------------------------------------------
#
fastExiva _city = Thais
fastExiva _vocation = sorcerer
fastExiva _tornlogbook = 0
#
# --- Script Master Option ----------------------------------------
# Change it to '1' if you just want to start the Hunt
#
fastExiva _simplywaypoints = 0
#
#
IfTrue ($_simplywaypoints$#number>=#1) Goto $nlineoflabel:Hunt$
# ------------------------------------------------------------------

IfTrue ($mylevel$#number>=#3) Goto $nlineoflabel:WalkToHuntAfterDeath$

# move from begin to knight equiper
:Outbreak
move 32070,31901,6
move 32073,31901,6
move 32075,31899,6
move 32074,31898,5

# Walk through Knight Equip and to Cave Start
move 32071,31896,5
move 32065,31879,5
gotoScriptLine $nlineoflabel:Hunt$

:WalkToHuntAfterDeath
move 32065,31893,6
move 32065,31889,6
move 32065,31887,5
move 32065,31878,5

# Hunting waypoints
:Hunt
#
move 32065,31875,6
move 32063,31872,6
move 32048,31867,6
move 32057,31865,6
move 32062,31862,6
move 32060,31861,5
move 32062,31861,6
move 32070,31871,6
move 32084,31880,6
move 32086,31896,6
move 32078,31896,6
move 32074,31893,7
move 32073,31893,8
move 32075,31897,9
move 32076,31895,10
move 32079,31888,10
move 32084,31880,10
move 32081,31884,10
move 32075,31887,10
move 32068,31890,10
move 32057,31891,10
move 32048,31881,10
move 32039,31877,10
move 32035,31882,10
move 32024,31884,10
move 32013,31885,10
move 32014,31878,10
move 32023,31880,10
move 32032,31881,10
move 32037,31875,10
move 32036,31865,10
move 32032,31853,10
move 32032,31844,10
move 32041,31841,10
move 32044,31834,10
move 32042,31827,10
move 32039,31823,10
move 32031,31822,10
move 32031,31816,10
move 32038,31812,10
move 32045,31799,10
move 32046,31792,10
move 32053,31800,10

# Check if chestbox was used once
IfTrue ($_tornlogbook$#number=#1) Goto $nlineoflabel:skipchest$

# Check if a tornlogbook is already in your backpack
IfTrue ($countitems:82 53$#number>=#1) Goto $nlineoflabel:skipChestBox$

# Open the Chest for Torn Log Book
fastExiva > 0A 00 82 3B 7D 38 7C 0A A8 09 02 01
# marks _tornlogbook = 1 so the character don't use the chest box again
fastExiva _tornlogbook = 1

:skipChestBox
move 32054,31802,10
move 32046,31806,10
move 32040,31820,10
move 32047,31828,10
move 32044,31839,10
move 32042,31851,10
move 32039,31861,10
move 32039,31874,10
move 32049,31881,10
move 32055,31893,10
useItem 32055,31898,10
useItem 32057,31900,9
useItem 32058,31902,8
useItem 32057,31900,7
move 32057,31902,6
move 32057,31911,6
move 32045,31907,6
move 32041,31902,6
move 32046,31890,6
move 32051,31890,5
move 32060,31887,5
move 32065,31879,5

IfTrue ($mylevel$#number>=#8) Goto $nlineoflabel:Stop$
gotoscriptline $nlineoflabel:Hunt$

:Stop
move 32065,31886,5
move 32070,31889,5
move 32072,31895,5
move 32072,31899,4
sayinTrade hi
waitx 1
sayinTrade Troll
waitx 1
sayinTrade Log Book
waitx 1
sayinTrade yes
waitx1
sayinTrade Log Book
waitx 1
sayinTrade bye
move 32073,31896,4
move 32071,31896,5
move 32069,31890,5
move 32064,31888,5
move 32064,31892,6

# If no Vocation is definied $_vocation$ character logout
IfTrue ($_vocation$#string=#sorcerer) Goto $nlineoflabel:decidedVocation$
IfTrue ($_vocation$#string=#druid) Goto $nlineoflabel:decidedVocation$
IfTrue ($_vocation$#string=#knight) Goto $nlineoflabel:decidedVocation$
IfTrue ($_vocation$#string=#paladin) Goto $nlineoflabel:decidedVocation$
gotoScriptLine $nlineoflabel:Logout$


:decidedVocation
sayinTrade hi
waitx 1
sayinTrade decided
waitx 1
sayinTrade $_vocation$
waitx 1
sayinTrade yes
waitx 1
sayinTrade bye


:sorcererPath
move 32060,31889,6
move 32057,31888,6
move 32055,31886,6

# Open the door leading to Sorcerer Reward Room
useItem 32055,31885,6

# Open the Chest Box for Sorcerer Equipment
fastExiva > 82 36 7D 8A 7C 06 A8 09 02 01

# move left
saymessage exiva > 68
# move up
saymessage exiva > 65
# move up
saymessage exiva > 65
# move right
saymessage exiva > 66
# move up
saymessage exiva > 65

# Walk to Bank
move 32056,31879,6
move 32064,31879,6

# Deposit all Money
sayinTrade hi
waitx 1
sayinTrade deposit all
waitx 1
sayinTrade yes

# Walk from Bank to Boat
move 32061,31878,6
move 32057,31878,6
move 32049,31878,6
move 32046,31878,7
move 32038,31878,7
move 32035,31878,6
move 32033,31874,6
gotoScriptLine $nlineofLabel:sailaway$

:sailaway
# Sail to the defined _city
sayinTrade hi
waitx 1
sayinTrade sail
waitx 1
sayinTrade $_city$
waitx 1
sayinTrade yes


:Logout
fastExiva close


Condition:
8084

Mana %
Spell to cast
Health Points
Small Health Potion
hex-command to drink potion



$mymanapercent$
#number>=#90
0
200
0
exura infir ico

$myhp$
#number<=#50
0
100
0
exiva > 84 FF FF 00 00 00 C4 1E 00 54 12 7B 03


Enjoy :cool:

PS:
If somebody finds the right hex-command for opening the Sorcerer Reward Room, please write it in your reply here :rolleyes:

Beggari
06-19-2016, 21:47
"useItem x,y,z" should work to open the door. It's just like the ingame "use", so you can use it for basically everything on the ground.

Looks good though.

subzero
06-20-2016, 00:29
Thank you Beggari for the hint !
It worked and now I could fully complete my script how I planed.
I re-uploaded again the Cavebot script. For some reason it's not possible using waypoints in the Sorcerer Reward Room so i used exiva hex-commands to move.
Tested the script twice and it works full afk :)
Enjoy :cool:

subzero
06-21-2016, 00:15
Hey all together !

Small Update
> Torn Log Book Quest improved

Walk only once to the chest box or skip it from begin if torn log book found in backpack or already used the chest box

Coming soon...
> Different Vocation creation

I will add soon the possiblity to change the vocation in the script.
So the character walk into other reward rooms if you choosed an other vocation.
Currently it doesn't work because the 4 different waypoints in the same small room bugs a lot and the waypoints jumps around and a wrong script line starts... :confused:

Progenosi
06-21-2016, 01:26
I'm not sure if this happened to some others but when I use this script, at a certain point of the hunt, the character stops attacking creatures and just follows waypoints. I solved this by listing the setmeleekill list just at the begining of the script, same fort the loot. Now it is working good.

Thanks for this script, greetings!

subzero
06-21-2016, 16:58
Ye good idea to place the loot & kill list at beginning of the script. It's necessary if you start the script not at the start waypoint.
I reuploaded it again and updated code wrap.

Esharify
07-30-2016, 14:33
I've tested it to the moment when bot is logging out by Oressa and need to say it works great. I died few times on levels 2-4 (with conds ofc) but when I turn on auto food eater, mana train and healing with exura infir ico manually that fixed any problems.