Signup Now
Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: Boatwatcher

  1. #11
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    22
    init start
    local SafeList = {"Bubble", "Eternal Oblivion"}
    local Leader = "Leader Name"

    -- DO NOT EDIT BELOW --
    local Seen, RefreshRate = {}, 120000 + $timems
    table.lower(SafeList)
    init end

    auto(200)

    foreach creature cre "psx" do
    if not table.find(SafeList, cre.name:lower()) and not Seen[cre.name] then
    if ischannel(Leader) then
    say(Leader, string.format("%s is on my screen", cre.name))
    else
    say(string.format("* %s * %s is on my screen", Leader, cre.name))
    end
    Seen[cre.name] = true
    end
    end

    if $timems >= RefreshRate then
    RefreshRate, Seen = $timems + 120000, {}
    end
    Last edited by Leonardo; 02-25-2014 at 11:58 AM.

  2. #12
    Banned
    Join Date
    Dec 2013
    Posts
    556
    Reputation
    18
    Rep Power
    0
    Quote Originally Posted by Colandus View Post
    SEEN is nil... You have to remove it from the if-statement as well.
    Well, I didn't check it, I just deleted 1 thing and changed while to auto :P
    -- Config
    init start
    local SAFELIST = {"Imba"}
    local yourName = "Your name"
    local msgDelayTime = 2000 -- time in ms between msgs
    init end

    auto(200, 500)
    foreach creature p "psx" do
    if not table.find(SAFELIST, p.name:lower()) then
    say("*"..yourName.."* "..p.name.." is on my screen")
    wait(msgDelayTime)
    end
    end

  3. #13
    Wind Tester
    Join Date
    Dec 2013
    Location
    Warsaw, Poland
    Posts
    2,579
    Reputation
    149
    Rep Power
    27
    Leonardo's code looks perfect as always
    Quote Originally Posted by Colandus View Post
    SEEN is nil... You have to remove it from the if-statement as well.
    I didnt get it, it should be empty

  4. #14
    Free User
    Join Date
    Dec 2013
    Location
    Sweden
    Posts
    117
    Reputation
    15
    Rep Power
    21
    Quote Originally Posted by Imba View Post
    Leonardo's code looks perfect as always

    I didnt get it, it should be empty
    It would be empty if he didnt remove SEEN = {}
    Regards,
    Colandus

  5. #15
    Wind Tester
    Join Date
    Dec 2013
    Location
    Warsaw, Poland
    Posts
    2,579
    Reputation
    149
    Rep Power
    27
    aaaaaa i got it now, i was watching my code, not K4r4bin's

  6. #16
    Free User Maslo's Avatar
    Join Date
    Dec 2013
    Posts
    97
    Reputation
    11
    Rep Power
    21
    is it possible to sent on guild chat?

  7. #17
    Free User Maslo's Avatar
    Join Date
    Dec 2013
    Posts
    97
    Reputation
    11
    Rep Power
    21
    if someone need for guild chat

    -- Config
    init start
    local SAFELIST = {"Maslo Rozpruwaczek"}
    local guildChat = "xxxx"
    local msgDelayTime = 2000 -- time in ms between msgs
    init end


    auto(200, 500)
    foreach creature p "psx" do
    if not table.find(SAFELIST, p.name:lower()) then
    say(guildChat, p.name.." na screenie skurwysyn corymy")
    wait(msgDelayTime)
    end
    end

  8. #18
    forthegold
    Guest
    possible to add guild as safelist?

  9. #19
    forthegold
    Guest
    Quote Originally Posted by forthegold View Post
    possible to add guild as safelist?
    ^^^^^

  10. #20
    forthegold
    Guest
    bumppp

 

 

Posting Permissions

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