Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Alarm if...

  1. #1
    Normal User
    Join Date
    Aug 2012
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Alarm if...

    hey guys!
    im looking for action "alarm if using ghp OR shp" and "alarm if less than x mf"

  2. #2
    Normal User
    Join Date
    Aug 2012
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    ups also im gonna need x log if stealth ring is equiped

  3. #3
    iBot User
    Join Date
    Feb 2012
    Posts
    160
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    30
    Rep Power
    5
    Code:
    local amounttoalarm = 50 -- amount of mp to alarm
    local potname = "mana potion"
    if itemcount(potname) < amounttoalarm then
    playsound("alert.wav")
    wait(1000)
    end

    Code:
    local index = 0 
    local msgs = getnewmessages("Server Log")
    local qtd = msgs.count-1
    for i=0,qtd do
       if msgs[qtd-i].text:find('Strong Health Potion') or msgs[qtd-i].text:find('Great Health Potion')  then
          playsound("alert.wav")
          wait(1000)
       end  
    end

    Code:
    if ring == 3086 -- id of sparkling steakth shield
    then
    wait(500)
    closetibia()
    end
    ___________________________________________
    abc abc toda crianša tem que ler e escrever.

  4. #4
    Normal User
    Join Date
    Aug 2012
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    thx man, i appreaciate ur help, i have been busy latly and so far i have only tried mana thingy and its working =)

  5. #5
    Normal User Crimewave's Avatar
    Join Date
    Jul 2012
    Location
    Sweden, Stockholm
    Posts
    205
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    7 Post(s)
    Reputation
    12
    Rep Power
    5
    local amounttoalarm = 50 -- amount of mp to alarm
    local potname = "mana potion"
    if itemcount(potname) < amounttoalarm then
    playsound("alert.wav")
    wait(1000)
    end
    Bro i dont understand how to make it ? i tried all the time and smth was wrong, i use SHP and want alarm if 40smp how to put i ?


    local potname = "mana potion" i need to change it for smp ?

  6. #6
    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
    Quote Originally Posted by Crimewave View Post
    Bro i dont understand how to make it ? i tried all the time and smth was wrong, i use SHP and want alarm if 40smp how to put i ?


    local potname = "mana potion" i need to change it for smp ?
    PHP Code:
    if (itemcount("strong health potion") < 40then
        playsound
    ("alert.wav"wait(1000)
    end 

  7. #7
    Normal User Crimewave's Avatar
    Join Date
    Jul 2012
    Location
    Sweden, Stockholm
    Posts
    205
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    7 Post(s)
    Reputation
    12
    Rep Power
    5
    Soder ur script spam alarm all the time

  8. #8
    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
    Get more SHP's or change the values then, if you got less than 40 it will alarm.

  9. #9
    Normal User Crimewave's Avatar
    Join Date
    Jul 2012
    Location
    Sweden, Stockholm
    Posts
    205
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    7 Post(s)
    Reputation
    12
    Rep Power
    5
    bro if bot dont see shp (open bp with them ) it dont work xD

  10. #10
    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
    Use a better translator and I'll help you, cuz I dont understand shit what you're trying to say.
    (or post in swedish on my profile)
    Last edited by soder; 10-28-2012 at 08:56 AM.

Posting Permissions

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