XenoBot Forums - Powered by vBulletin

User Tag List

Page 4 of 8 FirstFirst ... 23456 ... LastLast
Results 31 to 40 of 72

Thread: Self.Balance()

  1. #31
    Senior Member RoxZin xD's Avatar
    Join Date
    Feb 2012
    Location
    Rio de Janeiro
    Posts
    709
    Mentioned
    16 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by maroxy View Post
    This label must be after the withdraw one
    yeah, I know. But then, you wanna do a safe bank script. For x reasons you can fail withdrawing while still having money on bank, and then while u fail to withdraw you got an action to close bot if you didn't withdraw correctly. Boom, epic fail.
    You see, this is why XenoBot isn't the biggest bot, always people coming up with 'solutions' that aren't the real solution for it.

  2. #32
    Senior Member maroxy's Avatar
    Join Date
    Apr 2014
    Location
    EUW
    Posts
    897
    Mentioned
    137 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by RoxZin xD View Post
    yeah, I know. But then, you wanna do a safe bank script. For x reasons you can fail withdrawing while still having money on bank, and then while u fail to withdraw you got an action to close bot if you didn't withdraw correctly. Boom, epic fail.
    You see, this is why XenoBot isn't the biggest bot, always people coming up with 'solutions' that aren't the real solution for it.
    And, Why you dont try sir?

    You talk so much but I dont see your help.

    EDIT:

    You can add this:

    lua code:
    if Self.Position(x, z, y) then
    Walker.Goto("DepositGold")
    else
    Walker.Goto("BeforeDeposit")
    end


    Rekt.
    Last edited by maroxy; 08-19-2014 at 12:45 PM.


    Remember that the official XenoBot page is www.xenobot.net not xeno-bot.net or similar

  3. #33
    Lifetime Subscriber Stusse's Avatar
    Join Date
    Dec 2011
    Location
    solid-scripts.com
    Posts
    3,523
    Mentioned
    346 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by RoxZin xD View Post
    yeah, I know. But then, you wanna do a safe bank script. For x reasons you can fail withdrawing while still having money on bank, and then while u fail to withdraw you got an action to close bot if you didn't withdraw correctly. Boom, epic fail.
    You see, this is why XenoBot isn't the biggest bot, always people coming up with 'solutions' that aren't the real solution for it.
    I don't really see the big issue here...

    Pretty simple to see wether you've talked to Bank NPC or not. Same with if you fail to withdraw a couple of times it might be rectified to close the bot. Instead of having a NPC proxy that makes it possible for people to empty your whole bank-roll in a simple obfuscated script.

    /Stusse

  4. #34
    XenoBot Scripts Developer Syntax's Avatar
    Join Date
    Feb 2011
    Posts
    1,658
    Mentioned
    431 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by Stusse View Post
    I don't really see the big issue here...

    Pretty simple to see wether you've talked to Bank NPC or not. Same with if you fail to withdraw a couple of times it might be rectified to close the bot. Instead of having a NPC proxy that makes it possible for people to empty your whole bank-roll in a simple obfuscated script.

    /Stusse
    You can empty someone's bank roll today... NPC proxy won't help or hurt in that matter.
    I'd rather have NPC proxy than Self.Balance as it's obviously more versatile and allows specific error handling.

    Right now you can detect if something went wrong and retry X times, but that's the limit.
    With NPC proxy you could tell exactly what went wrong and how to correct the problem, or alert the user if you can't.

    If someone is pushing you, you could start a trasher or constantly step back to your position.
    If you have low funds, you can alert the user.
    If you haven't completed a quest you can alert the user / find an alternate route

    Specific error handling is a must for advanced scripts, obviously common scripters don't need this, but some of us do.
    Of all the feature requests, this is the one I want the most.

  5. #35

    Join Date
    Nov 2013
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If I am not mistaken 'Self.ItemCount(3031)' or 'Self.Money()' does not count money that is in nested containers (which are closed).
    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,
    };

  6. #36
    XenoBot Scripts Developer Joshwa534's Avatar
    Join Date
    May 2012
    Location
    Texas, USA
    Posts
    4,890
    Mentioned
    517 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by maroxy View Post
    You can add this:

    lua code:
    if Self.Position(x, z, y) then
    Walker.Goto("DepositGold")
    else
    Walker.Goto("BeforeDeposit")
    end


    Rekt.
    (My post below is not relevant to this thread.)

    Additionally, you can do:
    lua code:

    Walker.ConditionalGoto((Self.DistanceFromPosition(x, y, z) <= 1), 'DepositGold', 'BeforeDeposit')

    Also, your y & z coordinates were in the wrong locations. I hope these isn't seen as an offensive post but rather one that you, and whoever else sees it, can learn from. I like seeing Walker.ConditionalGoto being used instead of the method you posted, its less code and pretty simplified.
    Last edited by Joshwa534; 08-19-2014 at 08:49 PM.

  7. #37
    Senior Member maroxy's Avatar
    Join Date
    Apr 2014
    Location
    EUW
    Posts
    897
    Mentioned
    137 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Joshwa534 View Post
    (My post below is not relevant to this thread.)

    Additionally, you can do:
    lua code:

    Walker.ConditionalGoto((Self.DistanceFromPosition(x, y, z) <= 1), 'DepositGold', 'BeforeDeposit')

    Also, your y & z coordinates were in the wrong locations. I hope these isn't seen as an offensive post but rather one that you, and whoever else sees it, can learn from. I like seeing Walker.ConditionalGoto being used instead of the method you posted, its less code and pretty simplified.
    I usually use it, with checkers etc. Thanks for your post


    Remember that the official XenoBot page is www.xenobot.net not xeno-bot.net or similar

  8. #38
    Senior Member RoxZin xD's Avatar
    Join Date
    Feb 2012
    Location
    Rio de Janeiro
    Posts
    709
    Mentioned
    16 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by maroxy View Post
    And, Why you dont try sir?

    You talk so much but I dont see your help.

    EDIT:

    You can add this:

    lua code:
    if Self.Position(x, z, y) then
    Walker.Goto("DepositGold")
    else
    Walker.Goto("BeforeDeposit")
    end


    Rekt.
    Dude, stop. Seriously. What does a position checker offers to a safe bank script? Not really much, you didn't get my point but whatever. You want me to help? Sure. This would've helped a lot more, if it was possible.

    lua code:
    local minBankAmount = 10000 --example of gold on your bank to stop botting

    if Self.Balance() < minBankAmount then
    Walker.Stop()
    end


    Or another one, to read the NPC message ('There is not enough gold on your account.') and stop bot whenever a NPC says that.

    I'll show another example below of why a variable to return your bank balance is useful too.

    Quote Originally Posted by Stusse View Post
    I don't really see the big issue here...

    Pretty simple to see wether you've talked to Bank NPC or not. Same with if you fail to withdraw a couple of times it might be rectified to close the bot. Instead of having a NPC proxy that makes it possible for people to empty your whole bank-roll in a simple obfuscated script.

    /Stusse
    Well if you talk about cleaning someone's bank I'm sure I can obfuscate a code to deposit all gold, then keep withdrawing 10k until there's no more money, store the amount when it gets static, deposit all back and transfer that amount to my character. Won't take much to get cleaned. Also, to read NPC messages is a must. In fact, all kind of messages are a must. The only one that Darkstar did a great job on it was the orange message, no other bot can read it, but what about the others?

    A function to check your balance helps not only on bank, but on market functions also. Oh wait, XenoBot doesn't have these too, but even if it was available, you would need to check your balance before buying x item or making a market offer for y item.

    Once again, this bothers me much, lack of creativity not only from Darkstar to make his bot better and the users that got used to having so few functions/variables and having to deal with them or not knowing the power of different functions/variables.

    Edit:

    Quote Originally Posted by Syntax View Post
    You can empty someone's bank roll today... NPC proxy won't help or hurt in that matter.
    I'd rather have NPC proxy than Self.Balance as it's obviously more versatile and allows specific error handling.

    Right now you can detect if something went wrong and retry X times, but that's the limit.
    With NPC proxy you could tell exactly what went wrong and how to correct the problem, or alert the user if you can't.

    If someone is pushing you, you could start a trasher or constantly step back to your position.
    If you have low funds, you can alert the user.
    If you haven't completed a quest you can alert the user / find an alternate route

    Specific error handling is a must for advanced scripts, obviously common scripters don't need this, but some of us do.
    Of all the feature requests, this is the one I want the most.
    /\ THIS. Thanks, Syntax.

  9. #39
    Senior Member Chuitox's Avatar
    Join Date
    Dec 2011
    Posts
    811
    Mentioned
    208 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by RoxZin xD View Post


    Dude, stop. Seriously. What does a position checker offers to a safe bank script? Not really much, you didn't get my point but whatever. You want me to help? Sure. This would've helped a lot more, if it was possible.

    lua code:
    local minBankAmount = 10000 --example of gold on your bank to stop botting

    if Self.Balance() < minBankAmount then
    Walker.Stop()
    end


    Or another one, to read the NPC message ('There is not enough gold on your account.') and stop bot whenever a NPC says that.

    I'll show another example below of why a variable to return your bank balance is useful too.



    Well if you talk about cleaning someone's bank I'm sure I can obfuscate a code to deposit all gold, then keep withdrawing 10k until there's no more money, store the amount when it gets static, deposit all back and transfer that amount to my character. Won't take much to get cleaned. Also, to read NPC messages is a must. In fact, all kind of messages are a must. The only one that Darkstar did a great job on it was the orange message, no other bot can read it, but what about the others?

    A function to check your balance helps not only on bank, but on market functions also. Oh wait, XenoBot doesn't have these too, but even if it was available, you would need to check your balance before buying x item or making a market offer for y item.

    Once again, this bothers me much, lack of creativity not only from Darkstar to make his bot better and the users that got used to having so few functions/variables and having to deal with them or not knowing the power of different functions/variables.

    Edit:



    /\ THIS. Thanks, Syntax.
    Not my problem actually but you gotta understand something. Xenobot is not for the lazy one. There were plenty of functions lacking in many of the previous versions but no dedicated scripter went all fuzzy. I do agree and I have said many times that Xenobot lacks stuff that other bots have. You must be really into this thing if you want things to be done your way. Advanced spell casters, several checks, performance issues, tracking creatures and a long list of things that have been fixed after every new version.

    I have lived for years now with a simple check in banks and waiting patiently for new functions. It's more like... Really if you don't like the way it works you just migrate to another bot

    If you have more ideas you should post them here (http://forums.xenobot.net/showthread...02-Suggestions) Unless you have already done that

  10. #40

    Join Date
    Dec 2013
    Posts
    161
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    NPC Proxy or we riot

Posting Permissions

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