XenoBot Forums - Powered by vBulletin

User Tag List

Page 4 of 4 FirstFirst ... 234
Results 31 to 35 of 35

Thread: I Came From Windbot

  1. #31
    Moderator shadowart's Avatar
    Join Date
    Dec 2014
    Location
    Sweden
    Posts
    1,985
    Mentioned
    225 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by Trykon View Post
    elseif(labelName == "BuyPots")then
    Walker.Stop()
    Self.SayToNpc("hi")
    wait(200,1000)
    Self.SayToNpc("trade")
    wait(200, 1000)
    Self.ShopBuyItemsUpTo(HpPot, HpMax)
    wait(200, 1000)
    Self.ShopBuyItemsUpTo(ManaPot, ManaMax)
    wait(1000)
    Walker.Start()

    this is my that I use
    A 200-1000ms wait after saying "trade" is a bit short. I think you'll find that a lot of people will fail to trade when the wait time falls on the lower end of that range. Personally I use 1200ms + Self.Ping() as a minimum, but when you're selling stuff it's actually possible to use the sale count to accurately determine whether the trade window is open yet (the sale count will always be 0 if the trade window isn't open).

    Also, there is no need to use Walker.Stop/Walker.Start at labels, the bot walker automatically stops while it is executing code at labels.

  2. #32
    Senior Member Trykon's Avatar
    Join Date
    Nov 2014
    Location
    UK
    Posts
    952
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by shadowart View Post
    A 200-1000ms wait after saying "trade" is a bit short. I think you'll find that a lot of people will fail to trade when the wait time falls on the lower end of that range. Personally I use 1200ms + Self.Ping() as a minimum, but when you're selling stuff it's actually possible to use the sale count to accurately determine whether the trade window is open yet (the sale count will always be 0 if the trade window isn't open).

    Also, there is no need to use Walker.Stop/Walker.Start at labels, the bot walker automatically stops while it is executing code at labels.
    about stop you are right, it is just something I do since I started scripting
    about 200ms... never had problems with this myself, as the mater of fact i have wait(200) used on deposit gold label, works perfectly
    All my full afk scripts are accessible at:
    My thread
    My store
    My project
    Looking for RL Tibia testers - RP and EK scripts for FREE. Link to info.

  3. #33
    Moderator shadowart's Avatar
    Join Date
    Dec 2014
    Location
    Sweden
    Posts
    1,985
    Mentioned
    225 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by Trykon View Post
    about stop you are right, it is just something I do since I started scripting
    about 200ms... never had problems with this myself, as the mater of fact i have wait(200) used on deposit gold label, works perfectly
    How long wait you need is different for different persons on different computers and different connections. When you share scripts with others you have to take care so that they work for people with high ping and frequent freezes. Also, the wait doesnt matter at all on deposit gold. It's when you're trading that it is important, it takes some extra time for the trade window to open after you say "trade" and if the trade window isnt open when you call the selling function it will see that you don't have any sellable items and walk away without selling anything. This is exactly what happened for Duuhduuh here, changing the wait to 5000ms is a bit overkill but increasing the wait time was the right move.

  4. #34
    Senior Member Trykon's Avatar
    Join Date
    Nov 2014
    Location
    UK
    Posts
    952
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by shadowart View Post
    How long wait you need is different for different persons on different computers and different connections. When you share scripts with others you have to take care so that they work for people with high ping and frequent freezes. Also, the wait doesnt matter at all on deposit gold. It's when you're trading that it is important, it takes some extra time for the trade window to open after you say "trade" and if the trade window isnt open when you call the selling function it will see that you don't have any sellable items and walk away without selling anything. This is exactly what happened for Duuhduuh here, changing the wait to 5000ms is a bit overkill but increasing the wait time was the right move.
    yup you r right
    All my full afk scripts are accessible at:
    My thread
    My store
    My project
    Looking for RL Tibia testers - RP and EK scripts for FREE. Link to info.

  5. #35

    Join Date
    Jun 2013
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    U both are great! My script is working. One question is if Safe PVP works on OTSERVERS. I actually used like I saw in another thread = 1st priority GFB and second SD then if player on screen then fall to SD.. Is it correct? But got PK..

    Another doubt is that in "WB" I used a "context menu>invite to party if not invited and join party if invited". How can I make it?

Posting Permissions

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