View Full Version : Refiller question.
Hey all,
I've just re-subbed to Xeno after a 6 month break. I created own script from scratch (using quite a bit of Biesja Team code (dont worry BT if your still around, I won't distribute or claim I made it) and the whole script works barring the refiller. Before it was Hi, Vials, Yes, blah blah but now it doesnt work.
I was wondering if anyone would know a fix (I also tried looking at other scripts for the fix but for some reason they all open in a temporary .xblua file these days).
Thanks in advance,
Mony
p.s. wheat happened to Xenobot and where has everyone gone???
yoyoa1
01-24-2016, 01:12 PM
Hey all,
p.s. wheat happened to Xenobot and where has everyone gone???
Xeno is dead, everyone moved (and is moving) to better alternatives and xeno creators are trying to milk $$$ until they can.
Jontor
01-24-2016, 05:47 PM
Anyone? :(
There was a forum wipe some time ago, that's why it looks so empty.
Can you describe the problem you're having? Show a part of code which is not working?
Ahh OK, thanks for the heads up. Here is the code that doesn't appear to be working.
--[[BuyPotions&Runes]]--
elseif (labelName == "BuyPotions") then
print("Buying Potions")
Walker.Stop()
Self.SayToNpc({"hi", "vial", "yes", "yes", "trade", "magic"}, 65)
wait(900, 1200)
Self.ShopBuyItemsUpTo(ManaPotID, MaxManaPot)
wait(500,900)
Self.ShopBuyItemsUpTo(ManaPotID, MaxManaPot)
wait(500,900)
Self.ShopBuyItemsUpTo(ManaPotID, MaxManaPot)
wait(500,900)
Self.ShopBuyItemsUpTo(ManaPotID, MaxManaPot)
wait(500,900)
Self.ShopBuyItemsUpTo(ManaPotID, MaxManaPot)
wait(500,900)
Self.ShopBuyItemsUpTo(ManaPotID, MaxManaPot)
wait(500,900)
Walker.Start()
Apparently, Hi, Vial, Yes isn't accepted anymore. I also tried to change it to Hi, Trade.. etc.. but that also didn't work so I'm not sure on how the buying mechanics are scripted.
Thanks :).
Mony
Jontor
01-24-2016, 09:15 PM
Ahh OK, thanks for the heads up. Here is the code that doesn't appear to be working.
--[[BuyPotions&Runes]]--
elseif (labelName == "BuyPotions") then
print("Buying Potions")
Walker.Stop()
Self.SayToNpc({"hi", "vial", "yes", "yes", "trade", "magic"}, 65)
wait(900, 1200)
Self.ShopBuyItemsUpTo(ManaPotID, MaxManaPot)
wait(500,900)
Self.ShopBuyItemsUpTo(ManaPotID, MaxManaPot)
wait(500,900)
Self.ShopBuyItemsUpTo(ManaPotID, MaxManaPot)
wait(500,900)
Self.ShopBuyItemsUpTo(ManaPotID, MaxManaPot)
wait(500,900)
Self.ShopBuyItemsUpTo(ManaPotID, MaxManaPot)
wait(500,900)
Self.ShopBuyItemsUpTo(ManaPotID, MaxManaPot)
wait(500,900)
Walker.Start()
Apparently, Hi, Vial, Yes isn't accepted anymore. I also tried to change it to Hi, Trade.. etc.. but that also didn't work so I'm not sure on how the buying mechanics are scripted.
Thanks :).
Mony
You don't need to call 'Self.ShopBuyItemsUpTo(ManaPotID, MaxManaPot)' multiple times and you should change Self.SayToNpc to Self.SayToNpc({"hi", "trade"}, 65), then add Self.ShopSellFlasks()
Btw, is it printing "Buying Potions" or not? Maybe there's something wrong with your labels handling
Ahh I get ya! (Yeah the 6 attempts were in the BT script which i used).
It's only supposed to be buying mana potions and the MaxManaPot and ManaPotID (variables? the correct terminology?) are specified at the top of the script.
I've amended and tested and it works perfectly, thanks a lot mate :D.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.