Signup Now
Results 1 to 3 of 3
  1. #1
    Wind Powered Wario's Avatar
    Join Date
    Mar 2017
    Posts
    44
    Reputation
    9
    Rep Power
    0

    Auto responder tweak

    Hello,

    I use this script: https://forums.tibiawindbot.com/show...Auto-Responder

    Turns out that sometimes I'm on the town (refilling) and people are talking to other people at the Default chat and the bot starts to talk aswell (although they are not talking to me).

    The solution I tought was to change it to only answer messages at the Default chat when in cave (Spawn or Cave waypoint sections, that can be multiple sections).

    But I don't know how to make this change, can someone help me?

  2. #2
    Free User Cisco's Avatar
    Join Date
    Aug 2014
    Location
    Brazil
    Posts
    1,423
    Reputation
    119
    Rep Power
    24
    Quote Originally Posted by Wario View Post
    Hello,

    I use this script: https://forums.tibiawindbot.com/show...Auto-Responder

    Turns out that sometimes I'm on the town (refilling) and people are talking to other people at the Default chat and the bot starts to talk aswell (although they are not talking to me).

    The solution I tought was to change it to only answer messages at the Default chat when in cave (Spawn or Cave waypoint sections, that can be multiple sections).

    But I don't know how to make this change, can someone help me?
    This is normal. The action understands that someone is talking to you, so answer. You need to have the persistent deactivated when you are out of the hunt.v

    example: name Persistent: AutoResponder

    setsetting('Persistent/Scripts/AutoResponder/Enabled', 'no')


    auto(1000)
    local HuntSections = {'Hunt'} --{'Hunt'} or {'Floor 1', 'Floor 2'}

    if $connected then
    if table.find(HuntSections, $wptsection) then
    setsetting('Persistent/Scripts/AutoResponder/Enabled', 'yes')
    else
    setsetting('Persistent/Scripts/AutoResponder/Enabled', 'no')
    end
    end


    If the action is in cavebot...

    example: name Cavebot Persistent: AutoResponder

    setsetting('Cavebot/Scripts/AutoResponder/Enabled', 'no')


    auto(1000)
    local HuntSections = {'Hunt'} --{'Hunt'} or {'Floor 1', 'Floor 2'}

    if $connected then
    if table.find(HuntSections, $wptsection) then
    setsetting('Cavebot/Scripts/AutoResponder/Enabled', 'yes')
    else
    setsetting('Cavebot/Scripts/AutoResponder/Enabled', 'no')
    end
    end

  3. #3
    Wind Powered Wario's Avatar
    Join Date
    Mar 2017
    Posts
    44
    Reputation
    9
    Rep Power
    0
    I got your point, but I don't think it's the ideal solution, because if someone PMs me when I'm refilling, it won't answer.

    I believe that the perfect solution would be:
    place something like HuntSections = {'Section1,'Section2',...} at the top.
    then, we should change lines 150 and 185 to something like if m.type ~= MSG_PVT and $wptsection ~= HuntSections then

    I tried to do something like this, but I don't know how to make the bot reads the sections if it's more than one (make a table?).

    I believe that a more experienced and brilliant scripter like you can do something like this!

 

 

Posting Permissions

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