local ManaMax = 1500
local ManaMin = 200
local ManaPot = "mana potion"
local HpMax = 500
local HpMin = 100
local HpPot = "supreme health potion"
local AmmoMax = 900
local AmmoMin = 300
local Ammo = "crystalline arrow"
local RuneMax = 0
local RuneMin = 0
local RuneName = "avalanche"
local ItemBP = "crystal backpack"
local StackBP = "jewelled backpack"
local SuppliesBP = "orange backpack"
local MinCap = 100
local hardcore = true
----------------------------------------------------------------
--- Walker and labels to set:
--- start at depo
--- 1. RestartBps
--- way to bank
--- 2. DepositGold
--- way to potion shop
--- 3. BuyPots
--- way to ammo
--- 4. BuyAmmo - if you need ammo
--- way to rune shop
--- 5. BuyRunes - if you need runes
--- way to depo
--- 6. CheckBefore
--- way to hunt place
--- 7. StartHunt
--- route around spawn
--- 8. Check
--- way to depo
--- built in reach depo function in client
--- built in deposit items function in client
----------------------------------------------------------------
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
print("Full afk script by Trykon")
print("Happy Hunting!")
function onWalkerSelectLabel(labelName)
if(labelName == "DepositGold") then
Walker.Stop()
Self.SayToNpc("hi")
wait(200,1000)
Self.SayToNpc("deposit all")
wait(200, 1000)
Self.SayToNpc("yes")
wait(1000)
Walker.Start()
elseif(labelName == "Hardcore") then
if(hardcore == false) then
gotoLabel("SkipHardcore")
end
elseif(labelName == "BuyPots")then
Walker.Stop()
Self.SayToNpc("hi")
wait(200,1000)
Self.SayToNpc("trade")
wait(200, 1000)
Self.ShopBuyItemsUpTo(HpPot, HpMax)
wait(200, 1000)
Self.ShopBuyItemsUpTo(ManaPot, ManaMax)
wait(1000)
Walker.Start()
elseif(labelName == "BuyAmmo") then
Walker.Stop()
Self.SayToNpc("hi")
wait(200,1000)
Self.SayToNpc("trade")
wait(200, 1000)
Self.ShopBuyItemsUpTo(Ammo, AmmoMax)
wait(200, 1000)
wait(1000)
Walker.Start()
elseif(labelName == "BuyRunes") then
Walker.Stop()
Self.SayToNpc("hi")
wait(200,1000)
Self.SayToNpc("trade")
wait(200, 1000)
Self.ShopBuyItemsUpTo(RuneName, RuneMax)
wait(200, 1000)
wait(1000)
Walker.Start()
elseif(labelName == "CheckBefore") then
if(Self.Cap() < MinCap or Self.ItemCount(HpPot) < HpMax or Self.ItemCount(Ammo) < AmmoMax or Self.ItemCount(RuneName) < RuneMax or Self.ItemCount(ManaPot) < ManaMax) then
gotoLabel("RestartBps")
else
print("Check passed")
end
elseif(labelName == "RestartBps") then
Walker.Stop()
Self.CloseContainers()
wait(200)
Self.OpenMainBackpack(true)
Container.GetFirst():OpenChildren(ItemBP)
wait(1000)
Container.GetFirst():OpenChildren(StackBP)
wait(1000)
Container.GetFirst():OpenChildren(SuppliesBP)
wait(1000)
Container.GetByName(ItemBP):Minimize()
wait(1000)
Container.GetByName(StackBP):Minimize()
wait(1000)
Container.GetByName(SuppliesBP):Minimize()
wait(200)
Walker.Start()
elseif(labelName == "Check") then
if(Self.Cap() >= MinCap and Self.ItemCount(Ammo) >= AmmoMin and Self.ItemCount(HpPot) >= HpMin and Self.ItemCount(RuneName) >= RuneMin and Self.ItemCount(ManaPot) >= ManaMin) then
gotoLabel("StartHunt")
else
print("No supplies")
end
end
end
Replies to Skrypt 
Title |
Name |
Language |
UNIX |
When |
Re: Skrypt |
Ungracious Tamarin |
text |
1598960810 |
4 Years ago. |
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}