Hey
My question is, how can i get the current amount of my own currency for example to compare it with something
Thanks for answers
Greetings BUH
Question: How to get amount of my own gold/diamonds etc.. in a .lua script
Re: Question: How to get amount of my own gold/diamonds etc.. in a .lua script
Jack-of-all-trades, but master-of-only of a few
My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226
My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226
Re: Question: How to get amount of my own gold/diamonds etc.. in a .lua script
Here is some code from lisa or rock I added some coments
-- guild honor
Code: Select all
local btokens = inventory:itemTotalCount(203038) --checks for tokens in first 2 bags only
local tokencount = 0
for slotnumber = 1,40 do
local name, id, count, slot = bankItemBySlot(slotnumber)
if id == 204874 then -- phirius tokens
local tokencount = tokencount + count
end
end
local tokens = btokens + tokencount
readfile:close()
local empties = inventory:itemTotalCount(0) -- empty bag spaces
local gold = RoMScript('GetPlayerMoney("copper");') -- gold
local shells = getCurrency("shell") --phirus shells
local tokens = inventory:itemTotalCount(203038) --phirus tokens
local puris = inventory:itemTotalCount("Purified Fusion Stone","itemshop")
local mems = getCurrency("mems") --momentos
local ch = RoMScript("GetMagicBoxEnergy()") --transmuter charges
local dahonor = getCurrency("honor")
Who is online
Users browsing this forum: No registered users and 8 guests