XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 7 of 7

Thread: Refiller question.

  1. #1

    Join Date
    Jul 2012
    Posts
    26
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    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???

  2. #2

    Join Date
    Jul 2012
    Posts
    26
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Anyone?

  3. #3

    Join Date
    Sep 2015
    Posts
    25
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Mony View Post
    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.

  4. #4
    Senior Member Jontor's Avatar
    Join Date
    Sep 2014
    Posts
    446
    Mentioned
    51 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Mony View Post
    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?

  5. #5

    Join Date
    Jul 2012
    Posts
    26
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    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

  6. #6
    Senior Member Jontor's Avatar
    Join Date
    Sep 2014
    Posts
    446
    Mentioned
    51 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Mony View Post
    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

  7. #7

    Join Date
    Jul 2012
    Posts
    26
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    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 .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •