Signup Now
Results 1 to 8 of 8
  1. #1
    Moderator Josh's Avatar
    Join Date
    Dec 2013
    Posts
    1,395
    Reputation
    183
    Rep Power
    24

    Private Message alerts which ignore exevogold and Ankrahmun.xyz

    So ye, I got pretty pissed off with that shiet and hacked this together real quick:

    init start    -- local SCRIPT_VERSION = '1.0.fuckyougoldsellers'


    local alerts = {
    {
    name = 'Player on Screen',
    sound = 'playeronscreen.wav',


    playSound = false,
    pauseBot = false,
    logout = false,
    safelist = {'Bubble', 'Cachero'}
    },
    {
    name = 'Player Attacking',
    sound = 'playerattacking.wav',


    playSound = false,
    pauseBot = false,
    logout = false,
    safelist = {'Bubble', 'Cachero'}
    },
    {
    name = 'Monster Attacking',
    sound = 'monsterattacking.wav',


    playSound = false,
    pauseBot = false,
    logout = false,
    safelist = {'Rat', 'Bat'}
    },
    {
    name = 'Private Message',
    sound = 'privatemessage.wav',


    playSound = true,
    pauseBot = false,
    logout = false,
    safelist = {'Bubble', 'Cachero'}
    },
    {
    name = 'Default Message',
    sound = 'defaultmessage.wav',


    playSound = false,
    pauseBot = false,
    logout = false,
    safelist = {'Bubble', 'Cachero'}
    },
    {
    name = 'GM Detected',
    sound = 'gmdetected.wav',


    playSound = false,
    pauseBot = false,
    logout = false
    },
    {
    name = 'Disconnected',
    sound = 'disconnected.wav',


    playSound = false,
    pauseBot = false,
    logout = false
    },
    {
    name = 'Character Stuck',
    sound = 'characterstuck.wav',


    playSound = false,
    pauseBot = false,
    logout = false,
    stuckTime = 30000 -- ms
    },
    {
    name = 'Health Below',
    sound = 'lowhealth.wav',


    playSound = false,
    pauseBot = false,
    logout = false,
    pcBelow = 50
    },
    {
    name = 'Mana Below',
    sound = 'lowmana.wav',


    playSound = false,
    pauseBot = false,
    logout = false,
    pcBelow = 50
    }
    }


    privateMessageWhitelist = {
    "exevogold",
    "Ankrahmun.xyz",
    "Venore.xyz",
    "Carlin.xyz",
    "Thais.xyz",
    "Darashia.xyz",
    "Edron.xyz",
    "Cormaya.xyz",
    "Yalahar.xyz"
    }


    -- Do not edit below this line


    function stringWhitelist(theMessage)
    for i,whiteListItem in ipairs(privateMessageWhitelist) do
    if string.match(theMessage, whiteListItem) then
    return false
    end
    end
    return true
    end


    do
    local tests = {
    function(safelist) return paroundignore(10, table.unpack(safelist)) > 0 end,
    function(safelist) return $pattacker.id ~= 0 and not table.find(safelist, $pattacker.name:lower()) end,
    function(safelist) return $mattacker.id ~= 0 and not table.find(safelist, $mattacker.name:lower()) end,
    function(safelist) foreach newmessage m do if m.type == MSG_PVT and stringWhitelist(m.content) == true then return true end end return false end,
    function(safelist) foreach newmessage m do if m.type == MSG_WHISPER or m.type == MSG_DEFAULT or m.type == MSG_YELL then return true end end return false end,
    function() foreach creature c do if c.name:starts('GM') or c.name:starts('CM') then return true end end return false end,
    function() return not $connected end,
    function(stuckTime) return $standtime > stuckTime end,
    function(pcBelow) return $hppc < pcBelow end,
    function(pcBelow) return $mppc < pcBelow end
    }


    for i = 1, #alerts do
    local alert = alerts[i]
    alert.test = tests[i]


    if alert.safelist then
    table.lower(alert.safelist)
    end
    end
    end
    init end


    auto(100)
    listas('Alerts')
    for _, v in ipairs(alerts) do
    if v.test(v.safelist or v.stuckTime or v.pcBelow) then
    if v.playSound then
    playsound(v.sound)
    end
    if v.pauseBot then
    pausebot(true)
    end
    if v.logout then
    xlog()
    end
    end
    end


    If you need more messages whitelisted, you can do it by adding a new line after line 97 or so. If you have problems, blame @Raphael, it's his script I just shit on it a bit.
    Last edited by Josh; 07-26-2016 at 12:20 PM.

  2. #2
    Wind Tester
    Join Date
    Dec 2013
    Location
    Warsaw, Poland
    Posts
    2,578
    Reputation
    149
    Rep Power
    27
    Quote Originally Posted by Raphael
    it's just ugly as fuck
    this ^

  3. #3
    Moderator Josh's Avatar
    Join Date
    Dec 2013
    Posts
    1,395
    Reputation
    183
    Rep Power
    24
    Quote Originally Posted by Imba View Post
    this ^
    Ye but so is Sune le ugly Swede but he still works

  4. #4
    Moderator SuNe's Avatar
    Join Date
    Dec 2013
    Location
    Sweden
    Posts
    2,881
    Reputation
    186
    Rep Power
    27
    Quote Originally Posted by XtrmJosh View Post
    Ye but so is Sune le ugly Swede but he still works
    What the actual fuck? Bitch i'm fabulous
    กิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิ ิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิ ิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิ ิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิ ิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิ ิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิ ิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิ ิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิก ิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิ ิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิ ิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิ ิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิ ิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิ ิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิ ิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิ ิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิ ิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิ ิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิ ิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิ ิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิ ิิิิิิิิ

  5. #5
    Free User
    Join Date
    Aug 2015
    Posts
    9
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by XtrmJosh View Post
    So ye, I got pretty pissed off with that shiet and hacked this together real quick:

    init start    -- local SCRIPT_VERSION = '1.0.fuckyougoldsellers'


    local alerts = {
    {
    name = 'Player on Screen',
    sound = 'playeronscreen.wav',


    playSound = false,
    pauseBot = false,
    logout = false,
    safelist = {'Bubble', 'Cachero'}
    },
    {
    name = 'Player Attacking',
    sound = 'playerattacking.wav',


    playSound = false,
    pauseBot = false,
    logout = false,
    safelist = {'Bubble', 'Cachero'}
    },
    {
    name = 'Monster Attacking',
    sound = 'monsterattacking.wav',


    playSound = false,
    pauseBot = false,
    logout = false,
    safelist = {'Rat', 'Bat'}
    },
    {
    name = 'Private Message',
    sound = 'privatemessage.wav',


    playSound = true,
    pauseBot = false,
    logout = false,
    safelist = {'Bubble', 'Cachero'}
    },
    {
    name = 'Default Message',
    sound = 'defaultmessage.wav',


    playSound = false,
    pauseBot = false,
    logout = false,
    safelist = {'Bubble', 'Cachero'}
    },
    {
    name = 'GM Detected',
    sound = 'gmdetected.wav',


    playSound = false,
    pauseBot = false,
    logout = false
    },
    {
    name = 'Disconnected',
    sound = 'disconnected.wav',


    playSound = false,
    pauseBot = false,
    logout = false
    },
    {
    name = 'Character Stuck',
    sound = 'characterstuck.wav',


    playSound = false,
    pauseBot = false,
    logout = false,
    stuckTime = 30000 -- ms
    },
    {
    name = 'Health Below',
    sound = 'lowhealth.wav',


    playSound = false,
    pauseBot = false,
    logout = false,
    pcBelow = 50
    },
    {
    name = 'Mana Below',
    sound = 'lowmana.wav',


    playSound = false,
    pauseBot = false,
    logout = false,
    pcBelow = 50
    }
    }


    privateMessageWhitelist = {
    "exevogold",
    "Ankrahmun.xyz"
    }


    -- Do not edit below this line


    function stringWhitelist(theMessage)
    for i,whiteListItem in ipairs(privateMessageWhitelist) do
    if string.match(theMessage, whiteListItem) then
    return false
    end
    end
    return true
    end


    do
    local tests = {
    function(safelist) return paroundignore(10, table.unpack(safelist)) > 0 end,
    function(safelist) return $pattacker.id ~= 0 and not table.find(safelist, $pattacker.name:lower()) end,
    function(safelist) return $mattacker.id ~= 0 and not table.find(safelist, $mattacker.name:lower()) end,
    function(safelist) foreach newmessage m do if m.type == MSG_PVT and stringWhitelist(m.content) == true then return true end end return false end,
    function(safelist) foreach newmessage m do if m.type == MSG_WHISPER or m.type == MSG_DEFAULT or m.type == MSG_YELL then return true end end return false end,
    function() foreach creature c do if c.name:starts('GM') or c.name:starts('CM') then return true end end return false end,
    function() return not $connected end,
    function(stuckTime) return $standtime > stuckTime end,
    function(pcBelow) return $hppc < pcBelow end,
    function(pcBelow) return $mppc < pcBelow end
    }


    for i = 1, #alerts do
    local alert = alerts[i]
    alert.test = tests[i]


    if alert.safelist then
    table.lower(alert.safelist)
    end
    end
    end
    init end


    auto(100)
    listas('Alerts')
    for _, v in ipairs(alerts) do
    if v.test(v.safelist or v.stuckTime or v.pcBelow) then
    if v.playSound then
    playsound(v.sound)
    end
    if v.pauseBot then
    pausebot(true)
    end
    if v.logout then
    xlog()
    end
    end
    end


    If you need more messages whitelisted, you can do it by adding a new line after line 97 or so. If you have problems, blame @Raphael, it's his script I just shit on it a bit.
    best persist ever, ty
    i want to add names of spells to ignore, but the safelist ignore players. anyone have anything in mind?
    Last edited by mwaluce; 04-17-2016 at 04:57 PM.

  6. #6
    Moderator Josh's Avatar
    Join Date
    Dec 2013
    Posts
    1,395
    Reputation
    183
    Rep Power
    24
    Quote Originally Posted by mwaluce View Post
    best persist ever, ty
    i want to add names of spells to ignore, but the safelist ignore players. anyone have anything in mind?
    init start    -- local SCRIPT_VERSION = '1.0.fuckyougoldsellers'



    local alerts = {
    {
    name = 'Player on Screen',
    sound = 'playeronscreen.wav',




    playSound = false,
    pauseBot = false,
    logout = false,
    safelist = {'Bubble', 'Cachero'}
    },
    {
    name = 'Player Attacking',
    sound = 'playerattacking.wav',




    playSound = false,
    pauseBot = false,
    logout = false,
    safelist = {'Bubble', 'Cachero'}
    },
    {
    name = 'Monster Attacking',
    sound = 'monsterattacking.wav',




    playSound = false,
    pauseBot = false,
    logout = false,
    safelist = {'Rat', 'Bat'}
    },
    {
    name = 'Private Message',
    sound = 'privatemessage.wav',




    playSound = true,
    pauseBot = false,
    logout = false,
    safelist = {'Bubble', 'Cachero'}
    },
    {
    name = 'Default Message',
    sound = 'defaultmessage.wav',




    playSound = false,
    pauseBot = false,
    logout = false,
    safelist = {'Bubble', 'Cachero'}
    },
    {
    name = 'GM Detected',
    sound = 'gmdetected.wav',




    playSound = false,
    pauseBot = false,
    logout = false
    },
    {
    name = 'Disconnected',
    sound = 'disconnected.wav',




    playSound = false,
    pauseBot = false,
    logout = false
    },
    {
    name = 'Character Stuck',
    sound = 'characterstuck.wav',




    playSound = false,
    pauseBot = false,
    logout = false,
    stuckTime = 30000 -- ms
    },
    {
    name = 'Health Below',
    sound = 'lowhealth.wav',




    playSound = false,
    pauseBot = false,
    logout = false,
    pcBelow = 50
    },
    {
    name = 'Mana Below',
    sound = 'lowmana.wav',




    playSound = false,
    pauseBot = false,
    logout = false,
    pcBelow = 50
    }
    }




    privateMessageWhitelist = {
    "exevogold",
    "Ankrahmun.xyz"
    }


    spellWhitelist = {
    "exura",
    "exori vis",
    "utamo vita",
    "exura gran"
    }




    -- Do not edit below this line




    function stringWhitelist(theMessage)
    for i,whiteListItem in ipairs(privateMessageWhitelist) do
    if string.match(theMessage, whiteListItem) then
    return false
    end
    end
    return true
    end


    function isWhitelistSpell(theMessage)
    for i,whiteListItem in ipairs(spellWhitelist) do
    if string.match(theMessage, whiteListItem) then
    return false
    end
    end
    return true
    end


    do
    local tests = {
    function(safelist) return paroundignore(10, table.unpack(safelist)) > 0 end,
    function(safelist) return $pattacker.id ~= 0 and not table.find(safelist, $pattacker.name:lower()) end,
    function(safelist) return $mattacker.id ~= 0 and not table.find(safelist, $mattacker.name:lower()) end,
    function(safelist) foreach newmessage m do if m.type == MSG_PVT and stringWhitelist(m.content) == true then return true end end return false end,
    function(safelist) foreach newmessage m do if m.type == MSG_WHISPER or m.type == MSG_DEFAULT or m.type == MSG_YELL and spellWhitelist(m) == true then return true end end return false end,
    function() foreach creature c do if c.name:starts('GM') or c.name:starts('CM') then return true end end return false end,
    function() return not $connected end,
    function(stuckTime) return $standtime > stuckTime end,
    function(pcBelow) return $hppc < pcBelow end,
    function(pcBelow) return $mppc < pcBelow end
    }




    for i = 1, #alerts do
    local alert = alerts[i]
    alert.test = tests[i]




    if alert.safelist then
    table.lower(alert.safelist)
    end
    end
    end
    init end




    auto(100)
    listas('Alerts')
    for _, v in ipairs(alerts) do
    if v.test(v.safelist or v.stuckTime or v.pcBelow) then
    if v.playSound then
    playsound(v.sound)
    end
    if v.pauseBot then
    pausebot(true)
    end
    if v.logout then
    xlog()
    end
    end
    end


    Edit the spell white list on line 135 or so:

        spellWhitelist = {        "exura",
    "exori vis",
    "utamo vita",
    "exura gran"
    }
    Last edited by Josh; 04-18-2016 at 09:34 AM.

  7. #7
    Free User
    Join Date
    Aug 2015
    Posts
    9
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by XtrmJosh View Post
    init start    -- local SCRIPT_VERSION = '1.0.fuckyougoldsellers'



    local alerts = {
    {
    name = 'Player on Screen',
    sound = 'playeronscreen.wav',




    playSound = false,
    pauseBot = false,
    logout = false,
    safelist = {'Bubble', 'Cachero'}
    },
    {
    name = 'Player Attacking',
    sound = 'playerattacking.wav',




    playSound = false,
    pauseBot = false,
    logout = false,
    safelist = {'Bubble', 'Cachero'}
    },
    {
    name = 'Monster Attacking',
    sound = 'monsterattacking.wav',




    playSound = false,
    pauseBot = false,
    logout = false,
    safelist = {'Rat', 'Bat'}
    },
    {
    name = 'Private Message',
    sound = 'privatemessage.wav',




    playSound = true,
    pauseBot = false,
    logout = false,
    safelist = {'Bubble', 'Cachero'}
    },
    {
    name = 'Default Message',
    sound = 'defaultmessage.wav',




    playSound = false,
    pauseBot = false,
    logout = false,
    safelist = {'Bubble', 'Cachero'}
    },
    {
    name = 'GM Detected',
    sound = 'gmdetected.wav',




    playSound = false,
    pauseBot = false,
    logout = false
    },
    {
    name = 'Disconnected',
    sound = 'disconnected.wav',




    playSound = false,
    pauseBot = false,
    logout = false
    },
    {
    name = 'Character Stuck',
    sound = 'characterstuck.wav',




    playSound = false,
    pauseBot = false,
    logout = false,
    stuckTime = 30000 -- ms
    },
    {
    name = 'Health Below',
    sound = 'lowhealth.wav',




    playSound = false,
    pauseBot = false,
    logout = false,
    pcBelow = 50
    },
    {
    name = 'Mana Below',
    sound = 'lowmana.wav',




    playSound = false,
    pauseBot = false,
    logout = false,
    pcBelow = 50
    }
    }




    privateMessageWhitelist = {
    "exevogold",
    "Ankrahmun.xyz"
    }


    spellWhitelist = {
    "exura",
    "exori vis",
    "utamo vita",
    "exura gran"
    }




    -- Do not edit below this line




    function stringWhitelist(theMessage)
    for i,whiteListItem in ipairs(privateMessageWhitelist) do
    if string.match(theMessage, whiteListItem) then
    return false
    end
    end
    return true
    end


    function isWhitelistSpell(theMessage)
    for i,whiteListItem in ipairs(spellWhitelist) do
    if string.match(theMessage, whiteListItem) then
    return false
    end
    end
    return true
    end


    do
    local tests = {
    function(safelist) return paroundignore(10, table.unpack(safelist)) > 0 end,
    function(safelist) return $pattacker.id ~= 0 and not table.find(safelist, $pattacker.name:lower()) end,
    function(safelist) return $mattacker.id ~= 0 and not table.find(safelist, $mattacker.name:lower()) end,
    function(safelist) foreach newmessage m do if m.type == MSG_PVT and stringWhitelist(m.content) == true then return true end end return false end,
    function(safelist) foreach newmessage m do if m.type == MSG_WHISPER or m.type == MSG_DEFAULT or m.type == MSG_YELL and spellWhitelist(m) == true then return true end end return false end,
    function() foreach creature c do if c.name:starts('GM') or c.name:starts('CM') then return true end end return false end,
    function() return not $connected end,
    function(stuckTime) return $standtime > stuckTime end,
    function(pcBelow) return $hppc < pcBelow end,
    function(pcBelow) return $mppc < pcBelow end
    }




    for i = 1, #alerts do
    local alert = alerts[i]
    alert.test = tests[i]




    if alert.safelist then
    table.lower(alert.safelist)
    end
    end
    end
    init end




    auto(100)
    listas('Alerts')
    for _, v in ipairs(alerts) do
    if v.test(v.safelist or v.stuckTime or v.pcBelow) then
    if v.playSound then
    playsound(v.sound)
    end
    if v.pauseBot then
    pausebot(true)
    end
    if v.logout then
    xlog()
    end
    end
    end


    Edit the spell white list on line 135 or so:

        spellWhitelist = {        "exura",
    "exori vis",
    "utamo vita",
    "exura gran"
    }
    i did'n saw...thx

    EDIT: NOT WORKING, anything wrong?


    spellWhitelist = {
    "exura",
    "exori vis",
    "utamo vita",
    "exura gran",
    "utura",
    "exori",
    "utura gran",
    "exura ico",
    "exori ico",
    "exori hur"
    }
    Last edited by mwaluce; 04-26-2016 at 08:55 PM.

  8. #8
    Moderator Josh's Avatar
    Join Date
    Dec 2013
    Posts
    1,395
    Reputation
    183
    Rep Power
    24
    Quote Originally Posted by mwaluce View Post
    i did'n saw...thx

    EDIT: NOT WORKING, anything wrong?


    spellWhitelist = {
    "exura",
    "exori vis",
    "utamo vita",
    "exura gran",
    "utura",
    "exori",
    "utura gran",
    "exura ico",
    "exori ico",
    "exori hur"
    }
    Hm, it's possible I wasn't clear. The original post didn't have the ignore spell stuff, so only the later one does. Regarding it not working, I'm not sure... Aside from your indentation being a bit mis-aligned, it looks like it should work fine... You didn't simply add this to the first script, did you?

 

 

Posting Permissions

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