Signup Now
Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Boatwatcher

  1. #1
    Free User
    Join Date
    Feb 2014
    Posts
    31
    Reputation
    10
    Rep Power
    0

    Boatwatcher

    Hello,

    I've had a boatwatch script when I used Ibot,

    it's like

    if player on screen - msg name to main char

    with a safelist, so if someone comes on screen u copy/paste his name in safelist and it won't pm the mainchar.

    thanks in advance

  2. #2
    Wind Tester
    Join Date
    Dec 2013
    Location
    Warsaw, Poland
    Posts
    2,569
    Reputation
    149
    Rep Power
    28
    -- Config
    init start
    local SAFELIST = {"Imba"}
    local yourName = "Your name"
    local msgDelayTime = 2000 -- time in ms between msgs
    init end

    -- Code
    local SEEN = {}
    table.lower(SAFELIST)

    while (true) do
    foreach creature p "psx" do
    if (not table.find(SEEN, p.name:lower())) and (not table.find(SAFELIST, p.name:lower())) then
    say("*"..yourName.."* "..p.name.." is on my screen")
    wait(msgDelayTime)
    table.insert(SEEN, p.name:lower())
    end
    end
    wait(200, 400)
    end


    This will only send 1 pm for each guy, this means that if some guy will keep running, bot wont pm you. If you want me to edit it tag me @
    Last edited by Imba; 02-21-2014 at 12:12 PM.

  3. #3
    Free User
    Join Date
    Feb 2014
    Posts
    31
    Reputation
    10
    Rep Power
    0
    will try it out! Thanks!

  4. #4
    Free User
    Join Date
    Feb 2014
    Posts
    31
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by Imba View Post
    -- Config
    init start
    local SAFELIST = {"Imba"}
    local yourName = "Your name"
    local msgDelayTime = 2000 -- time in ms between msgs
    init end

    -- Code
    local SEEN = {}
    table.lower(SAFELIST)

    while (true) do
    foreach creature p "psx" do
    if (not table.find(SEEN, p.name:lower())) and (not table.find(SAFELIST, p.name:lower())) then
    say("*"..yourName.."* "..p.name.." is on my screen")
    wait(msgDelayTime)
    table.insert(SEEN, p.name:lower())
    end
    end
    wait(200, 400)
    end


    This will only send 1 pm for each guy, this means that if some guy will keep running, bot wont pm you. If you want me to edit it tag me @

    Hey, could you edit it so if a player is on my screen again he will msg me with the player? So a sort 'refresh' script xD this one works as a charm btw

  5. #5
    Banned
    Join Date
    Dec 2013
    Posts
    556
    Reputation
    18
    Rep Power
    0
    -- Config
    init start
    local SAFELIST = {"Imba"}
    local yourName = "Your name"
    local msgDelayTime = 2000 -- time in ms between msgs
    init end

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


    Try now.
    @Imba remember to add auto() or it will check just once.

  6. #6
    Wind Tester
    Join Date
    Dec 2013
    Location
    Warsaw, Poland
    Posts
    2,569
    Reputation
    149
    Rep Power
    28
    Quote Originally Posted by K4r4biN View Post
    -- Config
    init start
    local SAFELIST = {"Imba"}
    local yourName = "Your name"
    local msgDelayTime = 2000 -- time in ms between msgs
    init end

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


    Try now.
    @Imba remember to add auto() or it will check just once.
    @K4r4biN Yeah i am used to refresh rate @Bombie You mean if someone is on boat more than 1 time, bot should pm u again, ye?

  7. #7
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,437
    Reputation
    309
    Rep Power
    29
    Jesus fucking christ, please don't fucking use while true to make it repeat every x seconds.
    We have auto() for that.

  8. #8
    Wind Tester
    Join Date
    Dec 2013
    Location
    Warsaw, Poland
    Posts
    2,569
    Reputation
    149
    Rep Power
    28
    Why so mean QQ

  9. #9
    Free User
    Join Date
    Feb 2014
    Posts
    31
    Reputation
    10
    Rep Power
    0
    @Imba somethimes it fails to send the message, so he writes it but doesn't press 'enter' any solutions?

  10. #10
    Free User
    Join Date
    Dec 2013
    Location
    Sweden
    Posts
    117
    Reputation
    15
    Rep Power
    21
    Quote Originally Posted by K4r4biN View Post
    -- Config
    init start
    local SAFELIST = {"Imba"}
    local yourName = "Your name"
    local msgDelayTime = 2000 -- time in ms between msgs
    init end

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


    Try now.
    @Imba remember to add auto() or it will check just once.
    SEEN is nil... You have to remove it from the if-statement as well.

    Quote Originally Posted by Raphael View Post
    Jesus fucking christ, please don't fucking use while true to make it repeat every x seconds.
    We have auto() for that.
    Hey! What did Jesus do to you? Why insult him?
    Regards,
    Colandus

 

 

Posting Permissions

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