XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 10 of 20

Thread: Help If NO spears

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #16

    Join Date
    Feb 2013
    Location
    brazil
    Posts
    112
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lua code:

    local spearID = 7378 -- set the spear id. [7378 = royal spear], [3277 = regular spear]
    local spearOFF = 3 -- set the spear amount to turn off targetting
    local Targetting = true

    while(true)do
    if ((Self.ItemCount(spearID) <= spearOFF) and Targetting) then
    setTargetingEnabled(false)
    Targetting = false
    elseif ((Self.ItemCount(spearID) > spearOFF) and not Targetting) then
    setTargetingEnabled(true)
    Targetting = true
    end
    wait(200, 600)
    end


    btw you can use (xcode=lua) and (/xcode) to wrap lua codes in that colorfull gay style, but using brackets [ ] instead of parenthesis ()
    Last edited by icaro43; 04-01-2013 at 01:40 PM.
    said no one ever

Posting Permissions

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