Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dofile('cslib.lua')
- -- ____
- -- / ____| _ _ _
- -- | | ___ _ _ ____ | | __| \ / |
- -- | | / _ \| \ / | _ \ |/ _ \ \/ /
- -- | |___| (_) | \/ | |_| | | __/ /\ \
- -- \_____\___/|_|\__/|_| ___|_|\___|_/ \_|
- -- | |
- -- |_|
- --========DP SPOT 0 = RARES============--
- --========DP SPOT 1 = STACKABLES=======--
- --========DP SPOT 2 = PEARLS===========--
- --========DP SPOT 3 = FOOD=============--
- --========Backpacks====================--
- mainBP = "mushroom backpack"
- stackBP = "jewelled backpack"
- lootBP = "crystal backpack"
- goldBP = "minotaur backpack"
- suppliesBP = "buggy backpack"
- --========Mana=========================--
- mPots = "Mana Potion"
- maxMP = 1600 --- Manas to bring
- minMP = 300 --- Manas to leave
- --========Health=======================--
- hPots = "Supreme Health Potion"
- maxHP = 100 --- Healths to bring
- minHP = 70 --- Healths to leave
- --========Other=========================--
- foodID = 3725 --- Food id to withdraw from 3rd BP in DP
- minCap = 400 --- Cap to leave
- extraCash = 3000 --- Extra cash to withdraw just in case
- staminaLogout = true --- logout at 16h stamina
- dropVials = true -- Drop vials?
- screenShot = true -- Take Screenshot at level?
- bpReopen = false -- open backpacks after ss/kick ?
- manaRestore = false -- Fill up your mana to 95% when no creatures nearby?
- --========Optionals======================--
- doBloodTask = false -- do blood beast killing task? After becoming at least a Rathleton "Commoner"
- doRotTask = false -- do rot elemental killing task?
- doRootsTask = false -- use roots?
- sellItems = true -- After becoming at least a Rathleton "Inhabitant"
- lMode = false -- lure mode?
- mLimit = 4 -- monster limit to change targeting
- mList = {
- "Glooth Blob", "Rot Elemental", "Devourer", "Blood Beast",
- "Quara Constrictor", "Quara Hydromancer", "Quara Mantassin", "Quara Pincher", "Quara Predator",
- "Quara Mantassin Scout", "Quara Constrictor Scout", "Quara Predator Scout", "Quara Pincher Scout", "Quara Hydromancer Scout"
- } -- Monsters to count when luring. DON'T change
- Looter.Start()
- Targeting.Start()
- registerEventListener(WALKER_SELECTLABEL, "onLabel")
- print("[[Knight Roludo]]")
- --========FUNCTIONS====================--
- function onLabel(label)
- if (label == "Backpacks") then
- CS.OpenBackpacks()
- elseif (label == "Deposit") then
- Self.DepositItems(
- -- non stackables
- {7452, 0}, {3038, 0}, {3279, 0}, {21170, 0}, {21171, 0}, {8082, 0}, {3097, 0}, {21169, 0}, {21168, 0}, {21183, 0}, {21180, 0}, {3052, 0}, {8084, 0}, {21179, 0}, {21178, 0}, {21164, 0}, {3049, 0}, {8083, 0}, {12318, 0}, {3098, 0}, {3370, 0}, {3073, 0}, {3567, 0}, {3373, 0}, {3381, 0}, {3369, 0}, {3093, 0}, {21165, 0}, {21167, 0}, {3051, 0},
- -- stackables
- {21291, 1}, {9654, 1}, {7643, 1}, {8775, 1}, {236, 1}, {238, 1}, {237, 1}, {3029, 1}, {3030, 1}, {3032, 1}, {7439, 1}, {9057, 1}, {3037, 1}, {16126, 1}, {5880, 1}, {9016, 1}, {10310, 1}, {21182, 1}, {21196, 1}, {7366, 1}, {9640, 1}, {5895, 1}, {11489, 1}, {21195, 1}, {21193, 1}, {11487, 1}, {11491, 1}, {21194, 1}, {3061, 1}, {11490, 1}, {11488, 1}, {21103, 1}, {7368, 1},
- -- Pearls
- {820, 2}, {3554, 2}, {3033, 2}, {7403, 2}, {3028, 2}, {3034, 2}, {3027, 2}, {3326, 2}, {7428, 2}, {3026, 2}
- )
- elseif (label == "Stamina") then
- CS.CheckStamina()
- elseif (label == "BankNPC") then
- CS.Bank()
- elseif (label == "Withdraw") then
- CS.Withdraw(FoodID, 100, 1)
- elseif (label == "PotionsNPC") then
- CS.BuySupplies()
- elseif (label == "DoorNorth") then
- CS.OpenDoor("NORTH")
- wait(1000)
- elseif (label == "DoorSouth") then
- CS.OpenDoor("SOUTH")
- wait(1000)
- elseif (label == "doTask") then
- Walker.ConditionalGoto(doBloodTask or doRotTask, "takeTask", "skipTask")
- elseif (label == "Terrence") then
- if doRotTask then
- CS.Talk({"rot", "rot"}, "Terrence")
- end
- if doBloodTask then
- CS.Talk({"blood", "blood"}, "Terrence")
- end
- elseif (label == "checkSell") then
- Walker.ConditionalGoto(sellItems, "goSell", "skipSell")
- elseif (label == "Sell") then
- CS.Sell({"Metal Spats"}, "trade")
- elseif (label == "PreCheck") then
- CS.PreCheck()
- elseif (label == "CheckSupplies") then
- CS.CheckBefore("dp", "ToHunt")
- elseif(label == "Check") then
- CS.Check()
- end
- end
- --========MODULES======================--
- if bpReopen then
- Module.Start('BP_Reconnect')
- end
- if dropVials then
- Module.Start('Drop_Vials')
- end
- if screenShot then
- Module.Start('Screenshot')
- end
- if manaRestore then
- Module.Start('Mana_Restore')
- end
- if doRootsTask then
- Module.Start('Roots')
- end
- Module.Start('Move_Supplies')
- nTargeting = "[EK] Oramond West Tasker"
- lTargeting = "[EK] Oramond West Tasker extra"
- if lMode then
- Module.Start('Lure')
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement