Ok, I will not bump this thread.
Ok, I will not bump this thread.
pro hakier
Code:enum MessageClasses { MESSAGE_STATUS_CONSOLE_BLUE = 0x04, MESSAGE_STATUS_CONSOLE_RED = 0x0D, MESSAGE_STATUS_DEFAULT = 0x11, MESSAGE_STATUS_WARNING = 0x12, MESSAGE_EVENT_ADVANCE = 0x13, MESSAGE_STATUS_SMALL = 0x14, MESSAGE_INFO_DESCR = 0x15, MESSAGE_DAMAGE_DEALT = 0x16, MESSAGE_DAMAGE_RECEIVED = 0x17, };
Come on just make Self.Balance(). That is few minute for you DarkstaR. We can not make full afk scripts without balance & market
You can do:
Self.Money counts the coins you have and math it by his value, similar to Self.Balance()Code:elseif (labelName == "CheckWithdraw") then Walker.Stop() if Self.Money() < maxAmount then os.exit() else print("Enough Balance, continuing...") end Walker.Start()
Stop spamming plx
Last edited by maroxy; 08-17-2014 at 08:59 PM.
Self.Money() doesn't count gold in nested backpacks. Of course one could go through all bps and count all money, but it is much better and simplier to use Self.Balance . And if we want to check if we have enough money to withdraw, we are force to map starting balance of all characters and then count gold in nested backpacks and play with adding/substrackting and writing that value to file.
pro hakier
Code:enum MessageClasses { MESSAGE_STATUS_CONSOLE_BLUE = 0x04, MESSAGE_STATUS_CONSOLE_RED = 0x0D, MESSAGE_STATUS_DEFAULT = 0x11, MESSAGE_STATUS_WARNING = 0x12, MESSAGE_EVENT_ADVANCE = 0x13, MESSAGE_STATUS_SMALL = 0x14, MESSAGE_INFO_DESCR = 0x15, MESSAGE_DAMAGE_DEALT = 0x16, MESSAGE_DAMAGE_RECEIVED = 0x17, };
Well... there is still a way to do it. You can try to withdraw 10k several times until the money you have in your containers doesn't change. Then you can repeat the procedure with platinums and gold coins. Sounds insane but hey you still got a solution![]()
lua code:elseif (labelName == "DepositGold") then
Walker.Stop()
Self.SayToNpc({"hi", "deposit all", "yes"}, 100)
local withdrawManas = math.max(_MaxManas - Self.ItemCount(_ManaPotionID), 0)*_ManaCost
local withdrawThunders = math.max(_MaxThunders - Self.ItemCount(_ThundersID), 0)*_ThundersCost
local total = math.abs(withdrawManas + withdrawThunders)
if total >= 1 then
Self.SayToNpc({"withdraw " .. total, "yes", "balance"}, 100)
end
local monny = math.max(Self.ItemCount(3031) + (Self.ItemCount(3035) * 100) + (Self.ItemCount(3043) * 10000))
if monny < total then
os.exit()
else
print("Enough Balance")
end
Walker.Start()
lua code:local monny = math.max(Self.ItemCount(3031) + (Self.ItemCount(3035) * 100) + (Self.ItemCount(3043) * 10000))
if monny < total then
os.exit()
else
print("Enough Balance")
end
Did it naaps, enjoy!
It won't work.
pro hakier
Code:enum MessageClasses { MESSAGE_STATUS_CONSOLE_BLUE = 0x04, MESSAGE_STATUS_CONSOLE_RED = 0x0D, MESSAGE_STATUS_DEFAULT = 0x11, MESSAGE_STATUS_WARNING = 0x12, MESSAGE_EVENT_ADVANCE = 0x13, MESSAGE_STATUS_SMALL = 0x14, MESSAGE_INFO_DESCR = 0x15, MESSAGE_DAMAGE_DEALT = 0x16, MESSAGE_DAMAGE_RECEIVED = 0x17, };