Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mainbp = getuseroption('mainbp')
- if $level >= 50 then
- local CapForPots = math.ceil((30 - itemcount("strong mana potion", mainbp)) * 2.9)
- else
- local CapForPots = math.ceil((30 - itemcount("mana potion", mainbp)) * 2.7)
- end
- local CAP = $cap - 50
- local RsToBuy = math.floor((CAP - CapForPits) / 25)
- if not islocation(1) then
- gotolabel(0)
- else
- waitping()
- if RsToBuy > 0 then
- say("hi")
- wait(1500,1800)
- npcsay("trade")
- wait(500,600)
- buyitems("royal spear", RsToBuy)
- waitping()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement