Results 1 to 9 of 9

Thread: Logout If Player XXX

  1. #1
    Banned
    Join Date
    Jul 2012
    Posts
    205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    0

    Logout If Player XXX

    so here it is im a 100 knight on dolera and there's a 200 level druid that will come heal my monsters to kill me when im afk or just pk me. I got a xlog if there on screen but the probley wont cut it since there a 200 druid and it takes 30 seconds to xlog.

    soo I was wondering if theres some way to use a exiva key to check her location "get that from server log" logout if there comeing. eg if there far or close

    thanks in advance

  2. #2
    iBot User Dehan's Avatar
    Join Date
    May 2012
    Location
    www.ssocialscripts.com
    Posts
    910
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    114
    Rep Power
    7
    I'm at the school atm, so I can't test and i'm not sure it's 100% working, tell me if you have some problems so I can fix it haha
    Code:
    local TimeTo_Exiva = 60 --seconds
    local PlayerName = "Druid Troll"
    
          local index = 0
          local msgs = getnewmessages("Server Log")
          local qtd = msgs.count-1
     
       say('Exiva " '..PlayerName)
       wait(500,1000)
     
          for i=0,qtd do
              local MSG = msgs[i].text
             
              if MSG:find("is far to the") or MSG:find("is to the") then
              setcavebot("no")
              wait(5000,10000)
              if not battlesigned then
              logout()
              end
         end
    wait(TimeTo_Exiva*1000)
    end

    you can also use
    Code:
    closetibia()
    instead of
    Code:
    if not battlesigned then
    logout()
    end
    to force the logout.
    Last edited by Dehan; 02-07-2013 at 09:37 AM.
    Check out - Dehan Accounts Service!

    Proud Scripter of BUgWT STAFF

  3. #3
    Banned
    Join Date
    Jul 2012
    Posts
    205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    0
    mmm that's pretty good I will test this latter only thing I can think of is that umm is there a global variable that says if someone is online in ibot? bc if there is then we can say if there online ..... then

    rep++

  4. #4
    iBot User Dehan's Avatar
    Join Date
    May 2012
    Location
    www.ssocialscripts.com
    Posts
    910
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    114
    Rep Power
    7
    Quote Originally Posted by Glitch View Post
    mmm that's pretty good I will test this latter only thing I can think of is that umm is there a global variable that says if someone is online in ibot? bc if there is then we can say if there online ..... then

    rep++
    oh yeah, you need to have the player on your Vip List

    Code:
    local TimeTo_Exiva = 60 --seconds
    local PlayerName = "Druid Troll"
    
          local index = 0
          local msgs = getnewmessages("Server Log")
          local qtd = msgs.count-1
    
    if isviponline(PlayerName) then 
    
       say('Exiva " '..PlayerName)
       wait(500,1000)
     
          for i=0,qtd do
              local MSG = msgs[i].text
             
              if MSG:find("is far to the") or MSG:find("is to the") then
              setcavebot("no")
              wait(5000,10000)
              if not battlesigned then
              logout()
              end
         end
    wait(TimeTo_Exiva*1000)
    end
    
    end
    Check out - Dehan Accounts Service!

    Proud Scripter of BUgWT STAFF

  5. #5
    Banned
    Join Date
    Jul 2012
    Posts
    205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    0
    mm weird for some reason dosnt cast spell but nothing shows up in debug "this is true for both versions"

  6. #6
    iBot User Dehan's Avatar
    Join Date
    May 2012
    Location
    www.ssocialscripts.com
    Posts
    910
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    114
    Rep Power
    7
    Quote Originally Posted by Glitch View Post
    mm weird for some reason dosnt cast spell but nothing shows up in debug "this is true for both versions"
    right, i'll check and test it when arrive home.
    Check out - Dehan Accounts Service!

    Proud Scripter of BUgWT STAFF

  7. #7
    iBot User Dehan's Avatar
    Join Date
    May 2012
    Location
    www.ssocialscripts.com
    Posts
    910
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    114
    Rep Power
    7
    I take another look at home, and now it's working pretty good
    Code:
    --[[Exiva X-logger by Dehan]]--
    local TimeTo_Exiva = 10 --seconds
    local PlayerName = "Druid Troll"
    
    local index = 0
    local msgs = getnewmessages("Server Log")
     
    if isviponline(PlayerName) then
    
       cast('exiva "'.. PlayerName)
       wait(500,1000)
     
          for i=0,0 do
              local MSG = msgs[i].text
             
              if MSG:find("is far to the") or MSG:find("is to the") or MSG:find("is on a higher") or MSG:find("is on a lower") then
              setcavebot("no")
              wait(5000,10000)
              closetibia()
              end
    
          wait(TimeTo_Exiva*1000)
          end
    end
    Last edited by Dehan; 02-09-2013 at 09:16 AM.
    Check out - Dehan Accounts Service!

    Proud Scripter of BUgWT STAFF

  8. #8
    Banned
    Join Date
    Jul 2012
    Posts
    205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    0
    thanks man this is such a good hotkey ^^

  9. #9
    iBot User Dehan's Avatar
    Join Date
    May 2012
    Location
    www.ssocialscripts.com
    Posts
    910
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    114
    Rep Power
    7
    Quote Originally Posted by Glitch View Post
    thanks man this is such a good hotkey ^^
    you're welcome, hope you troll back this troller hahaha
    Check out - Dehan Accounts Service!

    Proud Scripter of BUgWT STAFF

Posting Permissions

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