Signup Now
Results 1 to 3 of 3
  1. #1
    Wind Powered bashante's Avatar
    Join Date
    Jan 2014
    Posts
    193
    Reputation
    15
    Rep Power
    21

    Fix my peristent please.

    Hello, i found on forum this RAID alert script but i wanted to improve it and add basically all raids to it. So i made this
    Code:
    init start
            local raids = {
    libertybay = {'Pirates are launching', 'The ships that approach', 'Unknown ships are sighted', 'Sails sighted northwest of Liberty Bay.', 'Pirates are attacking', 'Something is moving in the depths',       'Numerous Quara fins have been '}, -- lb raids
    farmine = {'Lancer beetles troop', 'A pack of lancer beetles heads', 'The lancer beetles', 'A massive orc force is gathering', 'Orc reinforcements', 'An orcish horde, ready for', 'The great march', 'There seems to be a big gnarlhound', 'The dragons of the Dragonblaze'}, -- farmine raids
    bosses = {'The ancient volcano on Goroma', 'There is an evil presence', 'Evil Cultists have called an ancient evil', 'The seals on Ferumbras old cidatel are glowing', 'Ferumbras return is at hand.', 'Ferumbras has returned to his citadel once', 'An ancient evil is awakening in the mines beneath Hrodmir.', 'Demonic entities are entering', 'The demonic master has revealed itself', 'The Pale Count has risen from his crypt deep under Drefia. Blood will flow'} ,
    venore = {'Elven scouts from Shadowthorn have been spotted near Venore! Beware!', 'Dark energy is concentrating in the green claw swamp. Something is about to happen there.', 'Venore is under attack!', 'Hunters on the hunt north of the Green Claw Swamp.'},
    thais = {'Rat Plague in Thais!', 'Some Orcs are assembling north of Thais.', 'Buzzing and humming! Wasps south of Thais. Be careful there!', 'Let da mashing begin! Cyclops riot east of Thais.', 'Orc activity near Thais reported! Beware!', 'Thais is under attack!'},
    carlin = {'Trolls trolling north-west of Carlin!', 'Some Wasps have been found North of Carlin. There is some loud buzzing in the air.', 'Buzzing Madness North of Carlin! Be careful if you', 'Willi Wasp the Wicked has arrived!', 'There is a slight uneven energy in the ghostlands west of Carlin. Something is going to happen soon.', 'Skeletons appeared in the ghostlands. Something is wrong there!', 'A disturbance in the ether stirs up the undead of the Ghostlands.', 'The undead are reclaiming the Ghostlands once more!' ,'The dreaded Banshees and their undead retinue are unleashed in the Ghostland.', 'Banshees wish to feast on the souls of the living! Fight them in the Ghostlands or abandon all hope!','Amazons are converging north of Carlin.', 'Amazon attack north of Carlin!'},
    abdendriel = {'Forrest animals spread out close ', 'Many aggressive beasts are roaming south of'},
    svargrond = {'Barbarians are gathering at Bittermor. They seem to be up to something.', 'Scouts report a barbarian army gathering near Svargrond.', 'There is a sudden rise in ice golem population in Formogar mines.', 'Packs of winter wolves have been sighted roaming the area near the barbarian camps in Svargrond!' },
    yalahar = {'Citizens of Yalahar, beware! Harbingers of vampiric blood thirst are appearing in the city. Fight them or take your chance to flee while you still can.','The sky over Yalahar is darkened by many little wings. ','Vampires have arrived in Yalahar - seeking for humans to feed on and quench their blood thirst.'},
    porthope = {'The lizards of Chor are amassing an army to take over the southern Jungle!', 'The army of the lizardmen is growing!', 'Lizard Sentinels seem to attack Port Hope from Chor.', 'Terror Birds have been sighted in Trapwood south-east of Port Hope!', 'Something bad is happening deep, deep down under Banuta.'},
    edron = {'Goblins are converging west of Edron.', 'Some hunters are roaming the woods north of Edron!', 'Shriiiiiek! Which evil intentions do the wyverns have northwest of Edron?', 'Deep under Edron, the Orc population seems to grow rapidly. Be careful and take a rope with you!', 'Some monks have gathered at a stone circle northwest of Edron. They seem to be up to something.'},
    ankrahmun = {'Some skeletons are assembling north of Ankrahmun!' , 'Something is moving under the surface in the sand north of Ankrahmun!' , 'Terramites north of Ankrahmun!', 'Unusual frequent scarab sightings at the gates of Ankrahmun', 'Ancient scarabs are leading an attack on Ankrahmun.', 'Nomad scouts have been sighted close to the gates to Ankrahmun.', 'The desert nomads are launching a full scale attack on Ankrahmun. Some might even have slipped through the defences!' , 'There is a sudden rise in Djinn', 'Djinnvasion in' , 'Djinnvasion in' , 'There is something stony moving down in the Ankrahmun Rahemos tombs.','Gargoyle attack in the Ankrahmun Rahemos tombs!' , 'There is something slimy going on in the Ankrahmun Mahrdis tombs.' , 'Cold bodies with long teeth have lowered the temperature down in the Ankrahmun Mahrdis tombs' , 'Cold bodies with long teeth. Many teeth. Down in the Ankrahmun Mahrdis tombs' , ' Bonebeasts are rattling down in the Ankrahmun Dipthrah tombs.', 'Bonebeasts roaming around in the Ankrahmun Dipthrah tombs.', 'Necromancer attack in the Ankrahmun Omruc tombs!', 'sudden ice cold wind in the Ankrahmun Morguthis tombs!', 'Some vampires appeared in Ankrahmun Morguthis tombs!'},
    darashia = {'There are more lions than usual west of Darashia', 'Hungry lions scout the western Darashian desert. Travellers beware!', 'Pillage and plunder! Pirates have been sighted north of Darashia!', 'Sightings of undead, west of Darashia! Imminent invasion is suspected!', 'The undead are attacking Darashia!', 'Hordes of undead invade from the west of Darashia!', 'The undead are attacking Darashia!' ,'Minotaurs are preparing an attack in the Darashia Minotaur pyramid!', 'Minotaurs call to arms in the north of Darashia!', 'Mortals, beware. Liches are being summoned in Drefia', 'The priestesses in Drefia call their sisters to wake dark powers. Fight their evil purpose!', 'A necromancer prepares to wake the dead in a crypt below Darashia!', 'Undead spirits stalk the ruins of Drefia.'},
    kazordoon = {'Goblins are preparing to attack Kazordoon from Femor Hills!', 'Kaplar! Flee before it is too late! Minos in the Kazordoon Mines!'},
    gnomebase = {'There is a sudden rise in wyvern population in the mushroom gardens beneath Gnomebase Alpha.'}
    		}
    
            local beeptimes = 6 -- how many times play alarm
    
    -- Don't edit below :)
            table.lower(raids)
    init end
    
    auto(100)
    
    foreach newmessage m do
        if m.type == MSG_RAID then
            for _, v in pairs(raids) do
                for k, vv in ipairs(v) do
                    if m.content:lower():find(vv:lower()) then
                        for i = 1, beeptimes do
                            beep() wait(450, 820)
                        end
                    end
                end
            end
        end
    end
    But its not working. Doesnt beep at all. Any Clue why ?

  2. #2
    Free User ratrider's Avatar
    Join Date
    Aug 2014
    Location
    Sweden
    Posts
    286
    Reputation
    35
    Rep Power
    20
    I don't know why and I don't have time to check the script but here you go.. posted so you can actually read what the hell is going on



    init start
    local raids = {
    libertybay = {'Pirates are launching', 'The ships that approach', 'Unknown ships are sighted', 'Sails sighted northwest of Liberty Bay.', 'Pirates are attacking', 'Something is moving in the depths', 'Numerous Quara fins have been '}, -- lb raids
    farmine = {'Lancer beetles troop', 'A pack of lancer beetles heads', 'The lancer beetles', 'A massive orc force is gathering', 'Orc reinforcements', 'An orcish horde, ready for', 'The great march', 'There seems to be a big gnarlhound', 'The dragons of the Dragonblaze'}, -- farmine raids
    bosses = {'The ancient volcano on Goroma', 'There is an evil presence', 'Evil Cultists have called an ancient evil', 'The seals on Ferumbras old cidatel are glowing', 'Ferumbras return is at hand.', 'Ferumbras has returned to his citadel once', 'An ancient evil is awakening in the mines beneath Hrodmir.', 'Demonic entities are entering', 'The demonic master has revealed itself', 'The Pale Count has risen from his crypt deep under Drefia. Blood will flow'} ,
    venore = {'Elven scouts from Shadowthorn have been spotted near Venore! Beware!', 'Dark energy is concentrating in the green claw swamp. Something is about to happen there.', 'Venore is under attack!', 'Hunters on the hunt north of the Green Claw Swamp.'},
    thais = {'Rat Plague in Thais!', 'Some Orcs are assembling north of Thais.', 'Buzzing and humming! Wasps south of Thais. Be careful there!', 'Let da mashing begin! Cyclops riot east of Thais.', 'Orc activity near Thais reported! Beware!', 'Thais is under attack!'},
    carlin = {'Trolls trolling north-west of Carlin!', 'Some Wasps have been found North of Carlin. There is some loud buzzing in the air.', 'Buzzing Madness North of Carlin! Be careful if you', 'Willi Wasp the Wicked has arrived!', 'There is a slight uneven energy in the ghostlands west of Carlin. Something is going to happen soon.', 'Skeletons appeared in the ghostlands. Something is wrong there!', 'A disturbance in the ether stirs up the undead of the Ghostlands.', 'The undead are reclaiming the Ghostlands once more!' ,'The dreaded Banshees and their undead retinue are unleashed in the Ghostland.', 'Banshees wish to feast on the souls of the living! Fight them in the Ghostlands or abandon all hope!','Amazons are converging north of Carlin.', 'Amazon attack north of Carlin!'},
    abdendriel = {'Forrest animals spread out close ', 'Many aggressive beasts are roaming south of'},
    svargrond = {'Barbarians are gathering at Bittermor. They seem to be up to something.', 'Scouts report a barbarian army gathering near Svargrond.', 'There is a sudden rise in ice golem population in Formogar mines.', 'Packs of winter wolves have been sighted roaming the area near the barbarian camps in Svargrond!' },
    yalahar = {'Citizens of Yalahar, beware! Harbingers of vampiric blood thirst are appearing in the city. Fight them or take your chance to flee while you still can.','The sky over Yalahar is darkened by many little wings. ','Vampires have arrived in Yalahar - seeking for humans to feed on and quench their blood thirst.'},
    porthope = {'The lizards of Chor are amassing an army to take over the southern Jungle!', 'The army of the lizardmen is growing!', 'Lizard Sentinels seem to attack Port Hope from Chor.', 'Terror Birds have been sighted in Trapwood south-east of Port Hope!', 'Something bad is happening deep, deep down under Banuta.'},
    edron = {'Goblins are converging west of Edron.', 'Some hunters are roaming the woods north of Edron!', 'Shriiiiiek! Which evil intentions do the wyverns have northwest of Edron?', 'Deep under Edron, the Orc population seems to grow rapidly. Be careful and take a rope with you!', 'Some monks have gathered at a stone circle northwest of Edron. They seem to be up to something.'},
    ankrahmun = {'Some skeletons are assembling north of Ankrahmun!' , 'Something is moving under the surface in the sand north of Ankrahmun!' , 'Terramites north of Ankrahmun!', 'Unusual frequent scarab sightings at the gates of Ankrahmun', 'Ancient scarabs are leading an attack on Ankrahmun.', 'Nomad scouts have been sighted close to the gates to Ankrahmun.', 'The desert nomads are launching a full scale attack on Ankrahmun. Some might even have slipped through the defences!' , 'There is a sudden rise in Djinn', 'Djinnvasion in' , 'Djinnvasion in' , 'There is something stony moving down in the Ankrahmun Rahemos tombs.','Gargoyle attack in the Ankrahmun Rahemos tombs!' , 'There is something slimy going on in the Ankrahmun Mahrdis tombs.' , 'Cold bodies with long teeth have lowered the temperature down in the Ankrahmun Mahrdis tombs' , 'Cold bodies with long teeth. Many teeth. Down in the Ankrahmun Mahrdis tombs' , ' Bonebeasts are rattling down in the Ankrahmun Dipthrah tombs.', 'Bonebeasts roaming around in the Ankrahmun Dipthrah tombs.', 'Necromancer attack in the Ankrahmun Omruc tombs!', 'sudden ice cold wind in the Ankrahmun Morguthis tombs!', 'Some vampires appeared in Ankrahmun Morguthis tombs!'},
    darashia = {'There are more lions than usual west of Darashia', 'Hungry lions scout the western Darashian desert. Travellers beware!', 'Pillage and plunder! Pirates have been sighted north of Darashia!', 'Sightings of undead, west of Darashia! Imminent invasion is suspected!', 'The undead are attacking Darashia!', 'Hordes of undead invade from the west of Darashia!', 'The undead are attacking Darashia!' ,'Minotaurs are preparing an attack in the Darashia Minotaur pyramid!', 'Minotaurs call to arms in the north of Darashia!', 'Mortals, beware. Liches are being summoned in Drefia', 'The priestesses in Drefia call their sisters to wake dark powers. Fight their evil purpose!', 'A necromancer prepares to wake the dead in a crypt below Darashia!', 'Undead spirits stalk the ruins of Drefia.'},
    kazordoon = {'Goblins are preparing to attack Kazordoon from Femor Hills!', 'Kaplar! Flee before it is too late! Minos in the Kazordoon Mines!'},
    gnomebase = {'There is a sudden rise in wyvern population in the mushroom gardens beneath Gnomebase Alpha.'}
    }

    local beeptimes = 6 -- how many times play alarm

    -- Don't edit below :)
    table.lower(raids)
    init end

    auto(100)

    foreach newmessage m do
    if m.type == MSG_RAID then
    for _, v in pairs(raids) do
    for k, vv in ipairs(v) do
    if m.content:lower():find(vv:lower()) then
    for i = 1, beeptimes do
    beep() wait(450, 820)
    end
    end
    end
    end
    end
    end


  3. #3
    Wind Powered bashante's Avatar
    Join Date
    Jan 2014
    Posts
    193
    Reputation
    15
    Rep Power
    21
    Oh Okay that i can actually read Thanks tho

 

 

Posting Permissions

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