Signup Now
Page 19 of 65 FirstFirst ... 9171819202129 ... LastLast
Results 181 to 190 of 647
  1. #181
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,437
    Reputation
    309
    Rep Power
    31
    Quote Originally Posted by Dworak View Post
    @Raphael

    This Lib will be Included in newest bot Version ? ;> because with this one Hotkey for loot pick uping works and with this one in 1.3.0 isn't ;>
    Regards
    Yes, @Lucas Terra 's fixed lib should be included in the next release.
    By the way, don't bold when tagging, it makes tagging not work.

  2. #182
    Wind Powered
    Join Date
    Dec 2013
    Location
    dvscripts.com
    Posts
    7,098
    Reputation
    433
    Rep Power
    42
    Okey, and There will be any Advanced area rune shooter? not only shootarerune() ?

  3. #183
    Free User rick_mandela's Avatar
    Join Date
    Dec 2013
    Location
    São Paulo, Brazil
    Posts
    60
    Reputation
    11
    Rep Power
    24
    Originally Posted by So Kol
    Hello. I'm lookin' for hotkey supplies checker, if its lower then set in supplies the bot will turn off the targetin and go to wpt refill

    Quote Originally Posted by Raphael View Post
    Try it out.
    Make sure you have different waypoint sections for hunting and refilling, else it will fuck up.

    init start
    local huntSection = 'hunt' -- Hunting section
    local reffilSection = 'refill' -- Refill section; must be diff from hunting
    local reffilLabel = 'goback' -- Refill label
    init end

    auto(100, 200)
    if needresupply(math.huge, '') and $wptsection == huntSection then
    set('Targeting/Enabled', 'no')
    gotolabel(reffilLabel, reffilSection)
    end
    Raphael, is not better if instead set targeting off, set all creatures "only if traped" ? I was thinking about this because they could be trapped easily, not?

  4. #184
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,437
    Reputation
    309
    Rep Power
    31
    Quote Originally Posted by rick_mandela View Post
    Originally Posted by So Kol
    Hello. I'm lookin' for hotkey supplies checker, if its lower then set in supplies the bot will turn off the targetin and go to wpt refill



    Raphael, is not better if instead set targeting off, set all creatures "only if traped" ? I was thinking about this because they could be trapped easily, not?
    Surely, it would.
    This involves problems such as listing the creatures manually and, well... was not what he requested.

  5. #185
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,437
    Reputation
    309
    Rep Power
    31
    Quote Originally Posted by Dworak View Post
    Okey, and There will be any Advanced area rune shooter? not only shootarerune() ?
    shootarearune works perfectly, I see no reason to make a different one;

  6. #186
    Wind Powered
    Join Date
    Dec 2013
    Location
    dvscripts.com
    Posts
    7,098
    Reputation
    433
    Rep Power
    42
    Quote Originally Posted by Knimexax View Post
    Hello

    I got question, how make persistent hotkey looks like this:

    if player attack go to label GoinToTown and log out.

    Thanks for answer

    auto(200)
    if $pattacker.id ~= 0 then
    gotolabel("LabelName","Section")
    end

  7. #187
    Free User
    Join Date
    Jan 2014
    Posts
    77
    Reputation
    11
    Rep Power
    24
    Hello I used this script to not be disturbed by all those lvl 1 spamming about goldselling etc, can you remake so it suits Windbot?

    Code:
     
    local CONFIG = {
     
        MINIMUM_LEVEL = 10,              --  It'll play alarm with people that are highest than this level
    }
     
     
    --[[ DON'T EDIT BELOW THIS LINE --]]
     
     
    AUTO_ALERTS = AUTO_ALERTS or {
     
        TIME_BETWEEN_RESPONCES = 2,
     
        RESPONCE_TIMER = os.time(),
     
        INITIALIZED = false
     
    }
     
     
    if not AUTO_ALERTS.INITIALIZED then
        setsettings("Settings\\Alerts\\Message\\PrivateMessage\\PlaySound", "no")
        print('AUTO_ALERTS: Alets for private message changed in bot.')
        AUTO_ALERTS.INITIALIZED = true
    end
     
     
    local MESSAGES = getnewmessages("Local Chat")
     
     
    for INDEX = 0, MESSAGES.count - 1 do
     
        local m = {text = MESSAGES[INDEX].text, sender = MESSAGES[INDEX].sender or '', type = MESSAGES[INDEX].type, content = MESSAGES[INDEX].text:match('%b[]: (.+)') or '', time = MESSAGES[INDEX].text:sub(1, 5), level = tonumber((tostring(string.match(MESSAGES[INDEX].text, '.+ (%b[]): .+')):gsub("[^%d]", ''))) or 0}
     
        if m.sender:lower() ~= name:lower() and table.find({6}, m.type) and m.level >= CONFIG.MINIMUM_LEVEL and os.difftime(os.time(), AUTO_ALERTS.RESPONCE_TIMER) >= AUTO_ALERTS.TIME_BETWEEN_RESPONCES then
                playsound('private.wav')
        end
     
    end

  8. #188
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,437
    Reputation
    309
    Rep Power
    31
    Quote Originally Posted by brallan View Post
    Hello I used this script to not be disturbed by all those lvl 1 spamming about goldselling etc, can you remake so it suits Windbot?

    Code:
     
    local CONFIG = {
     
        MINIMUM_LEVEL = 10,              --  It'll play alarm with people that are highest than this level
    }
     
     
    --[[ DON'T EDIT BELOW THIS LINE --]]
     
     
    AUTO_ALERTS = AUTO_ALERTS or {
     
        TIME_BETWEEN_RESPONCES = 2,
     
        RESPONCE_TIMER = os.time(),
     
        INITIALIZED = false
     
    }
     
     
    if not AUTO_ALERTS.INITIALIZED then
        setsettings("Settings\\Alerts\\Message\\PrivateMessage\\PlaySound", "no")
        print('AUTO_ALERTS: Alets for private message changed in bot.')
        AUTO_ALERTS.INITIALIZED = true
    end
     
     
    local MESSAGES = getnewmessages("Local Chat")
     
     
    for INDEX = 0, MESSAGES.count - 1 do
     
        local m = {text = MESSAGES[INDEX].text, sender = MESSAGES[INDEX].sender or '', type = MESSAGES[INDEX].type, content = MESSAGES[INDEX].text:match('%b[]: (.+)') or '', time = MESSAGES[INDEX].text:sub(1, 5), level = tonumber((tostring(string.match(MESSAGES[INDEX].text, '.+ (%b[]): .+')):gsub("[^%d]", ''))) or 0}
     
        if m.sender:lower() ~= name:lower() and table.find({6}, m.type) and m.level >= CONFIG.MINIMUM_LEVEL and os.difftime(os.time(), AUTO_ALERTS.RESPONCE_TIMER) >= AUTO_ALERTS.TIME_BETWEEN_RESPONCES then
                playsound('private.wav')
        end
     
    end
    Sorry, I'm not really into reading others' codes.
    If you have a request, please try and describe it.

  9. #189
    Free User
    Join Date
    Jan 2014
    Posts
    77
    Reputation
    11
    Rep Power
    24
    Quote Originally Posted by Raphael View Post
    Sorry, I'm not really into reading others' codes.
    If you have a request, please try and describe it.
    You're kidding me right?

    "Hello I used this script to not be disturbed by all those lvl 1 spamming about goldselling etc,"

    If that isn't enough, this code alert when bot gets messaged by other players but if the player is below X lvl there wont be any alerttone

  10. #190
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,437
    Reputation
    309
    Rep Power
    31
    Quote Originally Posted by brallan View Post
    You're kidding me right?

    "Hello I used this script to not be disturbed by all those lvl 1 spamming about goldselling etc,"

    If that isn't enough, this code alert when bot gets messaged by other players but if the player is below X lvl there wont be any alerttone
    No I'm not, your previous description is vague. This one works, though.

    init start
    local minLevel = 8
    init end

    auto(100)
    foreach newmessage m do
    if m.type == MSG_PVT and m.level >= minLevel then
    playsound('privatemessage.wav')
    end
    end
    Last edited by Raphael; 01-25-2014 at 05:04 PM.

 

 

Posting Permissions

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