Results 1 to 3 of 3

Thread: misc

  1. #1
    Normal User
    Join Date
    Oct 2012
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    16
    Rep Power
    5

    player on screen actions

    Hi

    would like this thing , when A player appears on screen stop looting + monsters must attack me before I do.
    Then go back to loot+ kill everything again. IF no player have been seen within 20 seconds
    Last edited by flix99; 06-13-2013 at 01:36 PM.

  2. #2
    Normal User
    Join Date
    Oct 2012
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    16
    Rep Power
    5
    plz anyone

  3. #3
    Normal User xavizus's Avatar
    Join Date
    Jun 2013
    Location
    Japan
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    18
    Rep Power
    4
    Hi Flix99,

    I haven't tried the code yet, though you could try it. Just change the monsters in the variable "MONSTERS" to the monsters you have.
    PHP Code:
    local MONSTERS = { "Rotworm"Carrion Worm" }

    if(paround() >= 1) then
        setsettings("
    Settings\\Looting\\Enabled", "no")
        for _, MONSTER in ipairs(MONSTERS) do
            setsettings("
    Settings\\Targeting\\MONSTER\\MustAttackMe", "yes")
        end
    elseif(lasttimeplayeronscreen() <= 20*1000) then 
     setsettings("
    Settings\\Looting\\Enabled", "yes")
        for _, MONSTER in ipairs(MONSTERS) do
            setsettings("
    Settings\\Targeting\\MONSTER\\MustAttackMe", "no")
        end
    end 

Posting Permissions

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