Results 1 to 5 of 5

Thread: Gran mas res detector

  1. #1
    Normal User
    Join Date
    May 2012
    Location
    Spain
    Posts
    98
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    5
    Rep Power
    0

    Gran mas res detector

    i need a script with alarm when gran mas res and then it put targeting off and utani gran hur and go reffil i got it on neo but i dont got any idea how to make here xD thanks

  2. #2
    Focus Group mexicowss's Avatar
    Join Date
    May 2012
    Location
    Brasil
    Posts
    440
    Mentioned
    20 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    59 Post(s)
    Reputation
    128
    Rep Power
    6
    Yeah, would be nice....
    i dont know if its actually possible to do

    all i know is that jonatas implemented a new function, but i still doesnt know how to fill those array parameter neither how it works:
    message[] getmessages(string channel)

  3. #3
    Focus Group mexicowss's Avatar
    Join Date
    May 2012
    Location
    Brasil
    Posts
    440
    Mentioned
    20 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    59 Post(s)
    Reputation
    128
    Rep Power
    6
    damn bro!! i got it

    but its freaking annoying....cant stop alarming!!!

    PHP Code:
    local msgs getmessages("Local Chat"
    local qtd msgs.count-1
    for i=0,qtd 
    do 
        if 
    msgs[qtd].text:find("exura gran mas res"
        
    then 
    playsound
    ("alert.wav")
    wait(3000)
    end
    end 
    (DAMNNNNN!!!!!!!!!!! it's still alarming) shuashuahusahushus


    CREDITS TO THIS EXAMPLE BY JONATAS
    PHP Code:
    -- NPC name
    local npcname 
    'Ebenizer'

    local index 
    local msgs 
    getmessages("NPCs")
    local qtd msgs.count-1
    for i=0,qtd do
       if 
    msgs[qtd].sender == npcname and msgs[qtd].text:find('There is not enough gold on your account.'then
          setcavebot
    ('off')
          
    wait(5000,10000)
          
    closetibia()
       
    end
    end 
    Last edited by mexicowss; 06-15-2012 at 08:18 AM.

  4. #4
    Normal User
    Join Date
    May 2012
    Location
    Spain
    Posts
    98
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    5
    Rep Power
    0
    and what aobut set off the targeting...? like set targeting "off" or what? x)

    edit: thanks :XD

  5. #5
    Focus Group mexicowss's Avatar
    Join Date
    May 2012
    Location
    Brasil
    Posts
    440
    Mentioned
    20 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    59 Post(s)
    Reputation
    128
    Rep Power
    6
    Just add a settargeting("no") folowing playsound("alert.wav")

    if u want u can make a route to run to some safe area also....like:
    gotolabel("escapepk")

Posting Permissions

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