View Full Version : Need help making script
desche188
06-14-2012, 12:39 PM
hi i am going to make a rookgaard script that does orcs and does chain arm quest and i was wondering if a scripter could help me make script that when is goes to checker it
checks
1.cap ~50
2.small health potions
and also if possible have an else if label 'BuyPotions' it sells small health potions and buys small health potions
anyone that can help is really appreciated
desche188
06-14-2012, 01:13 PM
anyone?
Here you go
--===========##[LABEL MANAGER]##===========--
displayInformationMessage("What ever the hell you want can go here")
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
local func = loadstring(labelName)
if(func)then func()
end
end
--===========##[FUNCTIONS]##===========--
function checkAll() -- you can edit this label, but keep the () in walker as well as this lua
if (Self.Cap() < 50 or Self.ItemCount(266) < 20) then
gotoLabel("leaveHunt")
else
gotoLabel("startHunt")
end
end
function buyPotions() --again, you can edit label, but keep the () in the walker and this lua
delayWalker(15000)
Self.SayToNpc({"hi", "trade"}, 65)
wait(900, 1200)
while (Self.ItemCount(266) < 50) do --edit this number to how many pots you want it to buy
Self.ShopBuyItem(266, (50-Self.ItemCount(266))) -- buys amount of manas to equal BuyMP
wait(200, 500)
end
end
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.