Results 1 to 9 of 9

Thread: Need if player on screen action!

  1. #1
    iBot User
    Join Date
    Feb 2013
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Exclamation Need if player on screen action!

    Need help with action if player on screen say "no kill man ;/" or something and if player kill my monk and mad sheep logout char.


    Please help rep+

  2. #2
    iBot User Raph_'s Avatar
    Join Date
    Feb 2013
    Posts
    391
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    59
    Rep Power
    4
    --[[ INIT START ]]--
    local CREATURES = {"Monk"}
    local SAFELIST = {"Bubble", "Eternal Oblivion"}
    local PHRASES = {"no kill bro, please", "don't kill please", "respect please"}
    --[[ INIT END ]]--

    if maround(1, unpack(CREATURES)) > 0 then
    if paround(7) - paround(7, unpack(SAFELIST)) > 0 then
    for x = 1, #PHRASES do
    say(PHRASES[x], "Local Chat")
    wait(8000, 12000)
    end
    end
    else
    closetibia()
    wait(2000, 4000)
    end

  3. #3
    iBot User
    Join Date
    Feb 2013
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    thanks man :* rep+ but if player stad near me char spamming
    23:32xxxxxxxxxxxxx: no kill xd
    23:32xxxxxxxxxxxxx: no kill bro, please
    23:32xxxxxxxxxxxxx: don't kill please
    23:32xxxxxxxxxxxxx: respect please
    23:32xxxxxxxxxxxxx: exura
    23:32xxxxxxxxxxxxx: no kill xd


    its possible to do in this action char say text 2 times and stop spaming?

  4. #4
    iBot User Raph_'s Avatar
    Join Date
    Feb 2013
    Posts
    391
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    59
    Rep Power
    4
    Hummm probably we can do something like that:

    --[[ INIT START ]]--
    local CREATURES = {"Monk"}
    local SAFELIST = {"Bubble", "Eternal Oblivion"}
    local PHRASES = {"no kill bro, please", "don't kill please", "respect please"}
    --[[ INIT END ]]--

    if maround(1, unpack(CREATURES)) > 0 then
    if paround(7) - paround(7, unpack(SAFELIST)) > 0 then
    i = 0
    for x = 1, #PHRASES do
    while i < 3 do
    say(PHRASES[x], "Local Chat")
    wait(8000, 12000)
    i = i + 1
    end
    end
    end
    else
    closetibia()
    wait(2000, 4000)
    end
    Last edited by Raph_; 03-26-2013 at 08:02 PM.

  5. #5
    iBot User
    Join Date
    Feb 2013
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    no work ;/

    char do not want to write anything
    Last edited by doktor; 03-26-2013 at 07:56 PM.

  6. #6
    iBot User Raph_'s Avatar
    Join Date
    Feb 2013
    Posts
    391
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    59
    Rep Power
    4
    Ahh i did a mistake, check it now...

  7. #7
    iBot User
    Join Date
    Feb 2013
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    now spaming one text all times

    00:09xxxxxxxxxxxxxxxx no kill bro, please
    00:09xxxxxxxxxxxxxxxx no kill bro, please
    00:09xxxxxxxxxxxxxxxx no kill bro, please
    00:09xxxxxxxxxxxxxxxx no kill bro, please
    00:09xxxxxxxxxxxxxxxx no kill bro, please
    00:09xxxxxxxxxxxxxxxx no kill bro, please
    00:09xxxxxxxxxxxxxxxx no kill bro, please

  8. #8
    iBot User Raph_'s Avatar
    Join Date
    Feb 2013
    Posts
    391
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    59
    Rep Power
    4
    Ok, i remade and it will works probably:

    --[[ INIT START ]]--
    local CREATURES = {"Monk"}
    local PHRASES = {"no kill bro, please", "don't kill please", "respect please"}
    --[[ INIT END ]]--

    local SAFELIST = {}
    if maround(1, unpack(CREATURES)) > 0 then
    for PLAYER in Creature.GetAll("ps") do
    if PLAYER:isValid() and not table.find(SAFELIST, PLAYER:Name()) then
    for x = 1, #PHRASES do
    say(PHRASES[x], "Local Chat")
    table.insert(SAFELIST, PLAYER:Name())
    wait(10000, 15000)
    end
    end
    end
    else
    closetibia()
    wait(2000, 4000)
    end

  9. #9
    iBot User
    Join Date
    Feb 2013
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    same, if player on screen writing no kill please blablablaa 1231231 times ;/

Posting Permissions

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