Results 1 to 3 of 3

Thread: Enemy alert problem [endless loop]

  1. #1
    Normal User orimorfus's Avatar
    Join Date
    Mar 2012
    Location
    MOVED TO INFERNA
    Posts
    222
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    21
    Rep Power
    5

    Enemy alert problem [endless loop]

    this script should make alarm if found enemies on any floor
    Its working very good but sometimes(rare situations) when found enemy this script is bugging and its making endless loop(never ending alarm) that i can stop only by closing bot.
    any solutions for it?

    PHP Code:
    local ENEMIES_NAMES = {'Ferasek','Jezior Powalajnen','Kenami','Rakur Powalajnen','Rattatuja','Razon Arwina','Akur Hellios',
    'Anhypnosis','Awesome Diegoo','Bron Silva','Datranox','Ewcalamno Devassa','Green Rita','Jedix','Jimm Deathbringer','Leexo Varevv','Lowca Wiatru'
    ,'Mario Balboa','Shaler','Victoriano Corleone','Voomtes','Wilix Xuva','Zoodo Powalajnen','Akado','Anastazia Danko','Bred Saraia','Bufel Nolfres'
    ,'Chechen','Chocolate Chmielu','Don Krep','Exor Gogin','Kakeej','Lookeyy','Mikiki','Remikos','Siwuxus Aldire',"Sorcerer Thunder'blade",'Wrath of Storm',
    'Zdzisiu Malf Powalajnen','Adamus','Cel Don Doggy','Coiriz','Defron','Demestos','Detoonator','Elasi Thoso','Eldoxik','Fioletowy John','Fuurel','Gogson Ponte',
    'Jessezia Azagi','Lord Xelga','Mekkron','Orc-bashaa',"Pallek Thunder'Blade",'Priince Solar','Punshido','Rugio','Ryon Melix',
    'Saneth','Stefanoti','Strikemv','Thadin Elth','Trickstone','Yanosik','Zolanii','Bright morgana knight','Eileen Lee','Elite Malfroy','Forlond','Jeva','Kayus Ogir',
    'Knight truth','Koksikk','Kuba niezbyt','Kyra Jasmix','Macker','Nearvana','Nearvana','Pheonix Luti','Piter Tore','Pixocholik','Rashelo','Spaaw',
    'Terror Neon','Tico pop junior','Vohyt','Xylo Powalajnen','Zorish','Dalis Thor','Karl Poynter','Zdzisiu Lambadziarz','Van Wixx','Bon Wixx'
    ,'Vilshion Drathus','Dopalaczz','Lord Skileks','Sir Scud Kaka'}

    for 
    1,#ENEMIES_NAMES do
    if paround(8true,ENEMIES_NAMES[e]) ~= 0 then
    playsound
    ('alert.wav')
    wait(500)
    end
    end 
    Last edited by orimorfus; 08-07-2012 at 11:50 AM.

  2. #2
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Code:
    if paround(8, true,ENEMIES_NAMES[e]) ~= 0 then
        for e = 1,10 do
           playsound('alert.wav')wait(500)
        end
    end

  3. #3
    Normal User orimorfus's Avatar
    Join Date
    Mar 2012
    Location
    MOVED TO INFERNA
    Posts
    222
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    21
    Rep Power
    5
    this way it will consider only first 10 persons of ENEMIES_NAMES, this is not helpfull
    more ideas?

Posting Permissions

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