Tip
05-15-2016, 10:07 PM
Okey so im trying to make the last part of my 100% afk script and im missing the "sell to npc" part
so what i am asking for is a label like the one posted below, but for selling 100x halberds. would love it if someone could help me out.
"elseif (labelName == "DepositGold") then
-- Deposit Gold, check balance.
Walker.Stop()
Self.SayToNpc({"hi", "deposit all", "yes"}, 100)
local withdrawManas = math.max(BuyMana - Self.ItemCount(ManaID), 0)*ManaCost
local withdrawHealths = math.max(BuyHealth - Self.ItemCount(HealthID), 0)*HealthCost
local total = math.abs(withdrawManas + withdrawHealths)
if total >= 1 then
Self.SayToNpc({"withdraw " .. total, "yes", "balance"}, 100)
end
Walker.Start()
"
So a action like this one but with selling to an npc instead :) (Y)
so what i am asking for is a label like the one posted below, but for selling 100x halberds. would love it if someone could help me out.
"elseif (labelName == "DepositGold") then
-- Deposit Gold, check balance.
Walker.Stop()
Self.SayToNpc({"hi", "deposit all", "yes"}, 100)
local withdrawManas = math.max(BuyMana - Self.ItemCount(ManaID), 0)*ManaCost
local withdrawHealths = math.max(BuyHealth - Self.ItemCount(HealthID), 0)*HealthCost
local total = math.abs(withdrawManas + withdrawHealths)
if total >= 1 then
Self.SayToNpc({"withdraw " .. total, "yes", "balance"}, 100)
end
Walker.Start()
"
So a action like this one but with selling to an npc instead :) (Y)