Log in

View Full Version : FULL AFK Script Example (50% of Script)



subzero
06-13-2016, 21:19
Hello community!

Short story why I post this thread:
I searched long time for a very good scripts but I found none.
So I decided it's time for a change. I will create my own scripts and I will share them with you from time to time.
I won't share the full scripts because it takes me so much time until it works 100% without any mistakes.
You can take my uploaded scripts here and finish them by your own. There are many possibilities to finish it so keep thinking about it. If you anyways interested in my full scripts you can send me a private message.

Please leave a comment if you got a question, ideas or any other reason !

Sorry for my bad english :D

Download:
8037


#--------------------------------------
# MightyCraft Scripts by Andreas Klein (c) 2016
#--------------------------------------
# --------------------------------------
# If you don't need some conditions
# just write a cross 'x' and the script
# fully ignores the 'x-marked' conditions.
# The Script Master Option gives the possibility
# to use only the Hunting Waypoints without any Scripts.
# Write '0' for deactivate or '1' for activate this option.
# --------------------------------------

# Item IDs
fastExiva _lootbpid = 34 0B
fastExiva _hpotid = 0A 01
fastExiva _mpotid = 0c 01
fastExiva _emptypotid = 1D 01

# Item Prices
fastExiva _hpotprice = 45
fastExiva _mpotprice = 50

# Start Conditions minimum
fastExiva _startstamina = x
fastExiva _startcap = 100
fastExiva _starthpot = 20
fastExiva _startmpot = 5
fastExiva _startbp = 5

# Leave Conditions
fastExiva _leavestamina = 20
fastExiva _leavecap = 10
fastExiva _leavehpot = 2
fastExiva _leavempot = x

# Script Master Option
fastExiva _simplywaypoints = 0
IfTrue ($_simplywaypoints$#number=#1) Goto $nlineoflabel:Hunt$

# One-Time Backpack Check
fastExiva _i = 0
fastExiva _countbp = $countitems:{$_lootbpid$}$
IfTrue ($_startbp$#number=#x) Goto $nlineoflabel:endopenbp$
IfTrue ($_countbp$#number=>#$_startbp$) Goto $nlineoflabel:endopenbp$
:openbp
fastExiva _countbp = $countitems:{$_lootbpid$}$
IfTrue ($_countbp$#number>=#$_startbp$) Goto $nlineoflabel:endopenbp$
saymessage exiva openbp
fastExiva _i = $numericalexp:{$_i$}+1$
IfTrue ($_i$#number>#$_startbp$) Goto $nlineoflabel:endopenbp$
gotoScriptLine $nlineoflabel:openbp$
:endopenbp
saymessage exiva openbp

# Check Start Stamina
fastExiva _mystamina = $numericalexp:{$mystamina$}/60$
IfTrue ($_startstamina$#number=#x) Goto $nlineoflabel:endCheckStartStamina$
IfTrue ($_mystamina$#number>=#$_startstamina$) Goto $nlineoflabel:endCheckStartStamina$
IfTrue ($_mystamina$#number<#$_startstamina$) Goto $nlineoflabel:End$
:endCheckStartStamina

# Check Start Items
#Pile of Grave Earth
fastExiva _a = $countitems:DC 2C$
#Ghoul Snack
fastExiva _b = $countitems:CB 2C$
#Rotten Piece of Cloth
fastExiva _c = $countitems:33 28$
#Brown Piece of Cloth
fastExiva _d = $countitems:19 17$
#Life Ring
fastExiva _e = $countitems:EC 0B$
#Pelvis Bone
fastExiva _f = $countitems:D9 2C$
#Gold Coin
fastExiva _gp = $countitems:D7 0B$
IfTrue ($_a$#number>=#1) Goto $nlineoflabel:depositStartLoot$
IfTrue ($_b$#number>=#1) Goto $nlineoflabel:depositStartLoot$
IfTrue ($_c$#number>=#1) Goto $nlineoflabel:depositStartLoot$
IfTrue ($_d$#number>=#1) Goto $nlineoflabel:depositStartLoot$
IfTrue ($_e$#number>=#1) Goto $nlineoflabel:depositStartLoot$
IfTrue ($_f$#number>=#1) Goto $nlineoflabel:depositStartLoot$
IfTrue ($_gp$#number>=#1) Goto $nlineoflabel:depositStartGold$
gotoScriptLine $nlineoflabel:endCheckStartItems$
:depositStartLoot
resetLoot
#Pile of Grave Earth
setLoot DC 2C
#Ghoul Snack
setLoot CB 2C
#Rotten Piece of Cloth
setLoot 33 28
#Brown Piece of Cloth
setLoot 19 17
#Life Ring
setLoot EC 0B
#Pelvis Bone
setLoot D9 2C
move 32346,32221,7
move 32350,32226,7
putLootOnDepot
IfTrue ($_gp$#number>=#1) Goto $nlineoflabel:depositStartGold$
IfTrue ($_gp$#number<#1) Goto $nlineoflabel:endCheckStartItems$
:depositStartGold
move 32346,32222,7
move 32344,32230,7
waitX 1
saymessage hi
waitX 1
sayInTrade deposit all
waitX 1
sayInTrade yes
waitX 1
sayInTrade bye
gotoScriptLine $nlineoflabel:endCheckStartItems$
:endCheckStartItems

# Check Start Potions
fastExiva _myhpot = $countitems:{$_hpotid$}$
fastExiva _mympot = $countitems:{$_mpotid$}$
fastExiva _myemptypot = $countitems:{$_emptypotid$}$
IfTrue ($_starthpot$#number=#x) Goto $nlineoflabel:nostarthpot$
IfTrue ($_startmpot$#number=#x) Goto $nlineoflabel:nostartmpot$
# _starthpot (True) , _startmpot (True)
IfTrue ($_myhpot$#number>=#$_starthpot$) Goto $nlineoflabel:enoughStartHpot$
IfTrue ($_myhpot$#number<#$_starthpot$) Goto $nlineoflabel:notenoughStartHPot$
:notenoughStartHPot
IfTrue ($_mympot$#number>=#$_startmpot$) Goto $nlineoflabel:buyStartHPot$
IfTrue ($_mympot$#number<#$_startmpot$) Goto $nlineoflabel:buyStartHMPot$
:enoughStartHpot
IfTrue ($_mympot$#number>=#$_startmpot$) Goto $nlineoflabel:noBuyStartHMPot$
IfTrue ($_mympot$#number<#$_startmpot$) Goto $nlineoflabel:buyStartMPot$
:nostarthpot
# _starthpot (False) , _startmpot (False)
IfTrue ($_startmpot$#number=#x) Goto $nlineoflabel:noBuyStartHMPot$
# _starthpot (False) , Enough Mana Potions on Start
IfTrue ($_mympot$#number>=#$_startmpot$) Goto $nlineoflabel:noBuyStartHMPot$
# _starthpot (False) , Not Enough Mana Potions on Start
IfTrue ($_mympot$#number<#$_startmpot$) Goto $nlineoflabel:buyStartMPot$
:nostartmpot
# _starthpot (True) , _startmpot (False)
IfTrue ($_myhpot$#number>=#$_starthpot$) Goto $nlineoflabel:noBuyStartHMPot$
IfTrue ($_myhpot$#number<#$_starthpot$) Goto $nlineoflabel:buyStartHPot$
:buyStartHMPot
fastExiva _missstarthpot = $numericalexp:{$_starthpot$}-{$_myhpot$}$
fastExiva _missstartmpot = $numericalexp:{$_startmpot$}-{$_mympot$}$
fastExiva _starthpotcost = $numericalexp:{$_missstarthpot$}*{$_hpotprice$}$
fastExiva _startmpotcost = $numericalexp:{$_missstartmpot$}*{$_mpotprice$}$
fastExiva _starthmpotcost = $numericalexp:{$_starthpotcost$}+{$_startmpotcost$ }$
move 32346,32222,7
move 32344,32230,7
waitX 2
saymessage hi
waitX 2
sayInTrade deposit all
waitX 2
sayInTrade yes
waitX 2
sayInTrade withdraw $_starthmpotcost$
waitX 2
sayInTrade yes
#move to Potion Shop
move 32346,32221,7
move 32366,32214,7
move 32369,32186,7
move 32413,32171,7
waitX 1
sayInTrade hi
waitX 1
sayInTrade trade
waitX 1
fastExiva buy:{$_hpotid$}:{$_missstarthpot$}
fastExiva buy:{$_mpotid$}:{$_missstartmpot$}
waitX 1
sayInTrade bye
gotoScriptLine $nlineoflabel:buyStartPotFinish$
:buyStartHPot
fastExiva _missstarthpot = $numericalexp:{$_starthpot$}-{$_myhpot$}$
fastExiva _starthpotcost = $numericalexp:{$_missstarthpot$}*{$_hpotprice$}$
move 32346,32222,7
move 32344,32230,7
waitX 2
saymessage hi
waitX 2
sayInTrade deposit all
waitX 2
sayInTrade yes
waitX 2
sayInTrade withdraw $_starthpotcost$
waitX 2
sayInTrade yes
#move to Potion Shop
move 32346,32221,7
move 32366,32214,7
move 32369,32186,7
move 32413,32171,7
waitX 1
sayInTrade hi
waitX 1
sayInTrade trade
waitX 1
fastExiva buy:{$_hpotid$}:{$_missstarthpot$}
waitX 1
sayInTrade bye
gotoScriptLine $nlineoflabel:buyStartPotFinish$
:buyStartMPot
fastExiva _missstartmpot = $numericalexp:{$_startmpot$}-{$_mympot$}$
fastExiva _startmpotcost = $numericalexp:{$_missstartmpot$}*{$_mpotprice$}$
move 32346,32222,7
move 32344,32230,7
waitX 2
saymessage hi
waitX 2
sayInTrade deposit all
waitX 2
sayInTrade yes
waitX 2
sayInTrade withdraw $_startmpotcost$
waitX 2
sayInTrade yes
#move to Potion Shop
move 32346,32221,7
move 32366,32214,7
move 32369,32186,7
move 32413,32171,7
waitX 1
sayInTrade hi
waitX 1
sayInTrade trade
waitX 1
fastExiva buy:{$_mpotid$}:{$_missstartmpot$}
waitX 1
sayInTrade bye
gotoScriptLine $nlineoflabel:buyStartPotFinish$
:noBuyStartHMPot
IfTrue ($_myemptypot$#number>#0) Goto $nlineoflabel:sellEmptyPotOnly$
gotoScriptLine $nlineoflabel:endCheckStartPotion$
:sellEmptyPotOnly
#move to Potion Shop
move 32346,32221,7
move 32366,32214,7
move 32369,32186,7
move 32413,32171,7
waitX 1
sayInTrade hi
waitX 1
sayInTrade trade
waitX 1
fastExiva sell:{$_emptypotid$}:{$_myemptypot$}
waitX 1
sayInTrade bye
gotoScriptLine $nlineoflabel:endCheckStartPotion$
:buyStartPotFinish
IfTrue ($_myemptypot$#number>#0) Goto $nlineoflabel:sellEmptyPot$
gotoScriptLine $nlineoflabel:endCheckStartPotion$
:sellEmptyPot
sayMessage exiva > 05 00 A2 67 00 00 40
waitX 1
sayInTrade hi
waitX 1
sayInTrade trade
waitX 1
fastExiva sell:{$_emptypotid$}:{$_myemptypot$}
waitX 1
sayInTrade bye
gotoScriptLine $nlineoflabel:endCheckStartPotion$
:endCheckStartPotion


# Check Start Cap
fastExiva _mycap = $numericalexp:{$mycap$}/100$
IfTrue ($_startcap$#number=#x) Goto $nlineoflabel:endCheckStartCap$
IfTrue ($_mycap$#number>=#$_startcap$) Goto $nlineoflabel:endCheckStartCap$
IfTrue ($_mycap$#number<#$_startcap$) Goto $nlineoflabel:End$
:endCheckStartCap



#:start
#:walkToCave
#:Hunt
#:HuntStatus
#:CloseConnection



:End