Magic Level Trainer + Supplies Buyer
Description: It will purchase supplies on magic shop npc and use specified magic/potion on character to improve magic skill.
How to add it to your script:
- Make sure you have enough cash on character to buy potions for a while.
- Place character close to a magic shop npc (3 sqm or less, works on any magic shop npc).
- Create a new action on Actions > List.
- Copy/Paste action code.
- Set SpamRate to 1000.
- Enable.
Action Code:
Lua Code:
--[[
Name: Simple Magic Level Trainer by BlakW
Version: 1.0.0
]]--
--Potion to use/buy:
local potionName = ("mana potion")
--Total amount of potions to buy each time it reach 0 amount:
local potionAmount = 500
--Spell to cast:
local spellToCast = ("exura vita")
--Engine:
if itemcount(potionName) >= 1 and mppc >= 50
then
cast(spellToCast)
cooldown(spellToCast)
elseif itemcount(potionName) >= 1 and mppc < 50
then
useitemontarget(potionName, name)
wait(1000, 1300)
elseif itemcount(potionName) == 0
then
say("hi")
wait(2000)
while ((itemcount(285) + itemcount(284) + itemcount(283)) >= 10)
do
npcsay("vials")
wait(1000, 1200)
npcsay("yes")
wait(1000, 1200)
end
wait(1000, 1200)
npcsay("trade")
wait(1000, 1200)
buyitemsupto(potionName, potionAmount)
wait(1000, 1200)
end