Umbled
05-29-2013, 02:02 PM
Hello, I decided to re-make my LUA so I could use it for my pally, I just added so it would buy an different kind of potion
and arrows. For some reason the checker doesn't work now... But it works buying the items. Could anyone take a look?
http://www.speedyshare.com/u3bAp/ZIPPOW-S-HIVE-RP.lua
or else:
http://pastebin.com/wZcT56G9
Xeromex
05-29-2013, 02:11 PM
function onWalkerSelectLabel(labelName)
if (labelName == "Check") then
if (Self.ItemCount(mpID) > minMP) and (Self.ItemCount(ammoID) > minAMMO) then
gotoLabel("notyet")
else
gotoLabel("refill")
end
elseif (labelName == "Check2") then
if (Self.ItemCount(mpID) > minMP) or (Self.ItemCount(ammoID) > minAMMO) then
gotoLabel("Continue")
else
gotoLabel("refill")
end
elseif (labelName == "BuyPots") then
Walker.Stop()
Creature.Follow("Chartan")
Self.SayToNpc({"hi"}, 65)
wait(700,1000)
while ((Self.ItemCount(283)+Self.ItemCount(284)+Self.Ite mCount(285)) > 0) do
Self.SayToNpc({"vials", "yes", "yes"}, 65, 10)
wait(1200,1500)
end
Self.SayToNpc({"trade"}, 65)
wait(1500,3000)
while (Self.ItemCount(mpID) < buyMP) do
Self.ShopBuyItemsUpTo(mpID, buyMP)
wait(600,1100)
while (Self.ItemCount(ammoID) < buyAMMO) do
Self.ShopBuyItemsUpTo(ammoID, buyAMMO)
wait(600,1100)
end
end
Walker.Start()
elseif (labelName == "Banking") then
Walker.Stop()
Self.WithdrawMoney(priceMP*(buyMP-Self.ItemCount(mpID)))
wait(800, 1500)
Self.WithdrawMoney(priceAMMO*(buyAMMO-Self.ItemCount(ammoID)))
Walker.Start()
elseif (labelName == "Depot") then
Self.ReachDepot()
Self.DepositItems(
{9057, 0}, -- Small Topaz
{14225, 0}, -- Dung Ball
{14079, 1}, -- Crawler Head
{14083, 0}, -- Compound Eye
{14076, 1},
{14087, 0},
{3326, 0})
wait(2000)
end
end
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.