change function in elven island Tstone
Posted: Thu May 12, 2016 12:44 pm
guys i need help for this script,they fix phirius and now you have npc for buy charge.i'd like change this macro for check phirius in backpack and after around 500 phirius in backpack i'd like character go to varanas phirius npc and buy charge...so now the point:
1-i must add the function for check phirius in backpack,if i have 500 or something character go to varanas and not after each dailies
2-this small script must be change check phirius and after i add my script "MAKEFUSION.xml"for go to buy charge
ty guys:)
1-i must add the function for check phirius in backpack,if i have 500 or something character go to varanas and not after each dailies
2-this small script must be change check phirius and after i add my script "MAKEFUSION.xml"for go to buy charge
Code: Select all
local dqCount, dqPerDay = RoMScript("Daily_count()");
if dqPerDay == dqCount then
phirCoins = inventory:itemTotalCount(203038)
print("We have "..phirCoins.." phirius coins")
amountToBuy = phirCoins / 100
print("trying to buy "..amountToBuy.." 10x arcane transmutor charges packs")
repeat
buycharges()
yrest(1000);
amountToBuy = amountToBuy - 1
if RoMScript("IsMagicBoxEnable()") then
while inventory:itemTotalCount(202928) >0 do
inventory:useItem(202928)
end
end
yrest(10);
print("Using 10x arcane transmutor pack")
until 1 > amountToBuy
loadPaths("makefusion.xml");