XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 6 of 6

Thread: xlog if no more small stones?

  1. #1

    Join Date
    Dec 2014
    Posts
    115
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    xlog if no more small stones?

    a very simple script I guess can u pls help me? I have no talent in scripting

  2. #2
    Senior Member Unuke12345's Avatar
    Join Date
    Aug 2012
    Posts
    993
    Mentioned
    130 Post(s)
    Tagged
    1 Thread(s)
    if (Self.ItemCount(ID) == 0) then
    os.exit()
    end

  3. #3

    Join Date
    Dec 2014
    Posts
    115
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    thanks a lot do I have to change (ID) to the small stones id ? if I change ID to the ID of small stones the script wont load
    Last edited by holos; 02-04-2015 at 05:37 PM.

  4. #4
    Senior Member Xeromex's Avatar
    Join Date
    Aug 2012
    Location
    Netherlands
    Posts
    2,201
    Mentioned
    117 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by holos View Post
    thanks a lot do I have to change (ID) to the small stones id ? if I change ID to the ID of small stones the script wont load
    I guess you need to add a loop?

    lua code:

    while true do
    if (Self.ItemCount(ID) == 0) then
    os.exit()
    end
    end

  5. #5

    Join Date
    Dec 2014
    Posts
    115
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    what do u mean by loop ? I mean now the script kind of works if I dont have small stones anymore it will xlog but it laggs like shit when I still have small stones wtf ? fixes?

  6. #6

    Join Date
    Dec 2014
    Posts
    115
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    while true do
    if Self.ItemCount("small stone") < 1 then
    os.exit()
    end
    wait(200)
    end
    well I tried this out and it worked good but thanks anyways :-)

Posting Permissions

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